Skip to content

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

Open
kevinburkesegment wants to merge 1 commit into
mainfrom
fix-fuzz-ci-timeout
Open

ci: limit fuzz test to 2 parallel workers to avoid CI flakiness#226
kevinburkesegment wants to merge 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.
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