Scheduled CI: race-fuzz-nightly.yml failing
Tonight's finding
Classification: regression on the exported tree (sync 4325f46b5, "chore: sync deterministic OSS source"); fixture synchronization, not production code.
Where: race-fuzz-nightly.yml, run 46266972122 (head 4325f46b5). Jobs: race-fuzz (broad) 141359000013 and race-fuzz (runtime) 141359000254 failed; race-fuzz (architecture) passed. Previous scheduled run 46147173853 (head 37ef50c61) was green, so the sync that introduced the affected tests is the change that broke it.
Failing steps: bash scripts/race-check.sh --strict --lane broad and --lane runtime.
- broad job:
WARNING: DATA RACEininternal/infra/controlplane/observers. Write atoptional_usage_queue_test.go:90(task2Setup.func2) by the optional-usage append worker vs previous read at:332(TestOptionalUsageQueue_AppendDeadlineDoesNotRetry) in the test goroutine. Failed:TestOptionalUsageQueue_AppendDeadlineDoesNotRetry,_AppendPanicDoesNotStopTheWorker,_DrainCutoffAndRetry,TestOptionalUsageLoss_MetricsOffReportsWhileAppendBlocked,TestOptionalUsageQueue_BoundsAndFIFO. - runtime job:
internal/core/runtime. Read atgeneration_handoff_lifecycle_test.go:465(generationHandoffLease.QueryLeases) and:491(ReleaseLease) from the process-ownedIndividualLeaseRecoveryworker (individual_lease_recovery.go:129→RequestCoordinator.RecoverIndividualLease) vs writes at:403,:404and:419inTestRequestAuthority_IndividualLeaseRecoveryAfterTerminalization; plusfixedExpiryHeartbeatConcurrency.RenewLeaseatlease_heartbeat_spin_test.go:21by the heartbeat worker vs the test's read at:59(TestLeaseHeartbeat_FirstRenewalHonorsShortLeaseDeadline). 40+ unrelated tests only fail with "race detected during execution of test".
Root cause: three fixtures hand mutable state to goroutines the test never joins: the lease fixture's queryPage/releaseErr/releaseCalls/beforeRelease, the heartbeat fixture's attempts, and the observers' task2Fixture.calls. No production symbol is in either report.
Fix: pending upstream. Guarding the shared fields and reading them through copy-returning accessors; no test is skipped, relaxed, quarantined or re-timed, and no timeout changes.
Additional finding
Classification: workflow-scoped test-cost ratchet drift, visible only when the private-side tree is present (the public export omits those paths and passes).
While verifying the nightly lanes I ran the precommit-tagged QA suite over a complete tree and found TestGrowthRatchet (internal/qa, -tags=precommit) failing on main:
- A batch result JSONL reader gained a
context.Contextstruct field that has no recorded entry (5fd7ba4bf, #2210). - A billing-store test file is recorded as holding two
time.Sleepcalls that were removed (4c3faac62, #2176).
This is the gate the scheduled QA lane runs (go test -tags=precommit ./internal/qa); it cannot pass on a complete tree until that record is refreshed. A fix is pending upstream; the ratchet's behavior is unchanged and still fails on genuine new growth (verified with a one-line probe).
Status of the nightly race lanes reported above: unchanged — fixture data races, fix pending upstream.
The latest scheduled run of race-fuzz-nightly.yml succeeded: https://github.com/aiproxer/aiproxer/actions/runs/46473701115