Skip to content

Run tests with the race detector - #325

Merged
Vaughan-Temporal merged 1 commit into
mainfrom
vaughan/test-race
Nov 5, 2026
Merged

Vaughan-Temporal merged 1 commit into
mainfrom
vaughan/test-race

Conversation

@Vaughan-Temporal

Copy link
Copy Markdown
Contributor

What changed?
make test, which CI runs, passes -race.

Why?
The payload visitor runs Visitor callbacks in goroutines when ConcurrencyLimit > 1. A data race in that code only fails a test under the race detector.

How did you test it?

  • make check test passes with -race, about 5s for the suite.

Potential risks
Tests run slower and use more memory under -race, and CI needs cgo, which ubuntu-latest enables by default.

make test, which CI runs, now passes -race, so data races in tests fail the
build. The payload visitor runs Visitor callbacks in goroutines when
ConcurrencyLimit > 1, and its concurrent tests only report races under -race.
@Vaughan-Temporal
Vaughan-Temporal requested review from a team as code owners November 4, 2026 20:05
@Vaughan-Temporal
Vaughan-Temporal enabled auto-merge (squash) November 5, 2026 18:21
@Vaughan-Temporal
Vaughan-Temporal merged commit 21aa9b3 into main Nov 5, 2026
4 checks passed
@Vaughan-Temporal
Vaughan-Temporal deleted the vaughan/test-race branch November 5, 2026 18:22
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.

2 participants