Skip to content

CI runs the Go tests under the race detector - #78

Merged
yellowman merged 1 commit into
mainfrom
claude/fcm-token-expiration-renewal-q15761
Aug 22, 2026
Merged

CI runs the Go tests under the race detector#78
yellowman merged 1 commit into
mainfrom
claude/fcm-token-expiration-renewal-q15761

Conversation

@yellowman

@yellowman yellowman commented Aug 22, 2026

Copy link
Copy Markdown
Owner

The Go/C CI itself already exists (.github/workflows/build.yml: configure + make + make check for sysmond, vet/test/build/install-staging for sysmon-web, and a Tailwind staleness check), so the follow-up from the review wrap-up reduces to one gap: the Go test step ran without the race detector.

The alerter and agent code is deliberately concurrent, and the review rounds left behind tests that pin contested interleavings (reconnect ordering, revoke during handshake, stale-producer commits, concurrent mints) with barrier hooks. Those only earn their keep if -race is watching while they run. The step also gains -count=1: actions/setup-go restores the Go build cache between runs, and a cached test result silently replays the old pass instead of executing anything.

Verified locally: go test -race -count=1 ./... passes across all packages.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NpxQtrW7f2YaKiYL6evoTZ


Generated by Claude Code


Note

Overview
CI now runs the sysmon-web Go suite with the race detector so concurrent alerter/agent tests actually catch data races.

The test step also uses -count=1 so a restored Go build cache cannot skip execution by replaying a previous pass.

Reviewed by Cursor Bugbot for commit cd52450. Bugbot is set up for automated code reviews on this repo. Configure here.

The alerter and agent code is deliberately concurrent, and the review
rounds that shaped it left behind a suite of tests that pin contested
interleavings with barrier hooks. Those tests only earn their keep if
the race detector is watching while they run, so the CI test step now
passes -race. It also passes -count=1: actions/setup-go restores the
Go build cache between runs, and a cached test result silently replays
the old pass instead of executing anything.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NpxQtrW7f2YaKiYL6evoTZ
@yellowman
yellowman merged commit 2b49a82 into main Aug 22, 2026
7 checks passed
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