Skip to content

Increase socket retry budget for CI reliability #41

@coderabbitai

Description

@coderabbitai

Description

Raise the retry count to 20 and the delay to 25 ms in test-support so slow runners don't time out during CI execution.

Changes Required

In test-support/src/util.rs

  • Change SOCKET_RETRY_COUNT from 10 to 20
  • Change SOCKET_RETRY_DELAY from Duration::from_millis(10) to Duration::from_millis(25)

In test-support/src/lib.rs

  • Update the commented example usages to reflect the new values

Proposed Implementation

--- a/test-support/src/util.rs
+++ b/test-support/src/util.rs
@@ -7,7 +7,7 @@ pub const SOCKET_RETRY_COUNT: u32 = 10;
 pub const SOCKET_RETRY_COUNT: u32 = 20;
 
- pub const SOCKET_RETRY_DELAY: Duration = Duration::from_millis(10);
+ pub const SOCKET_RETRY_DELAY: Duration = Duration::from_millis(25);

 // Wait for a file to appear, retrying on failure
 pub async fn wait_for_file(…

--- a/test-support/src/lib.rs
+++ b/test-support/src/lib.rs
@@ -20,7 +20,7 @@ pub use util::{SOCKET_RETRY_COUNT, SOCKET_RETRY_DELAY};
 // use test_support::{wait_for_file, SOCKET_RETRY_COUNT, SOCKET_RETRY_DELAY};
 // let found = wait_for_file(path, SOCKET_RETRY_COUNT, SOCKET_RETRY_DELAY).await;
 // SOCKET_RETRY_COUNT = 20, SOCKET_RETRY_DELAY = 25 ms

Context

Related to PR #26: #26
Requested by: @leynos

Metadata

Metadata

Assignees

Labels

lowAin't annoying anyone but the QA department

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions