Skip to content

Run tests with -race by default - #719

Merged
dharmab merged 2 commits into
mainfrom
enable-race-detector-in-tests
Jul 26, 2026
Merged

Run tests with -race by default#719
dharmab merged 2 commits into
mainfrom
enable-race-detector-in-tests

Conversation

@dharmab

@dharmab dharmab commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • make test now runs with -race by default via TEST_FLAGS ?= -race, catching data races in CI
  • TEST_FLAGS still overrides the default for cases like TEST_FLAGS="-race -parallel=1" make test

Test plan

  • make test (full suite, 1154 tests) passes with -race, no data races detected

🤖 Generated with Claude Code

Data races in concurrent code are otherwise easy to miss until they
cause flaky failures in production. TEST_FLAGS still overrides the
default for cases like debugging with -parallel=1.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dharmab
dharmab enabled auto-merge (squash) July 26, 2026 17:20
@dharmab
dharmab disabled auto-merge July 26, 2026 17:22
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dharmab
dharmab force-pushed the enable-race-detector-in-tests branch from 2baba4e to 44f41c9 Compare July 26, 2026 17:24
@dharmab
dharmab enabled auto-merge (rebase) July 26, 2026 17:26
@dharmab
dharmab merged commit bc6ee52 into main Jul 26, 2026
9 checks passed
@dharmab
dharmab deleted the enable-race-detector-in-tests branch July 26, 2026 17:32
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.

1 participant