Skip to content

Open the merged pull request's fold from saved state in the sidebar restart flow - #489

Merged
yansfil merged 3 commits into
mainfrom
fix/flaky-417
Oct 5, 2026
Merged

yansfil merged 3 commits into
mainfrom
fix/flaky-417

Conversation

@yansfil

@yansfil yansfil commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Related: #417

Summary

sidebar-pr-start 가 Linux CI에서 같은 SHA의 통과와 실패를 오갔고, 실패 자리는 매번 병합된 PR(#43)의 glyph였다.
spec이 Inactive 접힘 행을 클릭해 연 뒤 glyph를 찾았는데, 실패 시점의 화면은 접힘 행이 닫힌 채였다.
이 spec이 증명하는 것은 "화면이 묻지 않아도 사이드바가 PR을 그린다"이지 접힘 토글이 아니므로, 클릭을 없애고 첫 재시작이 읽는 core-state에 펼침 상태를 미리 넣는다.
@flaky 태그와 issue annotation을 지운다.
클릭 연결은 web/src/inactiveFold.test.tsx(클릭이 프로젝트 경로를 담은 inactive_checkouts_toggle 한 건을 보내고, 접힘 행이 core가 돌려준 expanded를 그린다)가 지킨다.
#417은 main 연속 2회 녹색 뒤에 닫는다(원인 미확인).

Review

  • 판단해 주세요: 원인을 찾지 못한 채 상호작용을 설정으로 바꿨다. TESTING.md는 "클릭 수를 바꿔서 통과시키지 않는다"고 하므로, 이것을 "준비 단계의 클릭을 상태 준비로 옮긴 것"으로 볼지 판단이 필요하다.
  • 조심해서 볼 파일: web/e2e/sidebar-pr-start.spec.ts - 시드 키는 core가 workspace.path와 정확히 비교하므로 toPage를 거친다.

Evidence

  • 확인한 것: 같은 spec을 retry 0으로 로컬 macOS에서 반복 실행했다. 이 PR의 변경: 30/30 통과(CPU yes 4개 + workers 4, 머신 load average 10-13). 비교로 현재 main spec 54/54, 실패 당시 SHA(33b7342)의 옛 spec 30/30, 느린 git 래퍼(0.7초) 8/8.
  • 확인한 것: 접힘 행 생성 시점을 page에서 10ms 간격으로 관찰했다. 재시작 직후 charlie 행은 먼저 일반 행으로 보이고, worktree reader의 git 답이 온 시점(git 지연에 비례해 1초-6초 뒤)에 Inactive 접힘으로 옮겨진다. 접힘 행이 나타난 같은 프레임에 클릭해도 12/12 즉시 펼쳐졌다.
  • 확인하지 못한 것: CI 실패의 원인. 로컬에서 실패가 재현되지 않았고, CI artifact에는 wire trace가 없어서 토글이 core에서 거부됐는지(inactive_checkouts.unavailable) 확인하지 못했다. 이 수정이 Linux CI에서 실제로 막는지는 CI 반복 실행으로만 알 수 있다.
  • 확인한 것: 새 단위 테스트는 actions.ts의 payload 키를 바꾸면 실패한다(변이 확인). web lint와 typecheck 통과.
  • 확인하지 못한 것: Linux와 Windows에서는 실행하지 않았다.
추가 증거

실패 시점 aria snapshot: charlie 프로젝트 안에 main, now와 Inactive 1(접힘)만 있고 alpha/bravo는 Open pull request #41/#42가 그려져 있다. hided 로그에는 세 저장소의 pull_requests.ok가 모두 있다.

@yansfil
yansfil merged commit 76018bf into main Oct 5, 2026
21 checks passed
@yansfil
yansfil deleted the fix/flaky-417 branch October 5, 2026 08:21
yansfil added a commit that referenced this pull request Oct 5, 2026
Related: #287 #311 #416 #417 (the last tagged tests, fixed or split in
#487, #489, #492)

## Summary

No e2e test carries the `@flaky` tag any more, so the machinery that ran
tagged tests apart goes.
The required web shards and the required desktop step no longer pass
`--grep-invert @flaky`, nightly's desktop suites no longer either, and
the two steps that ran tagged tests once in a step that could not fail
`verify` are deleted with the `quarantine` input of `web-e2e.yml`.
A flaky test is now handled one way only: CI retries it once,
`scripts/ci-flaky-report.py` files it with a seven-day deadline, and it
is fixed or deleted.
`docs/TESTING.md`, `CONTRIBUTING.md` and `docs/README.md` say there is
no quarantine tag or step.

Size: workflows 1,632 -> 1,584 lines, steps 169 -> 167 (`pr.yml` 548 ->
525, `web-e2e.yml` 290 -> 266, `nightly.yml` 225 -> 224).

## Review

- **조심해서 볼 파일**: `.github/workflows/web-e2e.yml` and `pr.yml` - the log
artifact now uploads on `failure()` only, since `steps.quarantine` no
longer exists; the required steps' output directories are unchanged.
- A `@flaky` tag added later would be only a label: no step excludes it
from a required lane.

## Evidence

- **확인한 것**: `git grep 'tag:.*@flaky'` on main 01a8894 finds no test;
no workflow or document references the removed steps or
`inputs.quarantine`; the three workflows parse as YAML; the script suite
passes (125 tests) and `nightly-report.test.cjs` passes (6).
- **확인하지 못한 것**: the nightly desktop suites without `--grep-invert` run
at the next scheduled nightly; this PR's own lanes run the required
steps.
HyunjunJeon pushed a commit to HyunjunJeon/hide that referenced this pull request Nov 9, 2026
…ore (with-hide#2149)

Closes with-hide/hide-private#561
Closes with-hide/hide-private#495
Closes with-hide/hide-private#564
Closes with-hide/hide-private#605

## Summary

e2e 픽스처가 두 번째 에이전트를 너무 일찍 시작해서, 코어가 "다른 시작이 아직 진행 중"이라며 거절하고 픽스처는 30초를
기다리다 실패했습니다.
코어는 시작 하나가 끝나기 전에는 새 시작을 받지 않는데, 첫 에이전트의 행은 그 시작이 끝나기 전에 먼저 보입니다.
이제 테스트는 행이 아니라 코어가 그 시작에 준 답(시작 패널이 읽는 것과 같은 영수증, `task_operation`)을
기다렸다가 다음 시작을 보냅니다. 거절되면 30초를 기다리지 않고 코어의 이유로 바로 실패합니다.

화면 변경 없음: 테스트 코드와 문서만 바뀝니다.

## Review

- **조심해서 볼 파일**: `web/e2e/daemon-actions.ts` `startAgentInCheckout` -
코어의 task slot 규칙(`herdr-core/src/runtime/session.rs:3994-4003`)을 그대로
읽는지, `started` 외의 답은 모두 실패로 끝나는지.
- **조심해서 볼 파일**: `web/e2e/engine-fixture.ts` - 첫 시작이 끝난 뒤에야 두 번째 시작(또는
family의 spawn)이 나갑니다. 기다림은 코어 신호뿐이고 timeout·sleep·retry는 늘리지 않았습니다.
- **원인이 다른 것**: with-hide#444 with-hide#445 with-hide#459 with-hide#479 with-hide#496 은 픽스처가 아니라 spec 안의 기다림에서 실패하고
로그에 거절이 없어 이 PR에서 다루지 않습니다.
- **Herdr 레인에서만 난 것**: with-hide#260 with-hide#489 with-hide#502 with-hide#510 with-hide#511 with-hide#519 with-hide#533 은 `*-herdr-*`
레인에서만 났고 그 레인은 #2069로 지워졌습니다. #2069와 아래 반복 run을 적은 댓글로 닫습니다.
- **열어 두는 것**: with-hide#490 with-hide#492 with-hide#523 with-hide#529 with-hide#532(`agent_pane_required`)는 이 PR이
끝내지 않습니다. 원인은 with-hide/hide-private#630에서 따로 다룹니다.

## Evidence

- **확인한 것**: own engine으로 바뀐 뒤 "second fixture agent" 실패 6건 중 5건(#561
x2, with-hide#495, with-hide#564, with-hide#605; Linux·Windows)의 setup snapshot과 hided 로그를 봤습니다. 모두
두 번째 시작의 request id로 `task_operation.busy` 거절이 남아 있습니다. 나머지 1건(#561, run
42076071271)은 로그를 받지 않았고 오류 줄만 같습니다.
- **확인한 것**: 실패 로그 순서는 tab.create 완료 -> busy 거절 -> 첫 시작의
`agent.started`, 통과한 실행은 tab.create 몇 ms 뒤 `agent.started` -> 두 번째
시작입니다.
- **확인한 것**: `web`·`desktop` typecheck, lint(e2e 크기 검사 포함) 통과.
- **확인한 것**: a79a97b, run 42202678411의 Linux 전체 e2e(6 shard)와 Windows
`@platform` e2e를 3번 돌렸습니다. 닫는 11개 제목은 매번 통과했고 재시도도 없었습니다.
- attempt 1: Linux 6/6, Windows 1/1 통과. 재시도 후 통과: `desk-lane` "Desk is
off on a new install"(Linux 4/6), with-hide#444 close-subtree(Linux 6/6)
  - attempt 2: Linux 6/6, Windows 1/1 통과, 재시도 없음
- attempt 3: Linux 6/6, Windows 1/1 통과. 재시도 후 통과: `desk-lane` 같은
테스트(Linux 4/6)
- **범위 밖**: #444가 attempt 1에서 재시도 후 통과한 것과 `desk-lane`이 두 번 재시도 후 통과한 것은
픽스처 원인이 아닙니다. 이 노드 범위 밖이고 따로 묶여 있습니다.
- **확인하지 못한 것**: 로컬 e2e는 돌리지 않았습니다(Rust debug 빌드 디스크 부족). macOS 웹 e2e는
PR CI에 없어 반복하지 않았고, 이 묶음의 21개 이슈 중 macOS에서 난 것은 없습니다.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant