-
Notifications
You must be signed in to change notification settings - Fork 1.2k
test: fix intermittent failure in feature_governance.py waiting votes to be propagated #6646
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
Conversation
… to be propagated
WalkthroughThe change introduces an additional synchronization step in the test script for governance functionality. After verifying the presence of "No" votes on two governance triggers, the test now logs a message indicating it will wait for all 24 votes to be counted. It then waits until node 1 reports a total of 24 governance votes. This step ensures that the test only proceeds once all expected votes have been registered, providing a stricter synchronization point before moving on to the next test actions. No changes were made to the declarations of exported or public entities. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code Graph Analysis (1)test/functional/feature_governance.py (1)
🔇 Additional comments (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 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
CodeRabbit Configuration File (
|
|
This pull request has conflicts, please rebase. |
UdjinM6
left a comment
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.
utACK be9cf82
Issue being fixed or feature implemented
While implementing #6631 found instability in feature_governance.py
What was done?
Governance votes are not delivered instantly between notes. If any vote is delayed a bit the wrong amount of votes will be remembered and test will fail further when comparing its count.
How Has This Been Tested?
Tested locally with changes from #6631
without them - 90+% probability feature_governance.py to fail, with them - no failure happens locally.
Breaking Changes
N/A
Checklist: