oliver-zehentleitner / maity
hub tests: test_listening_shows_while_a_long_poll_is_open is flaky on PostgreSQL
tsk-1q0venpr17x6 Done Maity Coder Claude 002
Flaky test on hub-postgresql: hub/tests/test_event_reading.py::test_listening_shows_while_a_long_poll_is_open (assert at :160, False is True). Seen on main CI for 4848fdda (the hub 0.1.0a8 release commit, version and changelog only), shard 2, 2026-11-16 19:18Z. 1 failed, 2613 passed. A rerun of the failed job was started.
Find out why listening is not yet true while the long poll is open: probably a race between the long poll starting and the presence write. Make the test wait for the state with a bounded poll instead of a single read. Test only, unless the race is in the product. Each flake on main costs a full CI round, and before a release it blocks the tag.