Repository navigation
Run the package workflow, macOS included, as a planned pull request lane - #700
Merged
Merged
Conversation
package.yml's own pull_request path list moves into ci-plan.py as PACKAGE_PATHS, the one list of what goes into a package. A change to one of those paths plans the new package lane, which calls package.yml with include-macos, so the packaged app's specs run on macOS before merge instead of in the next nightly. verify requires it when planned. A full plan leaves it out: main's push runs never built packages, and the nightly calls package.yml itself.
yansfil
force-pushed
the
ci/package-lane-plan
branch
from
October 7, 2026 04:11
e0925a9 to
2f502f9
Compare
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에서 실패로 잡힌다.
yansfil
added a commit
that referenced
this pull request
Oct 7, 2026
…es it running (#722) Closes #717 ## Summary - 실패: `hide-factory` `verify::tests::commands_run_in_order_one_run_at_a_time_and_name_the_failing_command`의 "one run at a time" 단언(Linux, #700 run 37577181260). pump 한 번 뒤 `running`이 job a가 아니었다. - 원인: `VerifyRunner::pump`는 한 번에 최대 네 전이를 하며, 이미 끝난 명령을 지나 다음 queued run을 같은 호출에서 시작한다. - fast runner에서는 a의 두 명령(`echo one > a.txt`, `test -f a.txt`)이 `try_wait` 전에 끝난다. - 그러면 첫 pump가 a를 Passed로 기록하고 b를 시작해 `running`이 b다. - 제품 결함이 아니다: b는 a의 결과가 기록된 뒤에만 시작하고, `running`은 하나뿐이다. test가 "첫 pump 뒤 a가 아직 돈다"를 기계 속도에 맡겼다. - 수정: a의 첫 명령을 test가 만든 FIFO를 읽는 `cat gate`로 했다. a는 test가 단언 뒤 FIFO를 열 때까지 끝날 수 없다. - 단언은 "running이 a이고 b가 queue 앞에 있다"로 관찰 가능한 사실 둘을 본다. - 명령 순서(a.txt 생성 뒤 확인)와 실패 명령 이름 단언은 그대로다. ## Review - **조심해서 볼 파일**: `hide-factory/src/verify.rs` (test만) - FIFO는 `mkfifo`로 만든다. 이 test는 이미 `/bin/sh` 문법을 쓰고 Windows lane은 hide-factory test를 돌리지 않는다. - FIFO를 쓰기로 여는 것은 첫 pump가 시작한 a의 `cat`이 읽기로 열 때까지 기다린다. 그래서 test thread가 pump 없이 막히지 않는다. ## Evidence - **확인한 것**: - 결정적 재현(로컬, 임시 test, commit하지 않음): 이미 종료한 child를 든 a를 `running`에, b를 queue에 두고 pump 한 번. - 결과 `running=Some("b") a=Some(Passed)`, 원래 단언 "one run at a time"이 실패. - 심은 결함: pump의 `Ok(None) => return`을 지워 a가 도는 중에 b를 시작하게 하면, 고친 test가 "one run at a time"에서 실패한다. - 고친 test는 CPU 14개를 busy loop로 채운 채 300/300 통과. `verify::` 7개 통과, fmt와 clippy(`-D warnings`) 통과. - **확인하지 못한 것**: 원래 test는 이 Mac에서 idle로 300/300 통과해 자연 재현은 안 됐다. macOS는 `sh` 기동이 `try_wait`보다 느리다. 실패 경로의 증거는 위 재현이다.
yansfil
added a commit
that referenced
this pull request
Oct 7, 2026
…712) ## Summary nightly 실패는 지금까지 issue #412 한 곳에 lane 이름만 댓글로 쌓였습니다. 어떤 테스트인지 알 수 없었고, 녹색이 되어도 닫히지 않았습니다(10-07 package (macos)의 `server-session-search.spec.ts:29` 실패를 아무도 몰랐음). 이제 실패 하나가 `nightly-failure` issue 하나입니다. 재발하면 같은 issue에 댓글이 달리고, lane이 녹색이 되면 issue가 닫힙니다. - 각 lane의 보고 단계(`ci-flaky-report.py`)는 재시도까지 실패한 테스트를 job의 `Failed test` annotation으로 남기기만 합니다(실행 요약 화면에도 이름이 보임). flaky issue 쓰기는 그대로입니다. - nightly의 report job(`ci-flaky-report.py --nightly`)이 issue를 쓰는 유일한 곳입니다. - annotation이 있으면 lane의 테스트당 issue 하나, 없으면 lane과 실패한 step당 하나를 엽니다. 제목은 `Nightly failure (<lane>): <테스트 또는 step>`(200자 상한)이라 같은 테스트가 macOS와 Windows에서 실패하면 제목이 다른 issue 둘입니다. 준비 단계에서 실패했으면 `infra` label을 답니다. - 본문: lane의 마지막 녹색 nightly 이후 머지된 원인 후보 PR, 오류 발췌(`clean`), `- Expires:` 이틀 뒤. - run attempt마다 댓글 한 번, run당 10개 상한(넘치면 하나로 묶음), 예약 run에서 녹색인 lane의 issue 닫기, main이 아닌 run은 쓰지 않음. - 예약은 `17 17 * * *`(02:17 KST)로 옮겼습니다. 정각 예약은 GitHub가 늦춰, 03:00 KST 예약이 07:30~08:50 KST에 시작했습니다. - 지운 것: `nightly-report.cjs`(#412 umbrella)와 그 테스트, policy job의 node test 단계. 원인 후보·표식·상한을 두 언어에 두지 않으려고 report 로직을 Python 한 곳으로 옮겼습니다. #412는 머지 뒤 감독이 닫습니다. ## Review - **판단해 주세요**: annotation 한도. GitHub 문서(REST check runs, "Update a check run")는 "GitHub Actions are limited to 10 warning annotations and 10 error annotations per step."라고만 적고, job·run 한도는 문서에 없습니다. - 보고 단계 하나는 스크립트를 한 번만 돌리고(workflow test가 확인), 실패 테스트 8개까지 annotation을 남깁니다. 넘치면 `Failed tests not annotated` 하나에 남은 수를 적고, runner 자신의 몫으로 하나를 비워 둡니다. - report job은 남은 수를 run 상한 묶음 issue에 더합니다. 실패한 job에 `Failed test`가 하나도 없으면 단계 실패 issue로 엽니다. - **판단해 주세요**: package (macos)에 보고 단계를 더했지만 `issues: write`는 주지 않았습니다. release.yml과 pr.yml(#700의 `package` lane)이 package.yml을 `contents: read`로 부르기 때문입니다. annotation은 권한이 필요 없고, 그 job의 flaky는 job summary에 "not filed"로 남습니다. - #700 뒤로 이 단계는 PR run에서도 돕니다. PR run에서 annotation은 실행 요약 화면에만 보이고, issue는 main의 nightly report만 씁니다. - **판단해 주세요**: lane은 job 이름에서 shard(`2/4`)를 뗀 것입니다. `verify / verify` gate는 다른 lane 실패를 따라 실패하므로 lane에서 뺐습니다. step 실패의 원인 후보 경로는 그 lane이 거친 workflow와 그 workflow가 부르는 `scripts/`입니다. - **조심해서 볼 파일**: `scripts/ci-flaky-report.py` `Nightly`(failure path). GitHub API 오류는 report job을 실패시켜 조용히 넘어가지 않습니다. `nightly.yml` report job 권한(`actions`, `checks`, `pull-requests` read)도 함께 봐 주세요. - **비용 검토**: report job의 목록 조회는 모두 100개씩 10쪽까지 읽고, 넘으면 오류입니다. 마지막 녹색은 14 run까지 찾습니다. compare가 1000 commit을 넘으면 원인 후보를 "unknown"으로 적습니다. PR 파일 목록은 run 안에서 cache합니다. - 덤: nightly desktop job의 rust junit 보고 줄을 지웠습니다(그 job은 nextest를 돌리지 않음). 보고 단계 이름은 `Report flaky and failed tests`로 바꿨습니다. ## Evidence - **확인한 것**: - `scripts/tests/test_ci_flaky_report.py` 39개 통과(가짜 jobs·annotations·logs·issues·compare·PR 응답). - 첫 실패가 열고, 같은 attempt 재실행은 댓글 0, 새 attempt는 1. - 녹색 lane이 닫고 skipped·cancelled는 무시, 수동 run은 `all`일 때만 닫음. - annotation 없는 실패 job은 단계 실패, infra 분류, 상한 10과 묶음, main 아님은 쓰기 없음, dry-run은 쓰기 없음. - 원인 후보(범위 밖·다른 파일 제외, 여러 쪽 compare), annotation 형식과 8+1 한도, report 단계당 실행 한 번. - 같은 테스트가 두 lane에서 실패하면 제목이 다른 issue 둘, 제목 200자 상한. - main(#700 포함) merge 뒤 `python3 -m unittest discover -s scripts/tests` 189개 통과. policy job의 구조 검사, `check-no-workstation-identity`, attribution 검사 통과. - dry-run(아래 펼침). 테스트 목록은 그 run의 job log(Playwright list 요약)에서 재구성했습니다. 그 run들에는 `Failed test` annotation이 없기 때문입니다. 나머지(jobs, steps, 이전 run, compare, PR 파일)는 실제 API를 읽기만 했습니다. - 10-07 run 37541045200: issue 하나. `desktop/e2e/server-session-search.spec.ts:29`, 원인 후보 #668. - 10-06 run 37391023049: 10개와 묶음 하나("3 more"). 단계 실패 둘(desktop windows·linux의 suite step), 테스트 8개. 이 lane들은 14 run 안에 녹색이 없어 원인 후보가 "unknown"입니다. - **확인하지 못한 것**: - 실제 report job과 annotation 생성은 Actions에서 아직 돌지 않았습니다. report job은 main의 nightly에서만 돕니다. annotation 형식은 문서와 테스트로만 확인했습니다. - job·run당 annotation 한도는 문서가 없어 확인하지 못했습니다. <details><summary>dry-run: 10-07 run 37541045200</summary> ``` # package / package (macos): rebuilt 1 failed test(s) from its log would open [nightly-failure] Nightly failure (package / package (macos)): server picker and conversation search in a background native window <!-- nightly-failure:package / package (macos):desktop/e2e/server-session-search.spec.ts > server picker and conversation search in a background native window --> Nightly CI failed in the `package / package (macos)` lane. - Test: `desktop/e2e/server-session-search.spec.ts:29` "server picker and conversation search in a background native window" - Lane: `package / package (macos)` on macos-15 - Commit: 0f06ce6 - Last green nightly of this lane: 9d5072f (https://github.com/modakbul-gongbang/hide/actions/runs/37391023049) - Candidate pull requests (merged since then, touching `desktop/e2e/server-session-search.spec.ts`): #668 - Expires: 2026-10-09 TimeoutError: locator.click: Timeout 30000ms exceeded. - waiting for getByRole('button', { name: /^Settings \(/ }) ``` </details> <details><summary>dry-run: 10-06 run 37391023049 (제목만)</summary> ``` would open [nightly-failure] Nightly failure (desktop e2e (windows full)): Whole desktop suite would open [nightly-failure] Nightly failure (desktop e2e (linux full)): Whole desktop suite would open [nightly-failure] Nightly failure (web e2e (Windows full) / web e2e nightly-windows): a Project's Sessions: history, filters, a read-only session, failures and two windows would open [nightly-failure] Nightly failure (web e2e (Windows full) / web e2e nightly-windows): 2000-session search progress preserves history and terminal input would open [nightly-failure] Nightly failure (web e2e (Windows full) / web e2e nightly-windows): ⌘K Start an agent… starts an agent in the checkout in front with the chosen model and first prompt would open [nightly-failure] Nightly failure (web e2e (Windows full) / web e2e nightly-windows): weekly usage: a loading, an available and an unavailable row, and the hints the page sends would open [nightly-failure] Nightly failure (web e2e (Windows full) / web e2e nightly-windows): an agent slept from the pane menu keeps its row and wakes in the same pane on a visit would open [nightly-failure] Nightly failure (web e2e (Windows full) / web e2e nightly-windows): the area layout and its divider ratio survive a hided restart would open [nightly-failure] Nightly failure (web e2e (Windows full) / web e2e nightly-windows): rename refusal and timeout preserve text for retry would open [nightly-failure] Nightly failure (web e2e (Windows full) / web e2e nightly-windows): the phone's start sheet starts an agent in a checkout and in Home, and keeps its text while the phone is away would open [nightly-failure] nightly: 3 more failures in run 37391023049 ``` </details>
yansfil
added a commit
that referenced
this pull request
Oct 7, 2026
…nce (#664) Related: core-host-node 1/5 (항상 켜진 노드에서 core 돌리기). origin/main 2c15edb 위로 rebase했습니다. #661과 #669는 main에 들어가서 이 PR에서 빠졌습니다. 저장소의 attribution 검사에 걸린 커밋 문구 두 개(제품 이름)만 고쳐 head가 b5ddca5e로 바뀌었고, tree는 030b1867과 같습니다. ## Summary core는 자기 기계를 `local`이라는 문자열로 불렀습니다. 그래서 기기 행, 등록, 폴더 owner mark, 라벨 키, 편지, 프로젝트 id에 모두 `local`이 박혀 있었고, core를 다른 기계로 옮기면 어느 기계의 것인지 가릴 수 없었습니다. 이제 core는 자기 기계를 node id(그 기계 `machine_id`의 소문자)로 부릅니다. device를 적지 않은 이벤트는 여전히 core 자신의 node를 뜻하고, `local`을 명시하면 모르는 기기로 보고 거절합니다. `local`로 쓰인 상태 폴더는 hided가 core를 띄우기 전에 한 번 변환합니다. - JSON 저장소는 원자적으로 다시 씁니다. - Memory, 세션 검색, 링크 기록(#638)은 SQLite 트랜잭션 하나로 키를 다시 붙입니다. - 원본은 `node-migration-backup/<ms>/`에 남깁니다. - 마지막에 `node.json`에 폴더의 주인 node를 적습니다. 변환하지 못하면 원본은 그대로 남고, 앱 창이 어느 파일 때문에 시작하지 못했는지 보여 줍니다. ```text Can't connect to hided hided could not start because of this file, which was left unchanged. <state folder>/node.json [Retry] ``` 화면 캡처에는 워크스테이션의 사용자 이름과 경로가 보여서 올리지 않았습니다. 캡처는 로컬 run 기록에 있습니다. ## Review - **정해진 것(운영자 결정)**: `node.json`은 "이 폴더에서 qualify되지 않은 키를 가진 node"를 뜻하고, 다른 node 이름이 적힌 폴더(새 Mac, Migration Assistant로 옮긴 폴더)는 layer 5의 옮기기와 되돌리기가 다룹니다. 그때까지는 그 파일을 보여 주며 시작을 거절하는 지금 동작을 유지합니다. 형식은 layer 5에서 바뀌지 않습니다(D-23). - **판단해 주세요**: 세션 검색 인덱스(운영 기계에서 170 MB)는 백업하지 않습니다. 새 키에 이미 행이 있으면 새 행을 남기고 옛 행을 지운 뒤 개수를 기록합니다. 옛 Copied history 설정도 이 규칙을 따릅니다. - **판단해 주세요**: 프로젝트 id가 node id를 해시에 넣으므로, 변환 전에 transcript에 찍힌 Memory receipt는 더 이상 검증되지 않습니다. - **조심해서 볼 파일**: `herdr-core/src/node_migration.rs` (failure path) - 저장소 하나라도 변환에 실패하면 시작을 멈춥니다. - 재시도하면 수렴합니다. pair는 지금의 Memory와 등록에서 다시 얻고, 백업은 같은 폴더에 한 번만 남깁니다. - 변환된 인덱스는 읽기만 합니다. - **조심해서 볼 파일**: `hided/src/cli.rs` `wait_healthy`. `hide connect`는 자기가 띄운 daemon이 먼저 끝나면 10초를 기다리지 않습니다. 대신 Logs에서 그 pid가 spawn 이후에 쓴 거절 기록을 읽어 `state_refused`로 답합니다. - **조심해서 볼 파일**: `herdr-core/src/checkout_owner.rs` (Herdr contract). owner mark가 node id로 바뀌고, 기존 `local` mark도 이 node의 것으로 읽습니다. - **조심해서 볼 파일**: rebase 뒤 main이 더한 코드에서 이 기계를 `"local"`로 부르던 곳(adea3d9, 문구를 고치기 전 e3f0688). `herdr-core/src/runtime/kit.rs`(Codex CLI shared server 끄기와 에이전트 연결 읽기), `herdr-core/src/runtime/agents.rs`, `web/src/PaneConnection.tsx`, `web/src/settings/{AgentsTab,DevicesTab,HideAiTab,agentRows}.ts*`가 이제 node id 또는 기기 행의 kind로 이 기계를 찾습니다. main의 동작은 바꾸지 않았습니다. - **조심해서 볼 파일**: `desktop/src/main/browser.ts`. node id를 받기 전에는 loopback 페이지를 원격 파티션에 두고, id가 오면 파티션이 바뀐 페이지를 다시 만듭니다. - **질문**: 기계 id가 바뀐 Mac(새 Mac 설정, 재설치)은 자기 옛 폴더를 다른 node의 것으로 보고 거절합니다. 지금은 창에 파일을 보여 주고 문서로 "새 state 폴더로 시작"을 안내합니다. 이 경우는 layer 5의 move/restore가 맡는 것으로 보면 될까요? - **질문**: daemon frame에 `node_id`를 더하지 않았습니다(웹은 자기 기기 행에서 읽습니다). layer 4에서 화면의 node와 core의 node가 갈라질 때 더하려고 합니다. - **질문**: snapshot wire의 pane과 checkout id qualify는 layer 4의 요구사항으로 남깁니다. ## Evidence - **확인한 것**: `sasu implement verify` PASS on bce1a82(S1 Rust 전체 suite, S2 lint). 지금 head f422844b는 main #722, #725 위로 rebase만 한 것입니다. range-diff로 본 차이: #725가 없앤 checkout caller의 pane hint 코드에 있던 node 고정이 함께 빠졌고, 배달 권한 목록은 #725의 pane 조건과 node id 확인을 함께 둡니다. #725가 더한 테스트 5곳은 `TEST_NODE`로 고정했습니다. 그 head에서 herdr-core와 hided 테스트 1982/1982, workspace lint 통과. - **확인한 것**: main이 더한 테스트의 fixture 경쟁을 고쳤습니다(bce1a82, 제품 동작 변경 아님, issue 641 영역). 가짜 Codex CLI app-server의 `hang` 모드가 `hooks/list`를 받은 뒤에야 자식을 띄워서, load 65에서 요청 한도가 먼저 끝나면 시간 초과 테스트가 자식을 찾지 못했습니다. 자식을 시작 때 띄우게 했고, 요청 한도 50 ms에서 옛 fixture는 실패, 새 fixture는 통과합니다. - **확인한 것**: rebase한 head에서 clippy 통과, Rust workspace nextest 2804/2805. 남은 1건 `hided` `opener_lifecycle::acceptance_timeout_ends_cli_spawned_before_watcher`는 load 24에서 실패했고, 단독 5회 반복(load 24에서 34)에서 4/5 통과, 1회는 20초 pid 대기 deadline에서 실패했습니다. 이 PR은 `hided`의 spawn과 opener를 바꾸지 않습니다. - **확인한 것**: web(129 files, 1164)과 desktop(16 files, 158) typecheck, lint, unit, build 통과(rebase 뒤). - **확인한 것**: 변환 계약 테스트 - `KEYS`의 모든 키에 fixture 값이 있습니다. - 다시 쓴 키에서는 `local`이 사라지고, node 소유 키는 그대로입니다. - `KEYS`와 `UNBOUND` 어디에도 없는 파일이 있으면 실패합니다. - 재시도 수렴, 충돌 시 rollback, 백업 1부, 변환된 폴더를 다른 writer가 잡고 있어도 시작되는 경우를 다룹니다. - **확인한 것**: 69693b51의 debug hided로 운영자 `~/.hide/state`의 새 복사본을 변환했습니다(HOME 격리, Herdr 없음, 상태 폴더 0700). - core-state, ledger, labels, workspace-views의 `"local"` 13/481/1/225가 0이 되었고, Memory 2개 프로젝트와 세션 검색 20,925행의 키를 다시 붙였습니다(버린 행 0). - 변환 후 ledger를 읽었고, 두 번째 시작은 아무것도 변환하지 않았으며 백업 폴더도 1개 그대로였습니다. - 운영자 원본 ledger, workspace-views, Memory의 mtime과 sha256은 그대로였습니다. 운영자 폴더에는 node.json도 백업도 생기지 않았습니다. - **확인한 것**: 네이티브 QA. 설치된 빌드(b520d6e)가 격리 Herdr에서 쓴 폴더를 candidate 앱이 열었습니다. - This Mac 아래에 두 프로젝트가 보였습니다. - 같은 Herdr workspace id와 두 번째 탭이 유지되었습니다. - 다른 node 폴더는 0.3초 만에 파일을 보여 주었습니다. - **확인한 것**: rebase 전 web e2e 186/187. rebase 뒤 main이 더한 `agents-tab`, `devices-settings` spec 6건 중 5건 통과, desktop e2e(focus 제외) 55 통과 7 skip 1 실패(아래 dense hover). `home-layout` 통과, `local-kit`은 패키지된 앱이 필요해 로컬에서 skip. Herdr schema contract(0.9.1), Herdr pin single source, design contract, workstation identity, harness anchor, capability readers, worktree removal boundary 통과. - **확인하지 못한 것**: 이 diff 밖에 있고 main에서도 재현되는 실패들입니다. 고치지 않았습니다. - flaky #653 view-bookmarks: 전체 실행에서 1회 실패했고, 단독 2/2 통과. - desktop terminal-links dense hover: 이 노트북 화면에서 창이 184 columns라 필요한 215를 넘지 못합니다. - web e2e `agents-tab` 목록 테스트: kit이 `/opt/homebrew/bin`도 찾는데 이 Mac에 OpenCode가 있어 Installed가 4가 아니라 5입니다. - `hide-platform` watch burst(#651): main의 #669가 고쳤습니다. 그 전 head들의 실패는 아래 Verification record에 남겼습니다. - **확인하지 못한 것**: 운영자의 실제 링크 기록 레이아웃. 설치된 앱이 #638 이전 빌드라 `links.sqlite3`가 없어서 fixture 계약 테스트로만 확인했습니다. - **확인하지 못한 것**: `check-herdr-contract.sh`의 실행 중 서버 확인. 이 PR은 Herdr 호출을 바꾸지 않습니다. <details><summary>리뷰와 처리</summary> rebase 뒤 리뷰(adea3d9, 문구를 고치기 전 e3f0688): 충돌 해결이 main과 layer 1의 동작을 모두 지켰는지, main이 더한 코드의 `local`이 모두 node id로 바뀌었는지, 명시한 `local`이 어디서도 통과하지 않는지 봤고 Fix now는 없었습니다. 따라온 두 가지는 030b1867에서 고쳤습니다: 이 Mac을 `local`로 적던 기기 id 주석, 그리고 활성 Memory 항목의 검색 행까지 옮기는 변환 테스트. Fidelity, Code, Security 리뷰를 두 라운드 돌렸습니다(62b777c, e071177). Fix now 항목은 모두 이 PR에서 고쳤고, 고친 diff를 본 세 번째 라운드(4c287ce)는 Fix now가 없었습니다. - 재시도 수렴, 조용한 `UPDATE OR IGNORE`, FTS 고아 행: 2c3f5c7, 4c287ce. - `KEYS` 누락 필드와 `UNBOUND` 분류: 2c3f5c7. - B2 창 표시: d63dd60. - 매 시작마다 잡던 검색 인덱스 쓰기 잠금, 재시도마다 늘던 백업, pid만으로 맞추던 거절 기록: 4c287ce. CI `windows check`가 4c287cec부터 실패했습니다. Windows 전용 hook 테스트가 Project를 아직 `local`로 만들고 있었기 때문이고, 06b2425f에서 node id로 바꿨습니다. 코드 리뷰 1라운드(4c287ce) 처리는 69693b51입니다. - 두 이름으로 쓰인 `device_expanded_paths` 목록은 합칩니다(전에는 옛 목록을 버렸습니다). - 더 긴 node id 때문에 ledger가 loader 한도(16 MiB)를 넘게 되면 시작을 멈추고 파일을 알려 줍니다. - 밀려난 `#[cfg(unix)]`를 브라우저 alias 테스트에 되돌렸고, `hide connect` 거절 테스트를 unix 전용으로 했습니다. - 4라운드(f93ef22 네이티브 리뷰) 처리는 6605c78c입니다. ledger 크기 확인을 어떤 파일도 쓰기 전에 하므로, 거절되면 모든 파일이 제자리에 그대로 남습니다. 이미 한도를 넘은 ledger는 loader에 맡기고, 거절 문구에 해결 방법을 적었습니다. 목록 합치기와 중복 제거는 선형이고, node 경계 테스트는 다시 모든 OS에서 돕니다. - 2라운드(69693b5) 처리는 c85aeef4입니다. `expanded_inactive_project_device_ids`가 이미 node를 담고 있으면 변환 뒤에도 한 번만 남깁니다. - 2라운드에서 바꾸지 않은 것: core-state 8 MiB 한도(그 한도는 제거된 native 앱의 상태 파일에만 적용되고 core-state에는 loader 한도가 없음), 이전 앱이 다시 쓴 `local` 행과의 Memory/링크 충돌(아래 후속), 10초 health 창 안의 큰 변환(아래 후속), 등록도 Memory도 없는 프로젝트의 Sessions mode(기본값으로 돌아가고 인덱스는 다시 만듦), `hide-kit` `search_path`(이 diff 밖), 브라우저 partition(위 Review 파일). - 바꾸지 않은 것: hook이 실행마다 기계 id를 읽는 비용(`ioreg` 0.01초, hook은 hide-kit에 의존할 수 없음), `node.json` 해석과 desktop/web 동시 배포(위 Review 질문). 후속으로 남긴 것: - 일반 `daemon.start_failed` 기록. - `try_wait` 오류 처리. - 큰 변환이 10초를 넘을 때의 Retry 안내. - 롤백한 빌드가 다시 쓴 `local` 행의 Memory와 링크 충돌. 지금은 시작을 멈추고 파일을 알려 줍니다(layer 5). - 등록도 Memory도 없는 프로젝트의 Sessions mode 키. - 실패한 백업 복사의 `.partial` 정리와 rename 전 fsync. - 검색 FTS 고아 행을 직접 세는 테스트. - `node.json`이 있는 폴더에서 실패를 재시도할 때 백업 폴더 재사용. </details> <details><summary>테스트 고정값 변경 (PRD changes the wire id, D-21)</summary> 아래 파일에서는 `local` 고정값만 node id로 바꿨습니다. Rust는 `crate::node::TEST_NODE`, e2e는 daemon의 `node.json`, web 단위 테스트는 helper의 node 인자를 씁니다. assertion은 바꾸지 않았습니다. - Rust: `herdr-core/src/runtime/tests.rs`, `herdr-core/src/runtime/tests/*`(26 files), `herdr-core/src/labels/tests.rs`, `herdr-core/src/session_sync/tests.rs`, `hided/tests/mobile.rs`, `hide-agent-hooks/tests/windows_hook_command.rs`(Windows 전용이라 macOS 검색에서 빠졌고, 06b2425f에서 고침). inline test module도 바꿨습니다: `workspace.rs`, `runtime/delivery.rs`, `coordination/executor.rs`, `delivery/worker.rs`, `live.rs`, `files.rs`, `labels/import.rs`, `changes.rs`, `runtime/attachments.rs`. - web: `web/e2e/{device-rail,home,mobile,s3,s7,start-panel}.spec.ts`, `web/e2e/hided-fixture.ts`, `web/src/{RequestView,addProject,areaCycle,buffers,linkPanel,numbering,revealExternal,store,viewLayout,workspaceManage}.test.*`. - desktop: `desktop/e2e/{add-project,agent-spawn,browser,device-home,home-layout,local-kit,remote-workspace,workspace-columns}.spec.ts`, `desktop/src/main/{browser,browserSync}.test.ts`. - 두 번째 rebase 뒤 main이 더한 Factory 코드와 테스트: `herdr-core/src/runtime/delivery.rs`, `herdr-core/src/runtime/factory.rs`, `herdr-core/src/delivery/watch.rs`, `herdr-core/src/coordination/mod.rs`의 테스트, `web/e2e/agents-tab.spec.ts`의 session 수 단계. 운영 코드에서는 Factory의 수신자(`Actor::factory`)가 core의 node id를 받고, `hide factory` 명령의 기기 확인이 `"local"` 대신 core의 node id와 비교합니다(5d343e0). - rebase 뒤 main이 더한 테스트: `herdr-core/src/runtime/tests/{agent_connection,agents_settings_remote,lineage,ui_state_focus}.rs`, `web/e2e/{agents-tab,devices-settings}.spec.ts`, `desktop/e2e/{home-layout,local-kit}.spec.ts`의 Connection details 단계. 새 테스트만 더한 파일입니다: `hided/tests/node_owner.rs`, `hide-session/tests/search.rs`, `desktop/e2e/desktop.spec.ts`, `desktop/src/main/cli.test.ts`. </details> <details><summary>Verification record</summary> - rebase 2와 3: b5ddca5e에서 origin/main 3ee278f(#700, #702, #705, #706, #713, #715, #724 포함)로 옮겼고, 그때 head는 34c44011이었습니다. 충돌 파일: `herdr-core/src/delivery/worker.rs`, `herdr-core/src/runtime/delivery.rs`, `herdr-core/src/runtime/tests/agent_connection.rs`, `web/e2e/agents-tab.spec.ts`, `desktop/e2e/home-layout.spec.ts`(main의 동작에 node id를 더해 해결). - main이 더한 코드의 node id: Factory의 수신자와 `hide factory` 기기 확인(667a25c 계열), main의 자기 기기 fixture 5곳과 #724의 show-here 테스트(e88caa6, 2a929dc). `hide factory`의 기기 확인은 core 한 곳에서만 하고, Factory가 없을 때도 다른 기기는 main처럼 `factory_local_only`를 먼저 받습니다. - rebase 뒤 리뷰(667a25c): Fidelity, Security Fix now 없음. Code Fix now 1(main의 자기 기기 fixture가 `"local"`로 남음) e88caa6c에서 고침. 후속: `factory_local_only` 테스트, move 층에서 `factory:` actor의 node id 다시 쓰기, 저장된 등록이 core node와 같은 id일 때 연결에서 거르기. - `sasu implement verify` PASS on 667a25c(S1, S2). 그 전 head 5d343e0e에서는 load 30 이상에서 main의 `gh` 5초, `lsof` 10초 시간 초과와 harness 정리 단계의 `kill EPERM`으로 세 번 실패했고, 각 테스트는 단독으로 통과했습니다. 2a929dcd에서는 main의 GitHub 테스트가 가짜 `gh`에 준 5초 기한이 load 아래에서 다시 넘어, 34c44011에서 같은 파일의 `FIXTURE_DEADLINE`(10초)으로 맞췄습니다(GitHub 테스트 46/46). `sasu implement verify` PASS on 34c4401(S1, S2, load 14). - rebase 4: origin/main bcfce96(#656, #716 포함)로 옮겼고, 그때 head는 9cf059c6이었고, 그 뒤 fmt 49deea1, fixture bce1a825를 더했습니다. 충돌 파일: `herdr-core/src/runtime/tests/agent_connection.rs`, `herdr-core/src/runtime/agents.rs`(main의 동작에 node id를 더해 해결). #656이 더한 Codex CLI shared server 끄기의 자기 기기 확인(`runtime/kit.rs`, 연결된 helper가 필요 없는 쪽)을 core의 node id로 바꿨고, 그 테스트 9곳의 `"local"`을 `TEST_NODE`로 고정했습니다(9cf059c). web 단위 테스트 `PaneConnection.test.tsx`의 `"local"`은 snapshot이 주는 기기 id 데이터라 그대로 두었습니다(다른 web 단위 테스트와 같음). - main이 더한 테스트의 fixture 경쟁 수정(bce1a82, 제품 동작 변경 아님, issue 641 영역): `hide-agent-hooks/tests/fixtures/fake-codex.py`의 `hang` 모드가 자식 프로세스를 `hooks/list`를 받은 뒤에야 띄워서, load 65에서 1.5초 요청 한도가 먼저 끝나면 `a_codex_that_does_not_answer_is_stopped_and_nothing_of_it_is_left`가 "it started a child"로 실패했습니다(verify 49deea1). 자식을 stand-in 시작 때 띄우게 바꿨습니다. 요청 한도를 50 ms로 줄이면 옛 fixture는 같은 panic으로 실패하고 새 fixture는 통과합니다. 테스트의 주장(시간 초과 뒤 app-server와 자식이 모두 끝남)은 그대로입니다. `sasu implement verify` PASS on bce1a82. - rebase 5: origin/main 411f34a(#722, #725 포함)로 옮겼고, 지금 head는 f422844b입니다. 충돌 파일: `herdr-core/src/runtime/delivery.rs`, `herdr-core/src/runtime/workspace_control.rs`, `herdr-core/src/runtime/factory.rs`. #725가 checkout caller의 pane hint를 없앴으므로 main 쪽을 따랐고, 배달 권한 목록의 자기 기기 확인만 node id로 바꿨습니다. #725가 더한 테스트의 `"local"` 5곳을 `TEST_NODE`로 고정했습니다(f422844). 관련 테스트 128/128. - rebase: 옛 head 6605c78(base 104d308, #661 e071177f와 #669 f93ef22 포함)에서 새 base origin/main 2c15edb0로 옮겼고, 새 head는 e3f06887입니다. 두 carried commit은 빠졌습니다. 충돌 파일: `herdr-core/src/{lib.rs,labels/mod.rs,runtime/kit.rs,runtime/memory.rs,runtime/tests/lineage.rs}`, `web/src/{IssueDialogs.tsx,SettingsSheet.tsx,settings.ts}`, `desktop/e2e/{local-kit,home-layout}.spec.ts`. - `sasu implement verify` PASS: e3f0688(S1 229.2s, rebase 뒤). 030b1867은 주석과 `hide-memory` 테스트 1건만 더했고, 그 테스트와 clippy, web lint를 따로 돌렸습니다, 6605c78(S1 179.9s), f93ef22(S1 192.6s), 4c287ce. rustc 1.99.0. - 네이티브 Fidelity, Code, Security 리뷰: 4c287ce, f93ef22, 6605c78c에서 Fix now 없음. - #669 이전 head의 S1 실패 기록(모두 `hide-platform/tests/watch.rs` `a_burst_is_bounded_and_ends_in_an_overflow_rather_than_silence`만 실패, S2 통과): - 69693b5: 6,311에서 8,047 changes가 3회, load 11-16. 그 전 1회는 `hide-kit` 하위 프로세스 timeout 3건이었고 단독 실행으로 통과했습니다. - c85aeef: 7,396 changes(load 6.5에서 12.4), 8,807 changes(load 7.1에서 9.5). - main 재현: load 14에서 3/3. - 운영자 상태 복사본 변환: 69693b51의 debug hided(sha256 3aac76ed...). - 네이티브 QA: a7a3d80f의 candidate 앱. - 마지막 sasu verify head: bce1a82. 그 뒤 바뀐 것(range-diff bcfce96..bce1a82 vs 411f34a..f422844): 1, 3, 17번 commit의 충돌 해결(#725 쪽을 따름), 새 commit f422844(#725 테스트 5곳 `TEST_NODE`). herdr-core와 hided nextest 1982/1982, `scripts/verify-cargo.sh lint` 통과 on f422844. </details> ## Breaking change - 상태 폴더(`~/.hide/state`, `~/Library/Application Support/hide`의 Project Memory)는 첫 시작에 한 번 변환됩니다. 이전 앱으로 돌아가면 이 Mac의 프로젝트가 다른 기기의 것으로 보입니다. 되돌리려면 `node-migration-backup/<ms>/`의 파일을 제자리에 복사합니다(`docs/INSTALL.md`). - daemon wire나 `hide` 명령에서 `device_id: "local"`을 명시하면 이제 모르는 기기로 거절됩니다. device를 적지 않으면 지금처럼 이 기계를 뜻합니다.
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 package (macos) 실패를 PR에서 잡는 두 갈래 중 package 경로 쪽)
Summary
package.yml의pull_requestpaths 목록을scripts/ci-plan.py의PACKAGE_PATHS로 옮겼다. 그 경로가 바뀐 PR은 새packagelane을 계획하고, 이 lane이package.yml을include-macos: true로 부른다.package.yml에는 자체 trigger가 없고, 테스트가 그것을 확인한다.verify가 계획된package를 요구한다. 이전에는 일부 PR에서만 도는 check라 required가 될 수 없었지만, plan/verify가 그 문제를 이미 푼다.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 호출에는 필요 없다.docs/TESTING.md).Evidence
scripts/tests전체 168개 로컬 통과. 새 테스트 두 개를 더했다.package를 계획하고, 그 밖의 11개 경로는 계획하지 않는다.package.yml에는pull_requesttrigger가 없다.packagelane을 직접 돌았다(package.yml과pr.yml을 바꾸므로).server-session-search가 nightly #412와 같은 신호로 실패(Settings와 workspace 행 30 s 초과, run 37567806459). PR에서 이 class를 잡았다.