Skip to content

Fail the TSan workflow when a TSan test job fails - #844

Merged
fcostaoliveira merged 2 commits into
masterfrom
claude/tsan-fail-on-error-20261024
Oct 24, 2026
Merged

fcostaoliveira merged 2 commits into
masterfrom
claude/tsan-fail-on-error-20261024

Conversation

@fcostaoliveira

@fcostaoliveira fcostaoliveira commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

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 failed pip install clone of the git-pinned RLTest.

Change

  • tsan.yml: drop continue-on-error from the test matrix, as in the ASan and UBSan workflows. fail-fast is already false, so one failed shard does not cancel the others. Known benign races stay in tsan_suppressions.txt.
  • utils/install_test_requirements.sh: installs tests/test_requirements.txt with up to 3 attempts, sleeping 15 s and 30 s between them. pip's own --retries covers 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 plain pip install when it is absent.
  • tsan.yml header: 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

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 in tsan_suppressions.txt are ignored—other TSAN reports or test failures turn the run red.

Python test deps install is centralized and retried. New utils/install_test_requirements.sh runs pip install -r tests/test_requirements.txt up 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 plain pip install on 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.

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]>

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread .github/workflows/soak-nightly.yml Resolved
…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]>

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread utils/install_test_requirements.sh Resolved
@fcostaoliveira

Copy link
Copy Markdown
Collaborator Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.

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.

TSan CI jobs use continue-on-error, so 5 of the last 25 master runs failed silently

1 participant