Repository navigation
Fail the TSan workflow when a TSan test job fails - #844
Merged
Merged
Conversation
continue-on-error on the TSan test matrix made every failed job report success, which hid real failures on master and made them look like PR regressions. Known benign races are already in tsan_suppressions.txt, so drop it, as in the ASan and UBSan workflows. Install the Python test dependencies through a bounded retry, so a transient clone of the git-pinned RLTest does not fail a job. Fixes #827 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ader The soak and CLI-fuzz nightlies also check out release branches, which do not have the install helper: fall back to a plain pip install there. The tsan.yml header still called the workflow informational. The helper uses a POSIX loop and says when it retries. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 8f3f0e3. Configure here.
This was referenced Oct 25, 2026
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.
Fixes #827.
Problem
Every TSan test job ran with
continue-on-error: true, so a failed job never failed the workflow. In the last 25 TSan runs on master, 5 had a failed job and still reported success (see #827). The causes were the crash-tail watchdog (fixed by #828), 45-minute step timeouts on the unsharded job (fixed by sharding), and a failedpip installclone of the git-pinned RLTest.Change
tsan.yml: dropcontinue-on-errorfrom the test matrix, as in the ASan and UBSan workflows.fail-fastis already false, so one failed shard does not cancel the others. Known benign races stay intsan_suppressions.txt.utils/install_test_requirements.sh: installstests/test_requirements.txtwith up to 3 attempts, sleeping 15 s and 30 s between them. pip's own--retriescovers only HTTP downloads, not the git clone of the pinned RLTest. It logs each retry and is used at all 9 install sites (asan, ci ×3, cli-fuzz-nightly, differential, soak-nightly, tsan, ubsan). The soak and CLI-fuzz nightlies also check out release branches that predate the helper, so they fall back to a plainpip installwhen it is absent.tsan.ymlheader: no longer calls the workflow informational.From now on a TSan test failure, including a known flake such as #830, turns the workflow red rather than hiding.
Validation
piponPATH: one that fails twice then succeeds exits 0 on attempt 3, and one that always fails exits non-zero after 3 attempts.Affected versions
CI only. The masking dates from 045f75b (#323), which is in releases 2.3.0 through 2.5.2.
🤖 Generated with Claude Code
Note
Low Risk
Changes are limited to GitHub Actions and a small install helper; TSAN may surface previously masked flakes, which is intentional.
Overview
TSAN CI is no longer allowed to pass when test jobs fail. The test matrix drops
continue-on-error: true(aligned with ASan/UBSan), and the workflow header now states that only races listed intsan_suppressions.txtare ignored—other TSAN reports or test failures turn the run red.Python test deps install is centralized and retried. New
utils/install_test_requirements.shrunspip install -r tests/test_requirements.txtup to three times with 15s/30s backoff, targeting transient failures when cloning git-pinned RLTest. ASan, CI (three jobs), differential, TSan, and UBSan call the script directly; CLI-fuzz and soak nightlies use it when present and fall back to plainpip installon older release branches that lack the helper.Reviewed by Cursor Bugbot for commit 8f3f0e3. Bugbot is set up for automated code reviews on this repo. Configure here.