Skip to content

flaky tests: tui_e2e pty cancel family times out on loaded CI runners #877

Closed

Description

@ajianaz

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)

Evidence (2026-11-16)

Ask

Related: #702, #712, #738 (other flaky tests).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions