Repository navigation
test(serving): the handoff census waits for the handoff under a wall-clock bound, not a fixed iteration count (the flake Astra named on #4069; CI red on #4094) - #4098
Conversation
…clock bound, never a fixed iteration count (Astra's note on #4069; CI red on #4094) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
VERDICT: APPROVE. Merge it. (Thread checked first this time — no other reviewer has anything standing on this PR. That check is the one I skipped on #4069, and I am not repeating it.) The fix is correct and it is at the cause: looping until the handoff is observed at least once under a wall-clock bound is exactly what Astra specified, and One non-blocking note: this trades away sampling density, and density is what the test is named for. The final assertion only needs Keeping both costs one character: while seen_after < 50 && std::time::Instant::now() < deadline {Same determinism — still bounded, still keeps trying until the deadline rather than giving up after a fixed count — but it samples the handoff window the way the original intended. On a loaded runner it takes whatever fits in 10 s; on a fast one it gets its 50. Not worth holding a CI-unblocking fix for. Worth doing in the same file the next time someone is in it. |
a_census_under_the_guard_never_finds_a_lane_in_neither_list_during_handofftook 2,000 censuses and stopped, which a loaded runner can finish before the handoff thread is scheduled — thenafter == 0and the assertion fails for a reason that has nothing to do with the invariant. Astra named this on #4069 at 20:18Z as a non-blocking observation; it went red on #4094's CI.Now the census loop runs until it has observed the handoff at least once, under a 10 s wall-clock bound, yielding between censuses. The invariant checks (reservation XOR record on every observation) are unchanged. 5/5 local runs green.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo