-
Notifications
You must be signed in to change notification settings - Fork 109
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
fix: support multiple runs for precomplies e2e test #2874
Conversation
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughWalkthroughThe pull request introduces several changes aimed at enhancing the codebase's testing framework and documentation. Key modifications include the addition of support for multiple runs in precompile tests, the removal of the Changes
Possibly related PRs
Suggested labels
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2874 +/- ##
========================================
Coverage 66.88% 66.88%
========================================
Files 377 377
Lines 21084 21084
========================================
Hits 14103 14103
Misses 6316 6316
Partials 665 665 |
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 I was just running into this too
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.
tnx for fixing this
maybe simpler would be to just unstake 1 and 2 from 2 validators at the end of the test, since validators and amounts are fixed in each test run, but this works as well
Co-authored-by: Lucas Bertrand <[email protected]>
Description
The PR refactors the precompiles staking test to allow it to run multiple times.
It adds a function to remove all delegations if they exist so that the test starts from the same base values everytime , and the assertions work as expected.
How Has This Been Tested?
Summary by CodeRabbit
New Features
Bug Fixes
--skip-precompiles
flag from the local environment script, ensuring precompilation steps are executed as required.Documentation