Skip to content

Run desktop e2e without taking the operator's screen focus - #246

Merged
yansfil merged 7 commits into
mainfrom
feat/desktop-e2e-no-focus
Sep 28, 2026
Merged

yansfil merged 7 commits into
mainfrom
feat/desktop-e2e-no-focus

Conversation

@yansfil

@yansfil yansfil commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Related: #232, #244

Summary

Closes #232.
Desktop e2e windows used to come to the front and take the keyboard: show() activates the app, and a second launch called show() plus focus().
Under a --hide-show-inactive switch that only desktop/e2e/fixture.ts passes, the host now calls showInactive() and then blur(): the window appears without activating the app and is sent behind every other window.
A Finder, Dock or open launch carries no switch and keeps show() / show()+focus().
The claim is enforced on every run: the fixture preloads desktop/e2e/focus-guard.cjs, which records each time the app becomes active or a window takes the keyboard. Any test not tagged @needs-focus that recorded one fails.
Two tests need the key window and are tagged @needs-focus, and each focuses its window explicitly: browser zoom and close-policy's browser-page step. Close-policy's other Command W coverage stays untagged. pnpm --dir desktop e2e --grep-invert @needs-focus skips the tagged tests.

No screenshot: the change is window ordering and activation, and native window capture is refused on this machine's locked session (see Evidence).

Review

  • Please judge: no off-screen placement.
    macOS clamps a framed window so part of it stays on the display. On the 1920x1080 display, asked x=-2000 landed at x=-760 (a 40 px strip); x=2420 landed at 1880; y=1580 landed at 969; y=-2000 landed at 30.
    Sending the window to the back does more: showInactive() alone put the test window at z=0 above all 12 other app windows, and blur() moved it to z=12, behind all of them, still painting at 60 fps with no activation event.
  • Please judge: sendCommand's webContents.focus() (host.ts) is not gated. It runs only after a browser page was given native focus (webContents.isFocused()), which only @needs-focus specs do.
    docs/ARCHITECTURE.md now lists it, along with minimized-window restore, the folder picker sheet and Reveal in Finder, as the paths the switch does not cover.
  • Please judge: CI runs the full suite, @needs-focus included, and CI launches also use the switch. This reads "CI keeps its current behavior" as "CI still runs everything".
  • Please judge: pnpm --dir desktop e2e locally still runs the two @needs-focus tests, which take focus. Should the local default exclude them unless CI is set?
  • Files to watch: desktop/e2e/fixture.ts - every spec now imports test from it, and launch throws otherwise.
  • Files to watch: desktop/src/main/host.ts present() - the only show path; with no switch it must stay show() / show()+focus().
  • Coordination: after this merges, Open the new tab chord where the keyboard is #244 (desktop/e2e/new-tab.spec.ts) will not compile or run until it changes three things:
    it imports test from ./fixture, not @playwright/test (launch throws otherwise);
    it drops { switches: [...] }, which launch no longer accepts, so the build fails as it stands;
    and it tags its electron.focus({ steal: true }) test with NEEDS_FOCUS, or the focus guard fails it.
  • Follow-up: the second-launch process in desktop.spec.ts's lifetime test runs without the guard or the switch. It quits at the single-instance check before ready, and the first instance decides the behavior.

