-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Local snapshots do not match CI snapshots for fuzz tests #216
Comments
hyunchel
added a commit
to hyunchel/v4-core
that referenced
this issue
Oct 16, 2023
The previous attempt to assert identical gas usage in CI has been reverted because a snapshot generated in CI was different from a snapshot generated locally. The diff still exist as of today, but amounts are minuscule. The amounts range from 1 to tens. And these diffs exist in fuzz tests only. This is a known bug in Foundry: foundry-rs/foundry#5689 This commit adds back gas snapshot, and check for a minimum diff in CI. This way, snapshot diff tool can be used while waiting for the Foundry issue to be fixed. Resolves issue Uniswap#216
hyunchel
added a commit
to hyunchel/v4-core
that referenced
this issue
Oct 16, 2023
The previous attempt to assert identical gas usage in CI has been reverted because a snapshot generated in CI was different from a snapshot generated locally. The diff still exist as of today, but amounts are minuscule. The amounts range from 1 to tens. And these diffs exist in fuzz tests only. This is a known bug in Foundry: foundry-rs/foundry#5689 This commit adds back gas snapshot, and check for a minimum diff in CI. This way, snapshot diff tool can be used while waiting for the Foundry issue to be fixed. Resolves issue Uniswap#216
hyunchel
added a commit
to hyunchel/v4-core
that referenced
this issue
Oct 16, 2023
The previous attempt to assert identical gas usage in CI has been reverted because a snapshot generated in CI was different from a snapshot generated locally. The diff still exist as of today, but amounts are minuscule. The amounts range from 1 to tens. And these diffs exist in fuzz tests only. This is a known bug in Foundry: foundry-rs/foundry#5689 This commit adds back gas snapshot, and check for a small diff in CI. By allowing just one percent of diff, forge snapshot diff tool can be utilized while waiting for the Foundry issue to be fixed. Resolves issue Uniswap#216
Fixed by #401 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
There is an ongoing issue where
forge snapshot
locally does not match the CI snapshots. It is failing on on fuzz tests. I've checked the following which I thought could be related to this issue but are not:Expected Behavior
After updating the snapshot file locally, and pushing to your branch
forge snapshot --check
should pass in the linter.To Reproduce
No response
Additional context
PR reverted here.
The text was updated successfully, but these errors were encountered: