You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci-fix: main browser suite stalls in Playwright after worker timeouts #3543
The main ci suite has timed out after five hours on two consecutive runs: 39682247234 and 39713175301. In both, test_page_mode_keeps_visible_native_ink_and_exact_drawing_comment and test_a_comment_on_words_where_the_page_draws_no_margin_is_written_in_the_row each stayed inside Playwright until pytest's configured 30-minute faulthandler timeout ended its worker. Replacement workers continued to 99%, but the suite then waited until the five-hour job limit. The last visible smoke test passed as the deadline fired; it was not the stalled test.
Both browser node IDs pass when run in a focused local selection. The CI stack capture shows the worker's Playwright event loop waiting, but not the suspended test greenlet or the browser command it awaits. I cannot safely change product code or weaken these tests from that evidence. The next reproduction needs the active Playwright request and browser process state when either test stalls, plus the xdist scheduler's remaining item queue after a worker exits. A shorter timeout would make the failure cheaper but would not restore the tests' behavior or make main green.
I could not reproduce the stall on the current main head (491a2c7): the two affected browser test nodes passed together with -n0 in 10.42 seconds. The latest main CI run is still in progress, so it does not yet establish whether the broad-run failure persists. I have not opened a fix PR because the isolated run gives no failing behavior to trace; the next useful evidence is the pending Playwright command and browser process state at the point a broad-run worker stalls.
No five-hour stall since Oct 22, across 64 completed main runs. Two corrections for the record. The tests named above are xdist's crash attribution: faulthandler's dumps in the same logs name five other tests, a different one each time. And the hours after the crashes were not a hung test: py-spy shows every live worker idle waiting for its next item, and the controller waiting, from the last test report until the 5 h bound, which is an xdist scheduling hang after a worker is replaced. Closing the stall. A separate PR passes --max-worker-restart=0 in CI so a crashed worker ends the run at once.
This was written by Claude Code on behalf of max-sixty
Activity
leaf-agent commentedon Oct 22, 2026
I could not reproduce the stall on the current main head (
491a2c7): the two affected browser test nodes passed together with-n0in 10.42 seconds. The latest main CI run is still in progress, so it does not yet establish whether the broad-run failure persists. I have not opened a fix PR because the isolated run gives no failing behavior to trace; the next useful evidence is the pending Playwright command and browser process state at the point a broad-run worker stalls.max-sixty commentedon Oct 25, 2026
No five-hour stall since Oct 22, across 64 completed main runs. Two corrections for the record. The tests named above are xdist's crash attribution: faulthandler's dumps in the same logs name five other tests, a different one each time. And the hours after the crashes were not a hung test: py-spy shows every live worker idle waiting for its next item, and the controller waiting, from the last test report until the 5 h bound, which is an xdist scheduling hang after a worker is replaced. Closing the stall. A separate PR passes
--max-worker-restart=0in CI so a crashed worker ends the run at once.End the suite when a worker hangs instead of idling until the 5 h bou…