Evidence

  • Confirmed (CI, b214785): verify green. The desktop e2e ran 21 tests in macos-15's unlocked session: 20 passed and 1 skipped (remote-workspace).
    Both @needs-focus tests passed, and the focus guard found no activation in any of the 18 untagged tests.
  • Confirmed (local, locked session): final head, full pnpm --dir desktop e2e: 18 passed, 1 skipped, 2 failed. The skip is remote-workspace, which needs HIDE_E2E_SSH_PORT.
    The two failures are the @needs-focus tests, which fail the same way on main here: on a locked session nothing can become the key window.
  • Confirmed: an activation probe (run-local -r preload wrapping BrowserWindow.show/showInactive/focus, app.focus, webContents.focus).
    On main: 24 show(), plus show()+focus() on the second-launch reopen.
    On this branch: the host calls only showInactive(). The app.focus/focus calls all come from the two @needs-focus tests.
  • Confirmed: a guard report write that fails is logged to stderr, not thrown. Teardown closes any app a test left running before it removes the report folder. A test that timed out with its app running left no app process behind.
  • Confirmed: the guard catches reports. In a throwaway spec, a synthetic browser-window-focus after launch failed the untagged test and passed the tagged one. A report written the moment the guard loads, before Playwright attaches, did the same.
  • Confirmed: desktop typecheck, lint and vitest (48); the scripts lane (unittest 32, identity and invariant scripts).
  • Not confirmed, operator check for the morning: this Mac's session was locked for every run (CGSSessionScreenIsLocked), and on it even app.focus({ steal: true }) activates nothing.
    So the frontmost-app record (sampled every 0.5 s; loginwindow via lsappinfo and Preview via System Events throughout, on main too) cannot tell the old behavior from the new.
    The guard likewise never fires locally; CI's unlocked session above is where it ran for real.
    Morning check: run pnpm --dir desktop e2e --grep-invert @needs-focus while working in another app, and record osascript -e 'tell application "System Events" to get name of first process whose frontmost is true' before, during and after.
  • Not confirmed, operator check for the morning: occluded painting as pixels. screencapture -l was refused on the locked screen, and Electron's capturePage() renders on demand, so it proves nothing about occlusion.
    The only local signal: a covered window's requestAnimationFrame counter kept advancing at about 60 fps with visibilityState "visible", under a covering window at a higher layer and after blur().
    Morning check: capture a covered test window twice by window id and compare.

AI tooling: mostly AI tooling; no person has yet watched a run on an unlocked Mac.

Under e2e the desktop host shows each window with showInactive() and a
second launch or a Dock click never focuses it, so a test run leaves the
operator's frontmost app and keyboard alone. The switch is
--hide-show-inactive, which only the e2e fixture passes; a Finder, Dock or
open launch keeps show() and focus().

The fixture now passes that switch and --disable-backgrounding-occluded-windows
to every launch, so specs no longer pick switches one by one. The browser
zoom test needs the key window and is tagged @needs-focus;
--grep-invert @needs-focus runs everything that leaves the keyboard alone.

Closes #232
The close-policy spec focuses a browser page, which on macOS asks to
activate the app, and it never checked that the page held the keyboard.
It now brings its window to the front, waits for the page to be focused,
and carries @needs-focus. The lifetime test title matches what it checks,
and the docs no longer claim more than the host does.
The fixture preloads focus-guard.cjs into every app it launches; the guard
reports did-become-active and browser-window-focus on stderr, and an auto
fixture on the desktop e2e test fails any test not tagged @needs-focus that
saw one. Specs take test from the fixture, and launch refuses one that
did not, so the check runs on every desktop e2e run, CI included.

