-
Notifications
You must be signed in to change notification settings - Fork 248
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 domain test by adding more retries for producing bundle in test #2517
Conversation
Signed-off-by: linning <[email protected]>
e33c78c
to
f9fa7b8
Compare
@@ -170,8 +170,7 @@ async fn benchmark_bundle_with_evm_tx( | |||
const TX_TYPES: u32 = 4; | |||
let mut thread_rng = rand::thread_rng(); | |||
let between = Uniform::from(0..TX_TYPES); | |||
let (slot, bundle) = ferdie.produce_slot_and_wait_for_bundle_submission().await; | |||
assert!(bundle.is_some()); |
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.
confused with this change. Dont we want to ensure the bundle is submitted anyway?
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.
Yeah, but produce_slot_and_wait_for_bundle_submission
will panic instead if bundle is not submitted after a few tries, so we don't need the assert
here.
Another attempt to fix the flaky domain tests in CI.
After #2220 it seems still possible for bundle production to fail due to race condition. Instead of strictly requiring bundle production to succeed, this PR simply adds more retry, it should mitigate most of the failure since the failure is not very frequent in CI.
The only notable change is in the
subspace-test-service
, all other changes are just adjustments for the test infra API change.Code contributor checklist: