ci: limit fuzz test to 2 parallel workers to avoid CI flakiness - #226
Open
kevinburkesegment wants to merge 1 commit into
Open
ci: limit fuzz test to 2 parallel workers to avoid CI flakiness#226kevinburkesegment wants to merge 1 commit into
kevinburkesegment wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
go test -fuzzspawns 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 withcontext deadline exceededunrelated to the sanitizer code being tested (seen in https://github.com/segmentio/stats/actions/runs/30407686004/job/90436700862).-parallel=2on the fuzz step to reduce CPU contention between workers and avoid tripping that deadline.Test plan
fix-fuzz-ci-timeoutand confirmed CI is green (bothstableandoldstablematrix jobs, including the Run Fuzz Tests step): https://github.com/segmentio/stats/actions/runs/30433954592🤖 Generated with Claude Code