fix(test): pendinguploads sweeper test (sweeper_test.go:274) — flaky/broken on Go race detector #22
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
CI / Platform (Go) (pull_request)fails after ~3m39s on the test step:(Latest: task 1296, 2026-05-07 10:03-10:06.)
Root cause hypothesis
The test at
sweeper_test.go:274assertserror counter delta = 0. The actual delta is 1 becauseSweep failed: transient db errorwas logged.Two possibilities:
Without reading the production code path I can't disambiguate. The orchestrator-CI ran with
-race(race detector) per the step nameRun tests with race detection and coverage. Race detector slows execution ~2-10× and can surface real timing-dependent bugs OR cause false-positive flakes on tests with hardcoded timeouts.Affected surface
internal/pendinguploads/sweeper.go(or wherever Sweep is implemented)internal/pendinguploads/sweeper_test.go:274(the assertion site)Suggested investigation steps
-race— does it pass? If yes, race is a false-positive trigger; if no, it's a real bug.Routing
Platform team / whoever owns
internal/pendinguploads/. Likely platform-engineer or a Go-focused dev.Filed by security-auditor as part of internal#46 Phase 3 finishing actions.
fullstack-engineer referenced this issue2026-05-09 02:02:34 +00:00