-
Notifications
You must be signed in to change notification settings - Fork 23
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
enhance(test): Add timeout and retry to test to make them more stable #5732
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 4 Skipped Deployments
|
cc48452
to
2674f4d
Compare
8fe4a21
to
08ec62b
Compare
We're still investigating |
15449e6
to
4812ebd
Compare
Regarding the fix on |
@@ -982,7 +982,7 @@ impl RandomnessEventLoop { | |||
continue; // don't send partial sigs to self | |||
} | |||
let mut client = RandomnessClient::new(peer.clone()); | |||
const SEND_PARTIAL_SIGNATURES_TIMEOUT: Duration = Duration::from_secs(10); | |||
const SEND_PARTIAL_SIGNATURES_TIMEOUT: Duration = Duration::from_secs(30); |
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 is the main culprit behind test_byzantine_peer_handling failures. Increasing the timeout seems to help. But it doesn't look like a proper solution.
e246af5
to
a8c1aee
Compare
// longer to verify invalid signatures and thus needs larger | ||
// timeouts. | ||
#[cfg(test)] | ||
const SEND_PARTIAL_SIGNATURES_TIMEOUT: Duration = Duration::from_secs(500); |
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.
500 sec seems to work on self-hosted-arm64.
…cutor_crash_recovery
…64, needs investigation" This reverts commit 91be397.
… timeout fix works" test_byzantine_peer_handling succeeded on selfhosted-arm64 with 500 sec timeout: https://github.com/iotaledger/iota/actions/runs/13791724155/job/38573592500#step:9:2993 This reverts commit a4511f2.
c34311a
to
c4f4882
Compare
Description of change
Rust tests fail during nightly tests, because the tests get slower and thus fail to reach the expected values immediately, this PR adds timeout and retries to fix them.
Links to any relevant issues
Close #5620
Close #5584
Type of change
Change checklist