llm-interactive-proxy icon indicating copy to clipboard operation
llm-interactive-proxy copied to clipboard

Scheduled CI: race-fuzz-nightly.yml failing

Open matdev83 opened this issue 3 days ago • 2 comments

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 RACE in internal/infra/controlplane/observers. Write at optional_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 at generation_handoff_lifecycle_test.go:465 (generationHandoffLease.QueryLeases) and :491 (ReleaseLease) from the process-owned IndividualLeaseRecovery worker (individual_lease_recovery.go:129 → RequestCoordinator.RecoverIndividualLease) vs writes at :403, :404 and :419 in TestRequestAuthority_IndividualLeaseRecoveryAfterTerminalization; plus fixedExpiryHeartbeatConcurrency.RenewLease at lease_heartbeat_spin_test.go:21 by 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.

matdev83 avatar Nov 30 '26 12:11 matdev83

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.Context struct field that has no recorded entry (5fd7ba4bf, #2210).
  • A billing-store test file is recorded as holding two time.Sleep calls 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.

matdev83 avatar Nov 30 '26 13:11 matdev83

The latest scheduled run of race-fuzz-nightly.yml succeeded: https://github.com/aiproxer/aiproxer/actions/runs/46473701115

matdev83 avatar Dec 01 '26 10:12 matdev83