Under the e2e switch the host now also sends the window behind every other
window after showInactive(), so test windows no longer cover the
operator's work. The close-policy spec is split: its Command W flow runs
without focus, and only the browser-page step is tagged @needs-focus.
The guard wrote its reports to stderr, which the fixture could read only
after Playwright finished attaching, so a report from app start or one
written just before quit could be lost. It now appends each report, with
the pid and time, to a file the fixture names per launch with
--hide-e2e-focus-report, and the check reads those files after the test.
The docs name what the guard does not see and the host paths that can
still bring something forward under the switch.
An app that outlives a timed-out test finds its report folder gone, and
a throw in the main process would show Electron's error dialog, which
comes to the front. The guard now logs a failed write to stderr, and the
fixture's teardown closes any app a test left running before it removes
the folder. The architecture note says the ungated sendCommand focus runs
only after a page was given native focus, which only @needs-focus specs do.
@yansfil
yansfil merged commit 0b3d878 into main Sep 28, 2026
7 checks passed
@yansfil
yansfil deleted the feat/desktop-e2e-no-focus branch September 28, 2026 13:23
yansfil added a commit that referenced this pull request Sep 28, 2026
…a panel, and a PRs tab (#238)

Related: #218 (이 PR에 포함, 머지되면 #218도 머지로 표시됨),
`agents/prd/overview-lenses-tiles-agents/prd.md`,
`agents/prd/overview-lenses-issues/prd.md`,
`agents/prd/overview-lenses-prs/prd.md`

## Summary

Overview를 네 객체(이슈 · 체크아웃 · 에이전트 · PR)를 보는 렌즈로 다시 짰습니다.
#218(이슈 중심 Tasks 보드, Local/GitHub 이슈 출처, 이슈에서 시작) 위에 승인된 PRD 세 개를 순서대로
얹은 통합 브랜치입니다.
- 탭 줄 자리에 타일 Agents · Issues · PRs · Sessions, 첫 화면은 Agents › 체크아웃
레인(main 맨 위, 내 차례 레인 다음), 두 번째 모드는 계보, Inbox 제거
- Issues는 이슈만 카드 머리로 두고, 카드를 누르면 오른쪽 이슈 패널(본문 · 라벨 · 작성자 · 댓글을 열 때 한 번
읽음), 필터, 이슈 없는 작업은 접힌 줄 하나
- PRs 탭은 차례별 묶음(내 차례 · 에이전트가 고치는 중 · CI 실패 · 최근 머지), 맡기기(실패한 체크와 변경 요청을
첫 지시로 에이전트 시작), 이슈 잇기(GitHub 이슈면 확인 한 번 뒤 PR 본문에 `Closes #N`)
- 에이전트 시작을 새 pane의 셸이 터미널을 잡은 뒤로 미뤄, 이슈 시작 · 맡기기가 가끔 에이전트 없이 끝나던 경합을
고쳤습니다
- 사이드바 "↰ …에서" 화살표와 장치 칩 아이콘이 정의되지 않은 크기 토큰 때문에 24px로 그려지던 것을 12px로
고쳤습니다

![첫 화면 Agents › 체크아웃: 타일 머리, main 맨 위, 질문 중인 에이전트(노란 테두리) 레인이 다음,
위임선](https://github.com/yansfil/pr-assets/blob/main/hide/overview-lenses/ede8801/overview-agents-checkouts-light.png?raw=true)
첫 화면: 탭 줄 자리의 타일, main이 맨 위이고 내 차례(노란 테두리) 레인이 그다음, 부모에서 자식으로 내려가는 위임선.

## Review

- **판단해 주세요**: 첫 화면을 Agents › 체크아웃 레인으로 바꾸고 Inbox를 없앤 결과가 "내 차례"를 충분히
드러내는지(노란 노드 · 레인 순서 · 타일 배지)
- **판단해 주세요**: 모든 프로젝트 Overview에서 각 프로젝트의 main 레인을 무조건 위에 고정하지 않고 에이전트
상태로 정렬합니다(같으면 main 먼저)
- **판단해 주세요**: 새 타일 · 레인 · 이슈 패널 · PR 줄은 라이브러리 `Component /` 시트 없이
`Screen / Project Overview`에 로컬 토큰으로 그렸습니다
- **판단해 주세요**: '정리'는 main의 Delete worktree 대화상자를 그대로 열어 영어 문구입니다
- **조심해서 볼 파일**: `herdr-core/src/worktree_control.rs` - failure path,
Herdr contract: 에이전트 시작 전 pane 셸 준비를 기다리는 규칙
- **조심해서 볼 파일**: `herdr-core/src/runtime/pull_requests.rs`,
`herdr-core/src/github.rs` - runtime mutex, 바깥 쓰기: gh 이슈 생성과 PR 본문 쓰기는
worker에서, 다시 써도 한 번
- **조심해서 볼 파일**: `herdr-core/src/sidebar.rs`, `web/src/snapshot.ts` -
snapshot wire: 에이전트 마지막 말 `message`, `issue_work`, `pr_work`, 프로젝트별 PR
목록
- **조심해서 볼 파일**: `web/src/overviewLens.ts` - 타일 · 레인 · 계보를 매 snapshot에서
계산하는 순수 함수(메모이즈)

## Evidence

- **확인한 것**: 최종 트리에서 `verify-cargo.sh lint`, `verify-web.sh`(vitest 484
+ 44), `check-design-contract.mjs` 통과
- **확인한 것**: 슬라이스마다 격리된 Herdr와 hided로 web e2e 전체(83개 안팎)와 cargo test
전체(1386개 안팎) 통과, 실패는 고친 뒤 재실행
- **확인한 것**: 시작 경합은 e2e가 Herdr agent list로 새 pane에 claude가 실제로 떴는지 확인.
수정 전 PR 맡기기 spec 2/2 실패, 수정 후 4/4 통과
- **확인한 것**: hided는 자기 PATH에 없는 에이전트는 시작을 거부하므로, e2e fixture가 기본으로
claude shim을 hided PATH 맨 앞에 두고 자기 PATH를 넘기는 spec은 shim을 직접 넣습니다.
claude가 없는 CI 러너에서 이슈 시작 · 맡기기 e2e 2개가 실패하던 것을 로컬에서 claude를 PATH에서 뺀 채
재현했고, 같은 조건에서 main을 머지한 최종 트리의 web e2e 전체 88개 통과(weekly-usage가 자기 가짜
claude를 쓰는 걸 가리던 첫 수정의 회귀도 여기서 잡아 고침)
- **확인한 것**: 전체 e2e에서 PR 맡기기 대화상자가 '시작하는 중'에 60초 멈춘 것을 한 번 잡았습니다. 새
워크트리가 에이전트 시작 전에 체크아웃 목록에 들어오면 대화상자가 기다릴 작업 종류를 바꿔버리던 경합이라, 시작을 누른 순간의
선택을 고정하도록 고쳤습니다(`web/src/PrDialogs.tsx`)
- **확인한 것**: 이슈 잇기 · 새 이슈 만들기의 GitHub 쓰기는 모든 쓰기를 기록하는 가짜 gh로 e2e 검증
- **확인한 것**: 사이드바 화살표 폭을 e2e로 측정(수정 전 24px, 수정 후 12px), 선언되지 않은 CSS 변수를
잡는 unit 테스트 추가
- **확인하지 못한 것**: 실제 GitHub 저장소로의 이슈 생성과 PR 본문 쓰기, Electron desktop
e2e(로컬에서 안 돌림, CI가 돎), 설치된 앱
- **확인하지 못한 것**: 워크트리 20개 규모와 좁은 창 폭, 일부 hover · ⚠ 상태와 Local 이슈 잇기는 unit
테스트만
- **게이트 변경**: `scripts/check-no-workstation-identity.sh`가 `git grep
--text`로 읽습니다. `-diff`로 접은 `hide-screens.pen`을 git grep이 "Binary file
matches"로만 알려, 허용된 `/Users/example`(main의 Mobile 화면)을 걸러내지 못하고 실패했기
때문입니다
- **게이트 변경**: desktop e2e는 `@needs-focus` 테스트를 나머지 뒤에
돌립니다(`desktop/playwright.config.ts` project 분리). main의 포커스 가드(#246) 뒤로
CI 러너에서는 첫 focus 테스트가 앱을 앞으로 가져왔다 끝낸 뒤 다른 앱이 없어 macOS가 다음에 뜨는 앱마다 활성화했고,
그 뒤 background 테스트 11개가 모두 실패했습니다(#240도 같은 11개). 로컬에서는 운영자 화면을 건드리지 않으려고
desktop e2e를 돌리지 않았고 `--list`로 순서만 확인, CI가 검증합니다
- **생성물**: `design/hide-screens.pen`은 `scripts/pen-screens.mjs`가 만든 파일이라
`.gitattributes`로 diff를 접었습니다(`git diff --text`로 볼 수 있음)

<details><summary>추가 증거</summary>

![Issues 이슈만 보드와 오른쪽 이슈
패널](https://github.com/yansfil/pr-assets/blob/main/hide/overview-lenses/ede8801/overview-issues-panel-light.png?raw=true)
Issues: 카드 머리는 항상 이슈, 이슈 없는 워크트리 · PR은 접힌 줄, 카드를 누르면 오른쪽 패널(라벨 · 작성자 · 이
이슈로 한 일 · 본문 · 댓글).

![PRs 탭 차례별
묶음](https://github.com/yansfil/pr-assets/blob/main/hide/overview-lenses/ede8801/prs-tab-light.png?raw=true)
PRs: 내 차례 · 에이전트가 고치는 중 · CI 실패 · 맡은 에이전트 없음 · 최근 머지(접힘), 이슈 칸은 제목 바로 뒤.

![PR
맡기기](https://github.com/yansfil/pr-assets/blob/main/hide/overview-lenses/ede8801/prs-delegate-light.png?raw=true)
맡기기: 실패한 체크와 변경 요청을 첫 지시로 PR 브랜치에서 에이전트 시작.

![이슈 잇기
확인](https://github.com/yansfil/pr-assets/blob/main/hide/overview-lenses/ede8801/prs-link-confirm-light.png?raw=true)
이슈 잇기: GitHub PR 본문에 Closes #N을 쓰기 전 확인 한 번.

![계보
모드](https://github.com/yansfil/pr-assets/blob/main/hide/overview-lenses/ede8801/overview-agents-lineage-light.png?raw=true)
계보: Observer에서 Implementor, 하위 에이전트로 왼쪽에서 오른쪽.

![다크 테마 체크아웃
레인](https://github.com/yansfil/pr-assets/blob/main/hide/overview-lenses/ede8801/overview-agents-checkouts-dark.png?raw=true)
다크 테마.

![사이드바 화살표
12px](https://github.com/yansfil/pr-assets/blob/main/hide/overview-lenses/ede8801/raised-from-arrow-12px.png?raw=true)
사이드바 "↰ …에서" 화살표가 글자 크기(12px)로.

</details>

**AI tooling**: 대부분 AI 도구. 사람은 Pen 보드에서 결정과 PRD를 정하고 승인했으며, 코드 diff를 손으로
대조한 것은 아직 없습니다.
yansfil added a commit that referenced this pull request Oct 29, 2026
Closes with-hide/hide-private#153
Closes with-hide/hide-private#152
Closes with-hide/hide-private#148
Closes with-hide/hide-private#218
Closes with-hide/hide-private#213
Closes with-hide/hide-private#227
Closes with-hide/hide-private#319
Closes with-hide/hide-private#159
Closes with-hide/hide-private#246
Closes with-hide/hide-private#186
Closes with-hide/hide-private#126

## Summary

herdr-core의 연결 노드 runtime 테스트 11개가 가끔 실패하던 원인을 고쳤습니다.
대부분은 테스트가 순서를 직접 정하지 않아 백그라운드 작업이 끼어든 경우였고, 그중 둘은 제품 쪽 문제였습니다.

- 정리(cleanup) 검토 결과가 화면에 나온 바로 그 순간 누른 "정리" 확인이 조용히 버려졌습니다. 이제 검토 결과와 다음
작업 허용이 같은 순간에 일어나서 확인이 항상 받아들여집니다.
- 새 pane의 셸 대기에서, 마감이 읽기 도중에 끼어들면 앞서 실패한 이유가 지워져 진단 기록이 "unreadable" 대신
"timeout"이 되거나 엉뚱한 이유를 남겼습니다. 이제 마감에 잘린 읽기는 결과로 치지 않습니다.

대기 시간을 늘리거나 재시도를 더하지 않았습니다.
with-hide/hide-private#274(doorbell 두 테스트)는 재현되지 않아 범위에서 뺐고, 원인 후보와 증거를
이슈에 남겼습니다.

스크린샷 없음: 화면을 바꾸지 않는 core와 테스트 변경입니다.

## Review

**제품 동작이 바뀌는 곳** (둘 다 수정 없이 실패하는 테스트로 증명, Evidence 참고):

1. `herdr-core/src/worktree_cleanup.rs` `WorkerGuard`, `worker_ended` -
정리 worker가 마지막 snapshot 전달과 lane 해제를 한 lock 안에서 합니다(전에는 lock 두 번).
`runtime/projects.rs` `confirm_cleanup`은 lane이 잡혀 있으면 확인을 거절하는데, 검토 답과
lane 해제 사이에 온 확인이 여기서 버려졌습니다(#152의 CI 로그: 10초 동안 제거 진단이 하나도 없음).
- `Mutex<Runtime>` 아래 일: 늘지 않았습니다. 같은 `ingest_cleanup`과
`cleanup_worker_finished`(필드 하나를 `None`으로)를 두 번의 lock 대신 한 번의 lock에서
합니다. 새 I/O, subprocess, 직렬화는 없고 `notify`는 전처럼 lock 밖입니다.
`scripts/check-capability-readers-off-lock.sh` 통과.
- 판단해 주세요: lane 해제가 마지막 답과 묶였으므로 `confirm_cleanup`의
`cleanup_worker.is_some()` 거절은 이제 "검토가 아직 loading 중"일 때만 걸립니다. 그 주석을
고쳤습니다.
2. `herdr-core/src/runtime/terminal_input.rs` `wait_with` - 셸 대기의 반복이
시계와 한 번의 읽기를 받아 돌고, 마감에 걸쳐 끝난 읽기(결과가 무엇이든)는 결과로 치지 않아 마지막으로 끝난 읽기의 결과가
남습니다. `shell_reads_keys`는 main과 같습니다. 결과는 `terminal.input_shell_wait`
진단의 `outcome`/`reason`에만 쓰이고, 키는 어느 경우든 그대로 써집니다.

다음 둘은 지시서에 제품 변경 후보로 적혔지만 **테스트 fixture만** 바뀝니다: #218/#213의 held
link(`runtime/tests/inbound.rs`), #227/#319의 연결
전환(`runtime/tests/links.rs`).

**조심해서 볼 파일**:
- `runtime/tests/inbound.rs` - held link의 Herdr가 link가 풀릴 때까지
`connect`에서 기다립니다(전에는 없는 socket이라 즉시 거절). 그 거절을 node session sync가 받아
테스트가 연결해 둔 node를 끊긴 상태로 덮었습니다. link를 쓰는 모든 테스트(inbound,
hide_ai_devices)가 통과하지만, 끝까지 release를 쥔 테스트가 있으면 멈출 수 있는 구조라 봐 주세요. 이전의
10초 자동 종료(`recv_timeout`)는 없앴습니다.
- `runtime/tests/node_issues.rs` - 확인을 검토 답의 announcement 안에서
누릅니다(`ChangeNotifier::announcing`). 콜백 안의 panic은 삼켜지므로 값을 모아 밖에서
assert합니다.
- `suggestions/worker.rs` `handled` - 실행 중인 run이 없는 pen 명령의 거절 답을
barrier로 씁니다. 상태를 바꾸지 않는 명령이라 골랐습니다.
- `docs/TESTING.md` - The test decides the order와 Wait for state에 규칙 네
줄을 더했습니다.

<details><summary>이슈별 원인과 처리 (main 8a865d8 기준)</summary>

| 이슈 | 테스트 | 원인 | 처리 |
| --- | --- | --- | --- |
| #153, #148 | `runtime::delivery::tests::moved_terminal_keeps_…`,
`remote_observation_without_a_local_socket_…` | `Worker::spawn`이
doorbell/watch producer를 띄워 자기 시계로 pass를 돌림. watch tick이 fixture의 옮겨진
child를 못 읽고 폴더가 없다고 보면 watch를 끝냄(`watches.len()` 0, `watches[0]` index),
store가 쓰는 중에 테스트가 파일을 읽음(`ledger_unavailable`, 로컬 재현) | #1812와 같은 규칙: 이
파일의 테스트 12개를 `Worker::store`로, 파일을 읽기 전에 store를 멈춤 |
| #152 | `node_issues::a_node_s_merged_worktree_is_removed_…` | 제품: 위 1번
| worker 마지막 답과 lane 해제를 한 lock에서. 테스트는 가장 이른 순간에 확인 |
| #218 |
`inbound::a_node_pane_s_hide_memory_reads_for_the_node_s_session` | node
session sync의 `socket_missing` 답이 테스트가 넣은 session 뒤에 도착해 node를 끊김으로
바꿈(`pane_not_connected`, 실패 0.04초) | held link의 Herdr가 link 동안 답하지 않음 |
| #213 | `inbound::a_moved_core_reads_its_own_kit_…` | 같은 원인 + kit 작업이
대기열에 남은 채 dispatch하면 node는 `checking`이 되지 않음, dispatch 뒤 lock을 놓은 사이 답이
끝날 수 있음 | 대기열까지 비기를 기다리고, dispatch와 확인을 한 lock에서 |
| #227, #319 | `links::a_native_fork_keeps_state_changes_…` (#227의 새 이름이
#319) | "다음 connect에 전환" arm을 fork worker 옆의 control lane(focus)이 가져가면,
전환이 fork worker의 확인 뒤에 적용되어 `pane.get`이 옛 서버로 감 | 전환을 fork worker 자신의
thread connect에서만(같은 fixture의 archive 테스트도) |
| #246 | `ssh_hosts_list::the_host_list_names_each_alias_…` | dispatch 뒤
lock을 놓은 사이 fake 답이 끝나 `loading`을 못 봄 | dispatch와 확인을 한 lock에서 |
| #126 |
`suggestions::worker::tests::a_weak_line_waits_fourteen_quiet_days_…` |
fixture의 barrier read가 전날의 남은 read일 수 있음. 그러면 clock이 `Wake` 처리 전에 움직여
run이 실제 3분 뒤로 밀리고 10초 대기가 끝남(로컬 재현) | 응답 채널이 있는 명령으로 barrier(`handled`)
|
| #159 | `memory_analysis::tests::a_linked_node_s_closed_session_…` |
테스트가 Memory hook의 1초 제품 예산 안에서 읽음, 부하에서 답이 비었음(로컬 37%) | hook 답 대신
scope가 가리키는 Project를 직접 확인. hook 답은 `memory_hook` 테스트의 몫이고 뒤의 receipt
확인은 hook과 무관해 그대로 |
| #186 | `terminal_input::tests::a_terminal_that_is_never_read_…` | 제품:
위 2번 | 잘린 읽기는 결과가 아님. 두 테스트(기존 것과 잘림 규칙 새 것)는 테스트가 움직이는 시계와 정해 둔 읽기로 돌아
socket과 벽시계에 기대지 않음, bound 150ms 그대로 |
| #274 | doorbell 두 테스트 | 재현 안 됨(fixture는 10-09부터 store만 띄움, 실패 둘 다
store의 5초 답 기한) | 범위 제외, 이슈에 증거 코멘트 |

</details>

## Evidence

- **확인한 것 (수정 전 재현)**: main 코드 테스트 바이너리로 12개 테스트를 각 200회, 24개 병렬, load
average 31-38에서 돌림: #159 74/200, #148 1/200(`ledger_unavailable`), #186
1/200, #126 1/200(`a read: Timeout`), 나머지 0/200.
- **확인한 것 (수정 후)**: 같은 조건(각 200회, 24병렬, load 27-42)에서 수정 후 바이너리로 12개
테스트와 새 잘림 테스트를 돌림: 2,600회 실패 0.
- **확인한 것 (수정 없이 실패)**: #152 - `worktree_cleanup.rs`와 `projects.rs`만
main으로 되돌리면 새 순서의 node 테스트가 5/5 `a confirmation pressed on the answer is
taken`으로 실패. #186 - 반복의 잘림 분기 한 줄만 지우면
`a_read_the_bound_cuts_short_leaves_the_last_failure_as_the_reason`이
`Timeout`(기대 `Unreadable("link down")`)으로 실패.
- **확인한 것 (#186 재수정 뒤)**: 두 셸 대기 테스트 각 200회, 24병렬, load 25-29: 실패 0.
- **확인한 것 (CI)**: verify run 40823301322(head 808270c) 성공, rust
workspace Linux를 포함한 모든 lane에서 재시도로 통과한 테스트 없음.
- **확인한 것**: 로컬 `verify-cargo.sh nextest -p herdr-core --retries 0`
3437/3437 통과.
- **확인한 것**: 바뀐 모듈 295개 테스트 통과, `verify-cargo.sh clippy -p herdr-core
--all-targets -D warnings`, `fmt-check`,
`check-capability-readers-off-lock.sh` 통과.
- **확인하지 못한 것**: #218, #213, #227/#319, #246, #153, #152는 로컬 부하 200회에서
수정 전에도 재현되지 않았습니다(CI Linux에서만 기록). 원인은 CI 로그(실패 시각, 진단 순서)와 코드로 정했고,
Linux 반복은 이 PR의 CI 실행으로만 봅니다. 이 맥은 Linux 호스트가 없고 디스크 여유가 3-9 GB입니다.

<details><summary>Verification record</summary>

- base: main 8a865d8, head: ae7f390 (CI verify run 40826129061
success, no test passed only on retry)
- before binary: main 8a865d8, after binary: 커밋 전 작업 트리(포맷만 다름)
- load repeat: `repeat.sh <bin> <tests> 200 24`, 테스트 하나당 프로세스 하나, macOS
arm64
- CI #152 로그: run 40817735918 job 123262761058, TRY 1 FAIL 11.029s,
`worktree.*` 진단 없음
- CI #218 run 40675696797, #213 run 40485064142: TRY 1 FAIL
0.040s/0.034s, 패닉 직전 `remote.session_unavailable socket_missing`

</details>
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.

Run local desktop e2e without taking the operator's screen and focus

1 participant