-
Notifications
You must be signed in to change notification settings - Fork 904
Fix for #6296: Deterministic RNG in peer DAS publish block tests #7192
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
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.
@SunnysidedJ thanks for the PR, the changes looks good. I've added some comments above. Let me know what you think :)
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.
Looks good, thanks @SunnysidedJ 🙏
@@ -31,6 +31,7 @@ use logging::crit; | |||
use operation_pool::{OperationPool, PersistedOperationPool}; | |||
use parking_lot::{Mutex, RwLock}; | |||
use proto_array::{DisallowedReOrgOffsets, ReOrgThreshold}; | |||
use rand::rngs::StdRng; |
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 needs to be in the test
mod below.
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.
Please see comment above
This pull request has merge conflicts. Could you please resolve them @SunnysidedJ? 🙏 |
This pull request has merge conflicts. Could you please resolve them @SunnysidedJ? 🙏 |
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 - CI job is failing due to a Kurtosis issue unrelated to this PR, will merge when its fixed. Thanks @SunnysidedJ !
Issue Addressed
#6296: Deterministic RNG in peer DAS publish block tests
Proposed Changes
Made test functions to call publish-block APIs with true for the deterministic RNG boolean parameter while production code with false. This will deterministically shuffle columns for unit tests under broadcast_validation_tests.rs.
Additional Info