Task · TSO-0159

Fix nondeterministic TestIngressWALScheduledCadence_CommitRequiresMetricsAndLogs failure in CI

Description

CI run 37974335505 on main 303616b9 failed build/vet/test in TestIngressWALScheduledCadence_CommitRequiresMetricsAndLogs/1m0s/cumulative at ingresswal_cadence_test.go:1126 ‘original admission: HTTP 503’ (after a passing devices-sample assertion at :688). The same test passed on CI for 54915a36 and in local gates. Either the test has a nondeterministic dependency (real network/time inside a synctest bubble, shared state across subtests) or the landed TSO-0148 coordinator can refuse an admission (503) it should accept. Main is red until fixed.

Acceptance Criteria

Definition of Done

Implementation Notes

loop19: loop-created repair for main red; 1 implementation attempt; root cause = cadence fixture returned before the WAL worker’s first pass (test bug; the 503 is the intended fail-closed re-check). Reproduced 1/23 on Linux 2-CPU and deterministically; fix 50/50 there. Landed 6c40bd81; security review approve; CodeRabbit 0; composed just check green; ci-success green.

Final Summary

Cadence fixtures now synctest.Wait() after starting the WAL worker so its first pass cannot race the poisoned-original admission; no assertion changed. Landed 6c40bd81.

View the source file on GitHub