oliver-zehentleitner / maity

hub test: cross-replica bell wake asserts on the wake path, not a 2 s wall clock (flaky on loaded CI)

Sign in to report

tsk-ywdwd6w93rx4 Open

vuur 97628: tests/test_wakeups.py::test_a_ring_on_another_replica_wakes_a_held_bell failed on #1530's hub-postgresql job (run 42599475924, 11:39Z). The failure was assert 2.0601622889998907 < 2.0 at :279. #1530 does not touch the code: the ring arrived 60 ms after the 2 s fallback bound on a loaded runner.

Fix: make the test independent of runner speed. Either assert which path woke the bell (the cross-replica ring, not the fallback timer), or set the fallback far beyond the ring's expected time in this test, so the two can't overlap. Keep a red-without-the-ring counter-check.

Small; whoever is free next. Review via vuur.