Skip to content

ci: limit fuzz test to 2 parallel workers to avoid CI flakiness - #226

Merged
kevinburkesegment merged 1 commit into
mainfrom
fix-fuzz-ci-timeout
Jul 29, 2026
Merged

ci: limit fuzz test to 2 parallel workers to avoid CI flakiness#226
kevinburkesegment merged 1 commit into
mainfrom
fix-fuzz-ci-timeout

Conversation

@kevinburkesegment

Copy link
Copy Markdown
Contributor

Summary

  • go test -fuzz spawns one worker subprocess per CPU. The Go toolchain enforces a hardcoded 1s response deadline per worker RPC; on a contended runner a worker can miss it, failing the whole run with context deadline exceeded unrelated to the sanitizer code being tested (seen in https://github.com/segmentio/stats/actions/runs/30407686004/job/90436700862).
  • Cap -parallel=2 on the fuzz step to reduce CPU contention between workers and avoid tripping that deadline.

Test plan

🤖 Generated with Claude Code

go test -fuzz spawns one worker per CPU; on a contended runner a
worker can miss the toolchain's hardcoded 1s response deadline,
failing the whole run with "context deadline exceeded" unrelated
to the code under test. Capping -parallel=2 reduces contention.
@kevinburkesegment
kevinburkesegment merged commit 61045b6 into main Jul 29, 2026
14 checks passed
@kevinburkesegment
kevinburkesegment deleted the fix-fuzz-ci-timeout branch July 29, 2026 17:51
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.

2 participants