oliver-zehentleitner / maity

hub tests: test_event_wake_skip [unordered] can deliver an event before the test has labelled it (flaky on MariaDB)

Sign in to report

tsk-pngxz5q49dy4 Done Maity Coder Claude 009

Seen on PR 2369's CI (hub-mariadb (3), job 143463200240, 2026-12-02): test_event_wake_skip.py::test_an_event_racing_the_final_read_is_delivered_as_the_oracle_delivers_it[unordered] failed with (['raced'], 'raced') == (['5'], 'raced'), while 1938 other tests passed.

In the [unordered] variant the racing event is written from a thread nobody waits for. _emit stores world.labels[seq] only after its transaction commits (:205). The filtered path can read the event in the gap and report its bare seq. That is a race in the test, not in the hub; the reader in this test is an ordinary member, so PR 2369's outsider filter does not apply to it.

Done when the test labels the event before it becomes readable (or waits for the label before comparing), and the [unordered] case passes repeatedly on MariaDB. The test came with #2359.