Repository navigation
testquality: a test that sleeps a second or more is flagged - #68
Merged
Merged
Conversation
A wait on the clock passes on a quiet machine and fails on a loaded one, which is what a flake is: of 45 failed fleet gates in two days of spin, the real flakes were each a bound the machine's load outran. A time.Sleep of a constant second or more in a test's body - a subtest's or a goroutine's included - is reported with its length; under a second paces a loop, a computed duration is not a number to judge, and a helper's sleep is the helper's. The allowlist carries the ones whose only signal is the clock, each with its why. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…the clock Nine of spin's 43 were a loop's pacing: for deadline...; time.Sleep(2s). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Replaces #66, whose branch fell behind main while its gate ran (the rebase merge wants the branch at main's head). Same two commits.
A
time.Sleepof a constant second or more in a test's body, closures included, is reported asTestX sleeps 5s for nothing it can see: a wait on the clock passes on a quiet machine and fails on a loaded one, which is what a flake is. A sleep inside a loop looks again (a wait for a condition with the loop's own bound) and is not flagged; nor is one under a second, a computed duration, or a helper's. The allowlist ratchet is the existing one (package:Test # why).On spin: 26 findings in 24 tests; spin's PR carries them with each test's own reason. Fixture
waits; docs and README. Lint, test, mutate 0 survivors, site.🤖 Generated with Claude Code