-
Notifications
You must be signed in to change notification settings - Fork 8
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
Test governor upgrade for #5 #12
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
eac5a61
Set up and run one end-to-end test with the new Governor
apbendi dd4b4d6
Add fuzz seed to .env template to reduce RPC calls
davidlaprade 98fb242
Generalize governorBravo token send test
davidlaprade d9069d1
Test that proposals can be defeated for the new governor
davidlaprade 5dfd792
passQueueAndExecuteUpgradeProposal --> upgradeToBravoGovernor
davidlaprade 470d880
Test that settings can be updated by new governor
davidlaprade ddd1c6a
Test mixed voting results
davidlaprade 8e60173
Test that alpha votes don't affect bravo votes
davidlaprade 659f149
s/governor/governorBravo/g
davidlaprade 815c79b
scopelint
davidlaprade 64f2a43
Cache fork requests
davidlaprade f10554f
Add a seed to fuzz deterministically in CI
davidlaprade b41f7ad
scopelint
davidlaprade cce8185
Troubleshoot CI
davidlaprade bc88087
Cycle CI fuzz seeds each week
davidlaprade 4d58ea0
Bump fuzz tests in CI
davidlaprade 629f1ca
Remove fuzz seed from .env.template
davidlaprade 8d1ac76
Modify based on PR feedback
davidlaprade d7b4570
Foundry toolchain caches fork requests for us
davidlaprade adffed2
ci: test if manually creating cache dir solves the issue
mds1 3f56e3d
Fix coverage workflow
davidlaprade 114ccca
Fix coverage workflow
davidlaprade 751dc77
Revert "ci: test if manually creating cache dir solves the issue"
davidlaprade 9a5c0f7
Revert "Foundry toolchain caches fork requests for us"
davidlaprade 8f10d57
Use cached fork requests on coverage
davidlaprade b69b4eb
Modify based on PR feedback
davidlaprade 4216a16
Update comment
davidlaprade File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This whole step using
actions/cache@v3
shouldn't be needed,foundry-rs/foundry-toolchain@v1
now caches automaticallyThere 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.
Hm, I removed this in d7b4570 and caching stopped working
For example, you can see that in this build that tests ran to completion, taking 9 minutes. I figured this was expected since we were using a new caching approach -- we'd need to re-cache everything from scratch. So after the build completed I immediately re-ran the workflow to see if things would be faster now. They weren't. I killed the next build after 3 minutes.
For comparison, prior to removing this explicit cache step, fork tests with cached RPC calls were finishing up in ~40s
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.
Hmm yea that's odd. I just ran the same workflow twice:
Both took about 4 minutes. I wonder if this line missing logic to create the cache dir if it doesn't exist, so it's never getting saved the first time? Or perhaps we're doing something wrong. Gonna pull in @PaulRBerg to make sure we're not missing anything
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.
Another test:
Both took about the same amount of time 🤔
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.
Thanks for the tag, @mds1. Taking a look now.
There might be a bug in the cache implementation - sorry for that. I'm basing this guess on a number of other reports on Twitter.
However, I don't thin't think that this is about the if statement you linked to, i.e. this:
I added that in foundry-rs/foundry-toolchain#21 to prevent another bug that occurred when the user didn't have any fork tests.
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.
I reverted back to the old approach. I'll leave this thread open for now in case Paul gets back to us, and will plan to merge without resolving.EDIT: sorry -- didn't see your response above, Paul! I must have not refreshed the page. Appreciate the help!
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.
No worries, David.
After a few hours of debugging (and hundreds of console logs), I have managed to fix this. Waiting for @mds1 or someone else from the team to review my PR and apply the fix:
foundry-rs/foundry-toolchain#24
I am quite confident that the caching should work as expected now!