From 32dff761917532d64952fa52a67c8c6ed8b80280 Mon Sep 17 00:00:00 2001 From: baku-ccron Date: Sun, 20 Sep 2026 11:52:52 +0000 Subject: [PATCH] chore: delete the stale .gas-snapshot `.gas-snapshot` was committed and licensed in `REUSE.toml` as a deliberate artifact, but nothing in CI regenerates it or diffs it, so it drifted silently and cannot be relied on as a gas regression record. The committed file records the chain suite at 1419 gas; CI on `main` at 5c165a8 measures the same test at 1213223. 1419 is what the test costs when `checkDeployedOnSupportedNetworks` returns early on an empty `derived` list, i.e. it was captured before this repo declared any releases. The `Git is clean` job runs `forge script ./script/Build.sol`, `forge build` and `forge fmt` before `git diff --exit-code`; none of those writes `.gas-snapshot`, which needs `forge snapshot`. `rainix-sol-test.yaml` runs `forge test -vvv`, not `forge snapshot --check`. Deleted rather than wired into the currency check: most lines here are fuzzed mu and median values that move with the fuzz seed, so a plain regenerate-and-diff would red PRs at random and a tolerance would have to be wide enough to hide the regressions the file exists to catch. Also drops the now-dangling `.soldeerignore` entry, which named the same deleted file. Closes #36 Co-Authored-By: Claude Opus 5 (1M context) --- .gas-snapshot | 28 ---------------------------- .soldeerignore | 1 - REUSE.toml | 1 - 3 files changed, 30 deletions(-) delete mode 100644 .gas-snapshot diff --git a/.gas-snapshot b/.gas-snapshot deleted file mode 100644 index 24c8a99..0000000 --- a/.gas-snapshot +++ /dev/null @@ -1,28 +0,0 @@ -CloneFactoryCloneDeterministicTest:testCloneDeterministicEvent(bytes32,bytes) (runs: 2048, μ: 426544, ~: 352434) -CloneFactoryCloneDeterministicTest:testCloneDeterministicInitializeFailureFails(bytes32,bytes32) (runs: 2048, μ: 161970, ~: 161970) -CloneFactoryCloneDeterministicTest:testCloneDeterministicManyClonesPerImpl(bytes32,bytes32,bytes) (runs: 2048, μ: 596686, ~: 443971) -CloneFactoryCloneDeterministicTest:testCloneDeterministicMatchesPredict(bytes32,bytes) (runs: 2048, μ: 428994, ~: 354482) -CloneFactoryCloneDeterministicTest:testCloneDeterministicSaltIsDomainTaggedHash(address,bytes32,address) (runs: 2048, μ: 5518, ~: 5518) -CloneFactoryCloneDeterministicTest:testCloneDeterministicSenderScoped(bytes32,bytes,address,address) (runs: 2048, μ: 576358, ~: 488863) -CloneFactoryCloneDeterministicTest:testCloneDeterministicZeroImplementationCodeSize(address,bytes,bytes32) (runs: 2048, μ: 11151, ~: 11126) -CloneFactoryDeployChainTest:testSuitesLiveOnEverySupportedNetwork() (gas: 1419) -CloneFactoryDeploySnapshotTest:testEveryFrozenSnapshotIsReleased() (gas: 16144) -CloneFactoryDeploySnapshotTest:testSnapshotInternallyConsistent() (gas: 454020) -CloneFactoryDeploySnapshotTest:testSnapshotMatchesSource() (gas: 3942) -CloneFactoryLibEquivalenceTest:testEquivalenceCloneDeterministic(bytes32,bytes,address) (runs: 2048, μ: 614794, ~: 466421) -CloneFactoryLibEquivalenceTest:testEquivalenceCloneDeterministicInitFailure(bytes32,bytes32,address) (runs: 2048, μ: 217797, ~: 217797) -CloneFactoryLibEquivalenceTest:testEquivalenceCloneDeterministicOpenSalt(bytes32,bytes,address) (runs: 2048, μ: 614982, ~: 466562) -CloneFactoryLibEquivalenceTest:testEquivalenceCloneDeterministicOpenSaltInitFailure(bytes32,bytes32,address) (runs: 2048, μ: 217792, ~: 217792) -CloneFactoryLibEquivalenceTest:testEquivalenceCloneDeterministicOpenSaltSaltTaken(bytes32,bytes,address,address) (runs: 2048, μ: 1072691857, ~: 1072691269) -CloneFactoryLibEquivalenceTest:testEquivalenceCloneDeterministicOpenSaltZeroCode(address,bytes,bytes32,address) (runs: 2048, μ: 21244, ~: 21134) -CloneFactoryLibEquivalenceTest:testEquivalenceCloneDeterministicSaltTaken(bytes32,bytes,bytes,address) (runs: 2048, μ: 1072689825, ~: 1072690610) -CloneFactoryLibEquivalenceTest:testEquivalenceCloneDeterministicZeroCode(address,bytes,bytes32,address) (runs: 2048, μ: 21194, ~: 21099) -CloneFactoryLibEquivalenceTest:testEquivalencePredictDeterministicAddress(address,bytes32,address) (runs: 2048, μ: 11595, ~: 11595) -CloneFactoryLibEquivalenceTest:testEquivalencePredictDeterministicAddressOpenSalt(address,bytes,bytes32) (runs: 2048, μ: 13145, ~: 13036) -CloneFactoryLibEquivalenceTest:testEquivalenceRuntimeBytecode() (gas: 5312) -LibCloneFactoryDeployCandidateTest:testAliasReExportsCandidate() (gas: 440) -LibCloneFactoryDeployCandidateTest:testCandidateCreationCodeMatchesSource() (gas: 5574) -LibCloneFactoryDeployCandidateTest:testCandidateHasNoDependencies() (gas: 783) -LibCloneFactoryDeployCandidateTest:testCandidateReproducesItsDeployment() (gas: 450840) -LibCloneFactoryDeployTest:testDeployAddress() (gas: 447148) -LibCloneFactoryDeployTest:testExpectedCodeHash() (gas: 442456) \ No newline at end of file diff --git a/.soldeerignore b/.soldeerignore index a903b1f..c962c79 100644 --- a/.soldeerignore +++ b/.soldeerignore @@ -1,6 +1,5 @@ .DS_Store .coderabbitai.yaml -.gas-snapshot .git .github .gitignore diff --git a/REUSE.toml b/REUSE.toml index e24eac7..f9b7846 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -2,7 +2,6 @@ version = 1 [[annotations]] path = [ - ".gas-snapshot", ".github/workflows/**/", ".vscode/**/", ".coderabbitai.yaml",