-
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
feat: add way to disable emitting of gas snapshots to disk #9710
Conversation
0cd7bd4
to
ab193b2
Compare
cc @zerosnacks assigned to #9697 |
Generally supportive on the approach, defaulting to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you! left couple of comments
I'd suggest having args like |
the environment variable i made the
but now i see that also raises many questions, and it is not entirely consistent with the behavior of my added flag. i will revert changes to |
added the |
thanks for working on this, wound up with other tasks on my plate and wasn't able to make time |
the emit behavior still remains to be implemented? will leave this open for now, might get to it with free time this week |
@turbocrime No worries! Feel free to ping me if you run into (time) issues / have questions |
ab193b2
to
57c4975
Compare
updated to tip of main, now using config, env var, and a flag, following the pattern @zerosnacks used in #9791 new config field: tests feel verbose, could possibly be improved, but i believe they confirm function. ready for re-review hopefully i can come back at some point to expand docs like foundry-rs/book#1407 but i've got limited time now. |
Thanks @turbocrime! Implementation and tests look good |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! pending one more review
cc @grandizzy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you!
Added the new flag to the book foundry-rs/book#1442 :) |
Motivation
fixes #9697
Solution
following pattern set by #9791
new config field:
gas_snapshot_emit
, defaulttrue
new env var:
FORGE_SNAPSHOT_EMIT
, overrides confignew cli flag:
--gas-snapshot-emit=<bool>
, overrides config and envexisting default behaviors are maintained.