-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fuzz results differ on local vs github CI #4917
Comments
Are you setting a fuzz seed? Most likely this is because each fuzz run uses different random values which affects gas costs |
did not set a fuzz seed in |
Right, so if a fuzz seed is not present in the config (which is the default, and which is why you don't see it when running |
You may have been setting a fuzz seed with the |
Alright so I just tried setting a fuzz seed and the github CI gas usage still differs from my local machine's. Check out my branch and the failing CI gas check. Also made sure that |
the only other difference that the github CI runs with the Any thoughts? @mds1 |
A few possibilities:
|
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (7bba788 2023-05-10T00:11:46.049317000Z)
What command(s) is the bug in?
forge snapshot
Operating System
macOS (Apple Silicon)
Describe the bug
The fuzz run gas usages differ on my machine vs in github CI. This has been going on for 1-2 months already
Things I tried
forge config
on my machine vs in github CIds-test
was defaulted to"ds-test/=lib/forge-std/lib/ds-test/src/"
while it was"ds-test/=lib/solmate/lib/ds-test/src/"
on the github CIThis is the original
foundry.toml
The text was updated successfully, but these errors were encountered: