Skip to content

ci-fix: flaky picker preview auto-refresh PTY test (AUTOREFRESHMARK timeout) on 28273302130 #3261

Closed as not planned

Description

@worktrunk-bot

Failure

ci run 28273302130 on main @ 0b0f10497 (chore: bump taiki-e/install-action from 2.82.3 to 2.82.4, #3255 — a dependabot action-version bump with no source change).

Failing legs:

  • test (windows)
  • collect affected coverage (linux)
  • collect affected coverage (windows)

All failed the same test:

integration_tests::switch_picker::test_switch_picker_preview_auto_refreshes_when_compute_lands
thread '…' panicked at tests/integration_tests/switch_picker.rs:680:9:
Timed out after 30s waiting for AUTOREFRESHMARK to appear on screen.

This is the wait_for_stable_until describe-timeout path: the picker's comments tab opened while the mocked gh pr view fetch (held behind a deliberate 3000ms delay) was still in flight, and the comment (AUTOREFRESHMARK) never surfaced via the PreviewNotifier auto-repaint within the 30s STABILIZE_TIMEOUT.

Diagnosis

Transient, load-driven timing flake in a PTY/TUI test — not a regression.

Evidence the failure is load-driven, not deterministic:

  • No code change. The triggering commit (chore: bump taiki-e/install-action from 2.82.3 to 2.82.4 #3255) only bumps the taiki-e/install-action pin in CI workflows. Nothing in the picker / preview path changed.
  • Not platform-correlated. In the same run the test passed on test (linux), test (macos), code-coverage, and collect affected coverage (macos), but failed on test (windows), collect affected coverage (linux), and collect affected coverage (windows). Linux both passed (test) and failed (collect affected coverage) — the failures track whichever leg was most resource-starved, not the OS.
  • Same mechanism as the previously-recorded picker flake. #3216 recorded the same load-driven async-preview starvation for a different picker PTY test (test_switch_picker_alt_r_keeps_cursor_sticky, since de-flaked). Mechanism: under heavy full-suite parallelism (≈4200 tests; coverage instrumentation adds further slowdown), the delayed mock subprocess + the product-side repaint poke were starved long enough to exceed the test's 30s stabilization window.

Mechanism detail: the test asserts an auto-refresh — the comment must appear with no further keystroke once the 3000ms-delayed gh pr view resolves and the picker repaints itself via PreviewNotifier. Both the delayed subprocess and the repaint poke are subject to scheduler starvation; under a saturated runner the chain can exceed STABILIZE_TIMEOUT (30s).

Why no fix was produced

  • First occurrence of this specific test failing — per the repo's running-tend flaky-test rule, a first-seen PTY/timing flake gets no PR.
  • Any robustness change (bumping STABILIZE_TIMEOUT, restructuring the wait) would be an unverifiable guess against an interactive PTY path the CI sandbox cannot drive reliably, and the failure does not reproduce deterministically.
  • main has already advanced past the failing commit to 6fc6b37b6 (feat(step): add require-include option + CLI flags to copy-ignored #3196, an unrelated wt step copy-ignored change); the full-suite legs there re-exercise this test, so there is nothing to fix forward on the dependabot commit.

Recorded (and closed) so a recurrence of this same shape — test_switch_picker_preview_auto_refreshes_when_compute_lands timing out on AUTOREFRESHMARK — can be detected per the repeat-occurrence escalation path. If it times out again on a future run, the test's auto-refresh stabilization should be hardened.

Activity

  1. worktrunk-bot commented on Jun 27, 2026

    @worktrunk-bot
    CollaboratorAuthor

    Transient load-driven flake in a PTY/TUI timing test — closing as diagnosed. No fix PR per the running-tend flaky-test rule (first occurrence; unverifiable timeout change against an interactive path the CI sandbox can't drive). Recorded for repeat-occurrence detection.

  2. added
    tend-outage
    on Jun 27, 2026
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

    tend-outage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions