Skip to content

test: loosen TestHandshakeMultipleClients timeout from 5s to 30s#114

Merged
singchia merged 2 commits into
mainfrom
fix/test-flake-timeouts
Apr 22, 2026
Merged

test: loosen TestHandshakeMultipleClients timeout from 5s to 30s#114
singchia merged 2 commits into
mainfrom
fix/test-flake-timeouts

Conversation

@singchia

Copy link
Copy Markdown
Owner

Summary

  • TestHandshakeMultipleClients has a hardcoded 5s budget for five sequential handshakes. Under CI race + coverage the post-merge run on main only got 4/5 through, failing as timeout: only 4/5 accepted.
  • Lifting the budget to 30s preserves the original intent — catch a real deadlock, not a slow scheduler — without masking regressions on warm runners.
  • No production code touched.

Test plan

  • go test -count=5 -run TestHandshakeMultipleClients ./test/unit/... passes in ~3s locally.
  • CI (unit + race + coverage) stays green post-merge.

🤖 Generated with Claude Code

singchia and others added 2 commits April 21, 2026 20:14
The test opens five clients sequentially and waits on a buffered channel
for five AcceptEnds to complete. The hardcoded 5-second deadline is
tight under CI race + coverage: a recent post-merge run on main only
got 4/5 through before giving up. Lifting the budget to 30s keeps the
intent (catch a genuine deadlock, not a slow scheduler) without
retriggering on warm runners.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The chaos suite has grown past the old ~3 minute budget: HalfOpenSendOnly
(~94s), HalfOpenRecvOnly (~30s), NetworkBlackhole (~33s) and
WireBitFlip (~105s) alone already sum to ~260s, with the rest of the
suite bringing cumulative time to ~5 minutes on a warm runner. This PR
showed a run at 296s — 4 seconds shy of the 300s wall — where every
individual test passed but the binary got killed. Doubling the budget
to 600s restores headroom without enabling genuinely hung tests.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@singchia
singchia merged commit b2a612f into main Apr 22, 2026
17 checks passed
@singchia
singchia deleted the fix/test-flake-timeouts branch April 24, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant