Repository navigation
Seed a kit record in the packaged session search spec so the first-run agent choice does not cover the shell - #698
Merged
Merged
Conversation
…n agent choice does not cover the shell A packaged daemon runs this Mac's kit, and since the Settings cleanup the kit holds a HOME with no kit record for the first-run agent choice, a modal that hides the rest of the shell from the page. The nightly package lane's session search then found no Settings button. The kit specs already seed an empty record (device-home.ts seedKitRecord); this spec now does too. The desktop e2e lane runs it on a debug daemon that runs no kit, which is why it passed there.
yansfil
added a commit
that referenced
this pull request
Oct 7, 2026
…ane (#700) Refs #412 (nightly package (macos) 실패를 PR에서 잡는 두 갈래 중 package 경로 쪽) ## Summary - 문제: packaged app의 macOS spec(local-kit, server-session-search)은 nightly에서만 돌아, #668이 만든 첫 실행 modal과 spec의 충돌이 머지 뒤 nightly(#412)에서야 드러났다. - 수정: `package.yml`의 `pull_request` paths 목록을 `scripts/ci-plan.py`의 `PACKAGE_PATHS`로 옮겼다. 그 경로가 바뀐 PR은 새 `package` lane을 계획하고, 이 lane이 `package.yml`을 `include-macos: true`로 부른다. - 경로 목록은 이제 한 곳이다. `package.yml`에는 자체 trigger가 없고, 테스트가 그것을 확인한다. - `verify`가 계획된 `package`를 요구한다. 이전에는 일부 PR에서만 도는 check라 required가 될 수 없었지만, plan/verify가 그 문제를 이미 푼다. - full plan(main push, nightly의 `verify` 호출, 분류 안 된 경로)은 `package`를 빼고 계획한다. main push는 원래 package를 돌리지 않았고, nightly는 `package.yml`을 직접 부른다. ## Review - **판단해 주세요**: 계획된 `package`가 이제 merge를 막는다(이전엔 required 아님). 실패 시 대응이 다른 lane과 같아진다. - **조심해서 볼 파일**: - `scripts/ci-plan.py` - `FULL_LANES`가 `package`를 뺀다. 분류 안 된 경로라도 `PACKAGE_PATHS`에 있으면(예: `scripts/verify-web.sh`) `package`가 붙는다. - `.github/workflows/package.yml` - `concurrency`를 지웠다. PR 교체는 `pr.yml`의 group이 맡고, nightly와 release 호출에는 필요 없다. - **비용 검토**: - package 경로 PR 하나에 macOS runner 1개가 10-16분 는다. 이 PR의 run에서 16분: cold release build 14.5분, spec 3개 37초(#698의 TEMP dispatch에서는 약 10분). - Windows와 Linux job 2개는 원래 같은 경로에서 돌았으므로 추가가 아니다. - 지난 3일 main merge 203개 중 38개가 이 경로를 건드렸다(하루 약 13개). - PR 한 run의 최대 job은 17에서 20개다(`docs/TESTING.md`). ## Evidence - **확인한 것**: - `scripts/tests` 전체 168개 로컬 통과. 새 테스트 두 개를 더했다. - package 입력 16개 경로는 `package`를 계획하고, 그 밖의 11개 경로는 계획하지 않는다. - `package.yml`에는 `pull_request` trigger가 없다. - 이 PR의 run이 `package` lane을 직접 돌았다(`package.yml`과 `pr.yml`을 바꾸므로). - #698 이전 base에서: macOS package의 `server-session-search`가 nightly #412와 같은 신호로 실패(Settings와 workspace 행 30 s 초과, run 37567806459). PR에서 이 class를 잡았다. - rebase 뒤(run 37570344219): package Linux, Windows, macOS(spec 3/3) 통과. verify https://github.com/modakbul-gongbang/hide/actions/runs/37570344219/job/112636005456 - **확인하지 못한 것**: actionlint는 로컬에 없다. workflow 문법은 위 CI run이 증거다.
yansfil
added a commit
that referenced
this pull request
Oct 7, 2026
Refs #412 (nightly package (macos) 실패 class를 PR desktop e2e lane에서 잡는 쪽) Related: #698 (이 PR이 그 spec의 seed 줄을 지운다), #700 ## Summary - 문제: desktop e2e lane의 daemon은 `target/debug`에서 돌아 install kit을 돌리지 않는다. packaged daemon만 kit을 돌리므로, kit이 만드는 상태(#668의 첫 실행 agent 선택 modal)와 spec의 충돌이 nightly package lane(#412)에서야 드러났다. - 수정: `web/e2e/bundled-app.ts`가 debug 바이너리 셋(`hided`, `hide`, `hide-agent-hooks`)을 worker당 하나의 `hide.app/Contents/Resources` 배치로 hardlink한다. desktop `isolate()`는 앱의 `HIDE_CLI_PATH`를 이 bundle의 `hide`로 둬, daemon이 packaged와 같이 kit을 private HOME에 돌린다. - web의 `bundledBinary`(daemon마다 복사본)는 지우고 같은 helper를 쓴다. bundle은 앱이나 daemon이 그것으로 뜰 때 만들어, 아무것도 띄우지 않는 fixture(unit suite)에는 build가 필요 없다. - `isolate()`는 기본으로 빈 kit 기록(`seedKitRecord`)을 심는다. 첫 실행을 보는 spec은 `~/.hide/kit/installed.json`을 지운다(지금 desktop에는 없다: 첫 실행 dialog는 web `agent-onboarding`과 core/hide-kit 테스트가 지킨다). - 그래서 spec마다 두던 seed(`home-layout`, #698의 `server-session-search`)는 지운다. ## Review - **판단해 주세요**: desktop e2e의 모든 launch가 이제 kit을 돈다(CLI link, hook 진단, 은퇴 pass). packaged 동작과 같아지는 대신 kit 실패가 desktop spec 실패로 나타난다. - **조심해서 볼 파일**: - `web/e2e/bundled-app.ts` - failure path와 정리. - bundle은 `target/debug/e2e-apps/<pid>/`에 둔다. Windows runner의 temp가 다른 드라이브라 hardlink가 넘을 수 없어서다. - worker 종료 때 지운다. 그 exit handler는 `worker-owned`의 것(소유 daemon 정지) 뒤에 돈다. - 죽은 worker의 bundle은 다음 bundle을 만들 때 지운다(rebuild 뒤 옛 inode가 디스크에 남는 것을 막는 cap). - `desktop/e2e/fixture.ts` - `start()`가 앱의 `HIDE_CLI_PATH`가 bundle일 때만 link한다. `hide` helper와 cleanup의 `hide stop`은 `HIDE_CLI`(target/debug)를 그대로 쓴다. 같은 내용이라 build id가 같다. - **비용 검토**: launch당 추가 시간은 따뜻한 launch 14쌍에서 중앙값 +54 ms, 평균 +61 ms(범위 -131~+267 ms)다. 아래 표. ## Evidence - **확인한 것**: - TEMP desktop e2e lane(macOS, `server-session-search` x3, retry 0)의 전후 결과와 launch 시간: 아래 표. - nightly의 `@platform` lane을 이 브랜치로 따로 돌렸다(nightly concurrency group과 분리). - desktop e2e: Linux 6/6, Windows 6/6 통과(run 37568682822, 37568686414). - web e2e Windows `@platform`도 통과. - desktop unit 158개, web과 desktop의 typecheck, lint(test size 포함) 로컬 통과. - 이 PR의 full run(run 37570292612): desktop e2e 60 passed(`server-session-search` 12.6 s), web e2e, checks, windows check 통과. verify https://github.com/modakbul-gongbang/hide/actions/runs/37570292612/job/112633982739 - **확인하지 못한 것**: - Linux와 Windows에서 kit이 실제로 돌았는지는 통과한 run의 로그로 보이지 않는다. bundle 판별은 이름 기반이라 OS와 무관하다(`hide_kit::bundled_kit_dir` 테스트). - kit의 Herdr integration 행: bundle에 herdr를 넣지 않아(web bundle과 같다) "Herdr CLI 없음"으로 읽힌다. 그 행을 보는 spec이 생길 때 그 PR에서 link한다. - 이 run의 첫 launch(3.9 s, bundle)는 runner의 첫 Electron 기동이라 bundle 비용과 가를 수 없어 위 통계에서 뺐다. 바로 뒤 debug launch는 1.5 s였다. | TEMP desktop e2e lane, retry 0 | 결과 | |---|---| | bundle만, 기본 kit 기록 없음 (run 37568547117) | `server-session-search` 3/3 실패: `getByRole('button', { name: /^Settings \(/ })` 30 s 초과, nightly #412와 같은 신호 | | 이 PR (run 37568584039) | 3/3 통과(12.7-14.8 s) | | launch에서 Settings 버튼까지, 교대로 15쌍 | bundle 중앙값 1527 ms, debug 1520 ms(첫 launch 제외 14쌍) | main의 desktop e2e lane은 같은 spec이 kit 없이 통과해 왔다(#686, #698의 PR run). 이 PR부터 이 class가 PR에서 실패로 잡힌다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #412 (nightly run 37541045200, package (macos))
Summary
server-session-search.spec.ts"server picker and conversation search in a background native window"가 두 시도 모두getByRole('button', { name: /^Settings \(/ })를 30초 동안 찾지 못했다.agent_onboarding: pending)으로 붙잡고, 셸은 Apply로만 닫히는 modal(AgentOnboarding)을 띄운다. modal은 나머지 셸을 접근성 트리에서 숨기므로 sidebar의 Settings 버튼이 role로 잡히지 않는다.Hint가 준aria-label"Settings (⌘,)"를 그대로 갖는다. 테스트가 첫 실행이 아닌 HOME을 가정한 것이다.device-home.ts의seedKitRecord: 빈 kit 기록으로 "kit이 돈 적 있는 머신"을 만든다)을 이 spec에도 적용했다. 첫 실행 dialog 자체는 web e2eagent-onboarding.spec.ts와 core 결정 테스트가 따로 지킨다.Review
desktop/e2e/server-session-search.spec.ts- kit 기록을 모든 lane에서 심는다. debug daemon은 kit을 돌리지 않으므로 desktop e2e lane에는 영향이 없다.Evidence
apply.completed가 있고, 같은 spec이 PR desktop e2e(debug daemon)에서는 통과(Log the desktop host's uncaught exceptions instead of showing Electron's dialog #686 run, 11.6 s).getByRole30 s 초과 (run 37564888317)