Repository navigation
test: synchronize notifications fuse fixture - #789
Merged
Merged
Conversation
frahlg
force-pushed
the
agent/fix-notifications-test-race
branch
from
August 4, 2026 12:44
6140d5c to
a4d6ca4
Compare
frahlg
marked this pull request as ready for review
August 4, 2026 12:46
This was referenced Oct 17, 2026
frahlg
added a commit
that referenced
this pull request
Oct 17, 2026
* ci: run the Go race detector on the control-loop packages CI runs go test without -race. Agents report "race tests pass" from local runs, and two races still merged: #787 and #789 fixed test fakes that raced after landing. On their parent commits (ee416d1, 5d5f810) this check fails with WARNING: DATA RACE. .github/scripts/race.sh runs -race on the 16 package trees that share state with the control loop. The same command runs locally and in the new race job, which the required go test + vet check now waits for. All of them pass on master today. * ci: skip the wall-clock retention budget test under -race The race detector slows code 5-10x, so the 3-second retention budget in TestForecastRetentionLargeOverflowWithinScoringBudget failed on CI with no data race. The plain test job still enforces the budget. * ci: exercise race script edits in Core checks Signed-off-by: Fredrik Ahlgren <[email protected]> --------- Signed-off-by: Fredrik Ahlgren <[email protected]>
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.
Summary
Root cause
Service.SubscriberunsevaluateFusein a goroutine. The test'sFuseReaderclosure read the locall1value while the test goroutine wrote it, producing the race reported atservice_test.go:524, 561, 566. The race is confined to the test fixture; production code is unchanged.Validation
go test -race ./internal/notifications -run '^TestFuseOverLimitFiresAfterThresholdAndResets$' -count=20go test -race ./internal/notifications -count=1make verifymake verifymake verify-allNo changeset is included because this is test-only.