Repository navigation
Conversation
… a quarantined-fail A live quarantined test that never runs was dropped from the outcomes entirely, so gstack-flaky exited 0 with quarantined=0 and no ledger entry. The same happened when a whole-command retry skipped it after a first-run pass, and the quarantine report counted that run toward the clean streak. quarantinedStatus now requires the final attempt to be a pass, and runFlaky settles every non-failed quarantined test instead of filtering out all-skip reports, so both cases yield quarantined-fail, exit 1 and a ledger entry recording the skip. A test skipped first but passing on the retry still counts as a pass, and an ordinary skip still follows the runner verdict.
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
Contributor
|
Thank you @Huyvux12. I reproduced #4550 on current main and read your change, and we're picking it up. We take one small outside fix a day, and this one is next in line, so expect it within a couple of days. It will land on main with you credited, and this PR will be closed with a link when it does. |
3 tasks done
Contributor
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.
A quarantined test that is skipped instead of running is now reported as a failure, so a skipped test can no longer look green.
Why: the quarantine rule is that a quarantined test still runs, but a skipped one was left out of the results entirely and the run stayed green.
Nothing to do.
What changed
gstack-flakyleft a quarantined test out of the results when it never ran, so the run exited 0 withquarantined=0and no written record. The same happened when a whole-command retry skipped it after a first-run pass, and the quarantine report then counted that run toward the clean streak.The verdict now follows the test's final attempt: a skip on the final attempt is a
quarantined-fail, and the run is red. A test that failed every attempt is still a hard break. A test skipped first but passing on the retry still counts as a pass, because it ran and passed on the attempt that decided the run. An ordinary skipped test still follows the runner's verdict.docs/flaky.mdnow states the rule in one sentence.Tests
Four new tests cover the fix, two of which failed on the code before this change. The two affected test files pass (74 tests), the strict type check reports zero errors, and the test-code type check reports no new diagnostics. The full free suite was not run: the change touches only the flaky-run verdict path.
Agent notes
Closes #4550.
Base:
main@1bd86d9a4547ed8df0c5da37380c838e61a91b9b, Bun 1.4.4.Repro from #4550, before:
After:
Retry case, after:
The ledger records
{"kind":"quarantined-fail","id":"cases.test.ts::::quarantined case","attempts":["pass","skip"]}, soquarantine reportshows it as a fail and the clean streak resets.Checks run:
bun test test/quarantine.test.ts test/flaky-run.test.ts(74 pass),bun run typecheck(zero errors),bun run typecheck:test(812 known diagnostics, none new),bun test test/module-size-ratchet.test.ts(6 pass).Scope:
lib/flaky-run.ts,test/quarantine.test.ts,test/flaky-run.test.ts,docs/flaky.md. No change tolib/quarantine.ts: the report already treats aquarantined-failledger line as a fail.