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
flaky tests: tui_e2e pty cancel family times out on loaded CI runners #877
Fixed in #881 (2026-11-16). Root cause was in the tests: the answer text renders before the turn's Msg::Done, so the next input (a prompt, /quit) was sent while running was still true (a prompt steers instead of starting a turn, /quit is ignored), and wait_exit returned before the pty reader had copied the child's last output. The tests now wait for the idle hint and for the reader's EOF. Under taskset -c 0 with busy loops the whole tui_e2e binary went from 4/75 failed runs to 0/195. Reopen with a failing CI run if it recurs.
What
Two tests of the TUI pty e2e suite (crates/tole-cli/tests/tui_e2e.rs) fail intermittently on CI with a timeout and pass when the failed job is re-run:
tui_steers_queues_and_returns_the_queue_on_cancel (assertion at tui_e2e.rs:562)
tui_streams_approves_cancels_and_leaves_an_ordinary_session (timeout after 60 s waiting for (turn cancelled), tui_e2e.rs:261)
Both tests wait on a pty for the cancel to render; the failures look like the cancel not being observed within the wait on a loaded runner, not a product bug. This is not proven.
Activity
fix(test): wait for the TUI to be idle before the next input and drai…