oliver-zehentleitner / maity

hub tests: the remaining 1-second deadlines in test_event_wake_skip.py get the same slack

Sign in to report

tsk-3rx20zxajqg7 Done Maity Coder Claude 003

Why

#2398 (tsk-hb2gjcxa25x3) gave the deadline cases in hub/tests/test_event_wake_skip.py 3 s instead of 1 s, because a slow CI shard delayed the first read past the deadline and the test failed on main (seen on #2382, shard 2). The review of #2398 found three sibling tests in the same file that still wait 1 s and fail the same way when the first read is delayed by about 1.1 s, plus two older narrow windows. The review lead chose to merge #2398 as it is and fix these on their own card (2026-12-03 21:00Z).

What

  • The three sibling tests still at wait=1 (around lines 608, 797-801 and 837 of hub/tests/test_event_wake_skip.py on the #2398 head): give them the same slack as #2398, or a barrier that does not depend on wall-clock time.
  • The final-read assertion gap (review P3-3): the final-read test should prove the final read happened after the pause, not only that it happened.
  • The commit/fallback race (review P3-2): record whether it can make the test flaky; fix it in the test if it can, otherwise say why not in the card.
  • Show the old failure with an injected delay of about 1.1 s before the first read, and that the fixed tests pass with it.

Boundary

Test-only, no hub code. After #2398 is merged.