-
Notifications
You must be signed in to change notification settings - Fork 14
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
[Part 1 of 3] v4-core dependency + gas snapshot + ci runs tweak (s52) #74
Conversation
call_override = false # Override calls | ||
fail_on_revert = false # Fail the test if the contract reverts |
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.
seems like this 2 is already false from foundry https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md
@@ -16,23 +16,17 @@ evm_version = 'cancun' | |||
bytecode_hash = "none" | |||
|
|||
[fuzz] | |||
runs = 1000 # change this for higher number of fuzz/invariant locally | |||
runs = 5 # change this for higher number of fuzz runs locally |
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.
set lower fuzz/invariant runs locally, so dev local forge test
is faster by default. they can always override and set higher if required
@@ -23,7 +23,7 @@ jobs: | |||
- name: Install Foundry | |||
uses: foundry-rs/foundry-toolchain@v1 | |||
with: | |||
version: nightly-471e4ac317858b3419faaee58ade30c0671021e0 # Nightly (2024-10-03) | |||
version: stable |
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.
use stable
as local foundry is stable
too
|
||
[profile.ci_main.fuzz] | ||
runs = 100000 | ||
runs = 1000 |
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.
lower for now - otherwise ci will fail (timeout) - https://github.com/pancakeswap/pancake-v4-periphery/issues/73
we can visit that issue again if we have time and see whats a suitable number
* feat: increase optimizer runs * [Part 3 of 3] Code factoring (s43, s48, s50) (#76) * s43: interface doc update * s48: use directive with global * s50: use internal keyword to make visibility obvious
As https://github.com/pancakeswap/pancake-v4-periphery/pull/66 is getting messy, this 3 part PR series aim to split the PR into a few chunks thats easy to review
This part will
s52: migrate from gas snapshot to native snapshot