Skip to content
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

revive: Bump connect timeout to fix flaky tests #6567

Merged
merged 4 commits into from
Nov 21, 2024
Merged

Conversation

athei
Copy link
Member

@athei athei commented Nov 20, 2024

The eth RPC tests fail sometimes because they run into a connect timeout because the node takes a long time to start. This bumps the connect timeout from 30 to 120 seconds. Locally they take around 40s for me.

As a drive by I also remove a apparently duplicated nextest config.

@athei athei added the R0-silent Changes should not be mentioned in any release notes label Nov 20, 2024
@athei athei requested review from alvicsam and pgherveou November 20, 2024 21:18
@@ -32,9 +32,9 @@ use static_init::dynamic;
use std::thread;
use substrate_cli_test_utils::*;

/// Create a websocket client with a 30s timeout.
/// Create a websocket client with a 120s timeout.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the node takes more than 30s to serve the rpc endpoint? I thought the issue was with the overall test taking more than 30s

Copy link
Member Author

@athei athei Nov 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. It was failing here. Nextest allots 2x60s before it kills you. Kitchensink in debug mode has a long startup time and this is where the time is spent AFAIK.

@athei athei enabled auto-merge November 21, 2024 08:59
@athei athei added this pull request to the merge queue Nov 21, 2024
Merged via the queue into master with commit b290f27 Nov 21, 2024
197 of 202 checks passed
@athei athei deleted the at/fix-revive-ci branch November 21, 2024 10:05
Krayt78 pushed a commit to Krayt78/polkadot-sdk that referenced this pull request Dec 18, 2024
The eth RPC tests fail sometimes because they run into a connect timeout
because the node takes a long time to start. This bumps the connect
timeout from 30 to 120 seconds. Locally they take around 40s for me.

As a drive by I also remove a apparently duplicated nextest config.

---------

Co-authored-by: ordian <[email protected]>
dudo50 pushed a commit to paraspell-research/polkadot-sdk that referenced this pull request Jan 4, 2025
The eth RPC tests fail sometimes because they run into a connect timeout
because the node takes a long time to start. This bumps the connect
timeout from 30 to 120 seconds. Locally they take around 40s for me.

As a drive by I also remove a apparently duplicated nextest config.

---------

Co-authored-by: ordian <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants