Skip to content

Six web e2e specs fail intermittently on the macos-15 CI runners #231

Closed

Description

@yansfil

What happened

During the 2026-09-28 batch (PRs #221 to #230) the web shell job failed on at least one attempt for five of the nine PRs.
Each time, rerunning only the failed job passed at the same commit, with no code change.
The failures happened on the GitHub-hosted macos-15 runners, not on a developer machine.

Spec Symptom Runs
e2e/agent-close-contract.spec.ts:13 enterWorkspace (e2e/wire.ts:70) clicks an Overview card that keeps detaching from the DOM until the 180 s test timeout 36374031886 attempt 1 (#221), 36378156079 attempt 1 (#222), 36364461551 (prd/agent-tab-groups, before #221 existed)
e2e/agent-tab-groups.spec.ts:33 terminal_resize sent 4 times where 2 are expected during a drag preview; the log shows a WebSocket reconnect mid-drag that resends the resize 36374277537 attempt 1 (#222), 36378156079 attempt 1 (#222)
e2e/agent-tab-groups.spec.ts:203 [data-pane-view="w1:p2"] is not found after the delegated chip click (line 217) 36375722762 attempt 1 (#223)
e2e/s2.spec.ts:39 the new tab reads zsh before its Tab 2 label arrives (line 109) 36385808148 attempt 1 (#229)
e2e/palette.spec.ts:28 failed once on main 36363700277 (main at 7f1d1e7)
e2e/tab-names.spec.ts:9 failed once 36335634921 (prd/agent-tab-groups)

Every rerun costs about 20 minutes of the web shell job, and a PR that has to merge main again pays it again.
Locally the same specs passed with --repeat-each 2, so they appear to need a loaded runner.

What you expected

A spec passes or fails the same way on every attempt at the same commit, so no PR needs a rerun to merge.

Steps to reproduce

  1. Open any of the runs above and read the failed attempt's web shell log.
  2. Rerun the failed job at the same commit; it passes.

Notes

The failures fall into two shapes: a wait on state that a snapshot or a WebSocket reconnect can reset (the detaching card, the resize count, the focus attribute), and a label assertion racing an asynchronous rename.
Fix each shape once, by waiting on the state the operator would see rather than adding delays or retries (engineering principle 13).

Versions

  • hide: main at 25a2eba
  • Herdr: 0.9.1

Activity

  1. added
    bug
    on Sep 28, 2026
  2. yansfil commented on Oct 1, 2026

    @yansfil
    ContributorAuthor

    Linux evidence: agent-close-contract.spec.ts:13 now fails on the Linux web e2e lane too, with a different symptom from the macOS one above.

    • main push run 36895866164 (8e44db5), shard 1/8, job 110483165843: line 69, close_pane sent for the replacement pane, then the pane was still in Herdr's snapshot after 5 s.
    • The daemon log for that test: pane.close.requested for w2:p2, then 20 ms later recent_closed.close_failed "replacement_failed: The replacement shell could not be placed; the original tab was not closed", then boundary.roots 4 then 3.
      That error is ingest_close_replacement (herdr-core/src/runtime/agent_close.rs): after ingesting the fresh projection that holds the new replacement tab, the Agent layout has no display for it.
      The previous step (closing the original tab) had just succeeded 0.6 s earlier with the same path, so the first replacement was placed and the second was not.
    • No Enter Overview card detaches here: enterWorkspace passed.
    • Not reproduced on macOS: 12 of 12 passed with 20 busy loops on 14 cores.

    Nothing recorded why the tab was missing, so the spec is tagged @flaky under this issue and the core now logs close.replacement_unplaced with whether the tab was in the projection and had a layout read; the next failure's hided log names the branch.
    A second Linux failure, #308, has the same shape (a tab the daemon created never reaches the strip).

  3. added
    quarantine
    on Oct 5, 2026
  4. yansfil commented on Oct 5, 2026

    @yansfil
    ContributorAuthor

    묶음 issue의 하위 원인은 #249, #310이 고쳤고, 마지막 journey(agent-close-contract)는 #447에서 3개 spec으로 나뉘었습니다. 그 후속인 마지막 pane spec은 #501이 맡습니다. 재발하면 CI의 retry 분류가 새 issue를 엽니다.

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

    bugquarantine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions