-
Notifications
You must be signed in to change notification settings - Fork 340
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 flaky test_transaction_result_does_not_affect_bankhash #3916
Conversation
Hoping the change of keypairs/pubkeys in genesis config doens't break other tests, but we'll see. Killing randomness is good overall. |
f03e533
to
3093b9b
Compare
Do you have any buildkite links handy that failed on this test ? My PR that you mentioned included a bunch of logging that would help identify the offending account; that would help verify the theory you mentioned above (altho I guess I could also craft a Either way - nice find and will get around to reviewing this shortly |
The output is pretty massive - I ended up adding a bunch of print statements and finding the issue that way while talking with brooks. |
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 like removing the randomness. Almost feels like this could be two PRs: one for the changes to genesis utils, and another one for the changes to test_transaction_result_does_not_affect_bankhash.
The changes to genesis_utils change the result of the test **in most cases - or the equality at least. I'd rather just keep it all grouped as a single PR to keep it simple. |
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.
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
Did a scan through and looks like the changes in genesis_utils.rs
are only affecting test code; can possibly throw some #[cfg(test)]
in there in a separate PR
Backports to the beta branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule. Exceptions include CI/metrics changes, CLI improvements and documentation updates on a case by case basis. |
(cherry picked from commit c5473e4) # Conflicts: # ledger/src/blockstore_processor.rs
…kport of #3916) (#4578) * Fix flaky test_transaction_result_does_not_affect_bankhash (#3916) (cherry picked from commit c5473e4) # Conflicts: # ledger/src/blockstore_processor.rs * resolve merge conflicts --------- Co-authored-by: Andrew Fitzgerald <[email protected]> Co-authored-by: steviez <[email protected]>
Problem
test_transaction_result_does_not_affect_bankhash
is flaky due to random keypairs/pubkeysmint_keypair
's pubkeymint_keypair
IF the randomly generated key is in the partitionSummary of Changes
Fixes #