Skip to content

[adapters] Widen test HTTP client request timeout to avoid CI flakes#6628

Merged
mihaibudiu merged 1 commit into
mainfrom
fix-adapter-test-http-timeout
Jul 15, 2026
Merged

[adapters] Widen test HTTP client request timeout to avoid CI flakes#6628
mihaibudiu merged 1 commit into
mainfrom
fix-adapter-test-http-timeout

Conversation

@ryzhyk

@ryzhyk ryzhyk commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

TestHttpSender relied on awc's 5s default request timeout, which is shorter than the test harness's own 20s async_wait/completion budgets. Under CI load, or a k8s CPU-quota freeze that stalls the in-process server past 5s, the client deadline fires and panics an otherwise healthy request (observed as test_silent_bootstrap failing with Err(Timeout) at test/http.rs).

The /ingress POST is non-idempotent, so retrying on timeout could double-insert records; instead widen the client deadline to 120s and let the higher-level waits govern liveness.

TestHttpSender relied on awc's 5s default request timeout, which is
shorter than the test harness's own 20s async_wait/completion budgets.
Under CI load, or a k8s CPU-quota freeze that stalls the in-process
server past 5s, the client deadline fires and panics an otherwise
healthy request (observed as test_silent_bootstrap failing with
`Err(Timeout)` at test/http.rs). The /ingress POST is non-idempotent, so
retrying on timeout could double-insert records; instead widen the
client deadline to 120s and let the higher-level waits govern liveness.

Signed-off-by: Leonid Ryzhyk <ryzhyk@gmail.com>
@ryzhyk
ryzhyk requested a review from gz July 14, 2026 02:27
@ryzhyk ryzhyk added connectors Issues related to the adapters/connectors crate QA Testing and quality assurance labels Jul 14, 2026
@ryzhyk
ryzhyk enabled auto-merge July 14, 2026 02:27
@ryzhyk
ryzhyk added this pull request to the merge queue Jul 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 14, 2026

@mythical-fred mythical-fred left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sensible fix. awc's 5s default is genuinely shorter than the harness's 20s async_wait budget, and the /ingress POST is non-idempotent so bumping the client deadline rather than retrying is the right call. Commit message explains the why clearly (CPU-quota freeze, non-idempotent), which is exactly the shape a "just widen a timeout" change needs to justify itself. Signed-off, no AI trailers, one file, one const, one call site.

@ryzhyk
ryzhyk added this pull request to the merge queue Jul 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 14, 2026
@mihaibudiu
mihaibudiu added this pull request to the merge queue Jul 14, 2026
Merged via the queue into main with commit 0d4fd2e Jul 15, 2026
1 check passed
@mihaibudiu
mihaibudiu deleted the fix-adapter-test-http-timeout branch July 15, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

connectors Issues related to the adapters/connectors crate QA Testing and quality assurance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants