Repository navigation
Reuse checkout-scoped verification build outputs - #59
Merged
Merged
Conversation
HyunjunJeon
pushed a commit
to HyunjunJeon/hide
that referenced
this pull request
Nov 9, 2026
…ide#2214) Closes with-hide/hide-private#686 ## Summary main의 macOS desktop e2e에서 링크 테스트가 매번 실패한 것은 제품 고장이 아닙니다. 테스트가 이제 없는 이벤트 이름을 세고 있었습니다. #2182가 터미널 클릭 이벤트 이름을 `terminal_click`에서 `terminal_mouse`(누름과 뗌)로 바꾸면서 web e2e만 고쳤고, macOS에서만 도는 desktop e2e는 옛 이름으로 남았습니다. 옛 이름의 개수는 늘 0이라 "클릭이 안 갔다" 확인은 헛통과하고 "클릭이 갔다" 확인만 실패했습니다. 이 PR은 옛 이름을 읽던 세 곳을 지금 이벤트로 고칩니다. 같은 일이 다시 생기지 않게 막는 검사는 후속 이슈 with-hide/hide-private#695로 넘겼습니다. 스크린샷 없음: 화면 변경 없음(테스트 두 파일만 바뀜). ## Review 원인과 같은 원인의 경로 표 (원인: with-hide#2182 `696ebfb2e`의 이벤트 이름 변경이 macOS 전용 desktop e2e에 전해지지 않음) | 경로 | 증거 | 고친 곳 | | --- | --- | --- | | `desktop/e2e/terminal-links.spec.ts:148` 링크 테스트 (5곳) | main run 42366515497부터 6번 연속 :297에서 `Expected 1, Received 0` | `terminal_mouse.press`로 셈 | | 같은 파일 :423 메뉴 테스트 (2곳) | "클릭 안 감" 확인뿐이라 늘 0으로 헛통과 | `terminal_mouse.press`로 셈 | | `web/e2e/sidebar-tab-groups.spec.ts:101` | f10985994에서 없어진 `sidebar_tab_expanded`를 "0번"으로 확인하는 헛통과 | 줄 제거 (보내는 코드가 없음) | | 부류: `countSent`가 모르는 kind에 0을 답하고, daemon이 받는 kind 목록이 한 곳에 없음 | 이름이 바뀌어도 그 spec이 도는 레인의 양성 확인에서만 드러남 | 이 PR 밖: with-hide/hide-private#695 (계약 파일 단일 출처, core·hided 시험, ci-plan 연결) | | 제품 클릭 전달 (web, hided, core, holder) | `onMouseDown`은 링크 위 누름을 보내지 않고, 평문 클릭은 press와 release로 보냄 (`web/src/terminals.ts`) | 변경 없음: 정상 | | `web/e2e/shard-durations.json`의 옛 s2 제목 | 실행 기록으로 만드는 생성 표라 옛 제목은 시간 값만 잃음 | 변경 없음: 다음 재생성 때 정리 | - **판단해 주세요**: 원인은 테스트 쪽 가정(옛 이벤트 이름)입니다. 제품의 클릭 경로는 with-hide#2182 설계대로 동작하므로 제품 코드는 바꾸지 않았습니다. - **판단해 주세요**: 처음에 넣었던 Rust 소스 문자열 검사 lint는 리뷰에서 기각됐습니다(payload guard 오탐, 타입 fallback 오탐, core·hided만 바뀐 PR에서 미실행). 그래서 뺐고, 바른 설계를 #695에 적었습니다. 이 PR의 최종 diff는 테스트 두 파일뿐입니다. ## Evidence - **확인한 것**: `terminal_mouse`의 `action`은 문자열이라 `countSent`가 `terminal_mouse.press`로도 셉니다(`web/e2e/wire.ts`). 평문 클릭 한 번은 press 하나입니다. - **확인한 것**: `verify-web.sh web lint`, `desktop lint`, `desktop typecheck` 통과. - **확인한 것**: macOS desktop e2e: 이 브랜치의 nightly(`lane=macos`) run 42383537743, job 128436010935(nightly-macos 2/2)에서 `terminal-links.spec.ts:148`이 첫 시도에 통과했습니다(with-hide#59, 9.2s, 재시도 없음). 같은 파일의 :384와 :529도 통과했습니다. - **확인한 것**: PR verify run 42383933982(`f32014cec`) success. - **확인하지 못한 것**: 이 PR의 CI는 macOS 경로가 바뀌지 않아 desktop e2e macos를 건너뜁니다. 위 nightly는 `f23808302`에서 돌았고, 그 커밋의 두 spec 파일은 최종 head `f32014cec`와 같습니다. - **확인하지 못한 것**: 같은 shard에서 `session-workflow.spec.ts:14`가 재시도까지 실패했습니다. 이 diff 밖의 테스트이고, 이미 flaky로 추적 중이며(with-hide/hide-private#515) main run 42366515497과 42369516392에서도 실패했습니다. <details><summary>Verification record</summary> - 마지막 통과 main run 42365938221 (`579eca5ec`), 첫 실패 42366515497 (`1a59917c6`). 그 사이 커밋 with-hide#2187, with-hide#2182, with-hide#2192 중 클릭 경로를 바꾼 것은 #2182뿐입니다(#2182의 main run은 취소). - 실패 run 42366515497, 42369516392, 42370631622, 42373345663, 42374340972, 42377545266 모두 :148이 재시도까지 실패. </details>
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.
Summary
Verification built the same release core in two output directories, and SwiftPM could reuse an executable linked against an older core archive.
Route all release prerequisites through the checkout's fixed
target/release/libherdr_core.a, use physical-checkout hashes for test scratch paths, and include the archive digest in Swift compiler conditions to invalidate stale links.Keep all four Cargo/Swift build and test commands, their failure propagation, and the existing verification bindings.
Remove the separate legacy scratch calculation from
rust-test.shand document cache ownership and cleanup.Review focus
build-scratch.shdefines checkout isolation;verify-swift.shmust invalidate Swift outputs when the external Rust archive changes.Risk surface
Real-tool regression tests exercise compile errors, failing tests, stale archive linkage, and checkout isolation.
Evidence
Removing archive invalidation reproduced stale output 41 instead of 42; replacing the checkout hash with a basename failed isolation.
Shell syntax, design contract, workstation identity, and diff checks passed.
All 16 candidate full verification commands succeeded across cold, unchanged warm, Rust-comment-change, and Swift-comment-change conditions; each Swift test run passed 417 tests.
Sequential measurements used separate owned checkouts of product revision
a59c372, Cargo/rustc 1.97.1 and Apple Swift 6.0.3 on the same machine.Cold means empty owned build output, with OS and dependency download caches retained.
Each condition has one sample; ambient load was not controlled (sampled one-minute load: baseline 10.42–23.52, candidate 9.84–20.25).
The previously reported 318.141 seconds from another branch is not the baseline.
Both versions invoke the release wrapper three times.
Actual cold release rustc executions fell from 262 + 262 + 0 to 262 + 0 + 0; warm release rustc executions were zero for both.
After the Rust change, release rustc executions fell from 2 + 2 + 0 to 2 + 0 + 0, while the candidate correctly relinked Swift executable and test outputs.
multi_pane_terminal_session_destroy_releases_and_reaps_childrenobservedterminal.resizeinstead of the expected finalterminal.releaseatffi_contract.rs:1061.It passed in earlier baseline conditions and all candidate conditions; the failure was preserved without retrying or modifying unrelated runtime code.
The extra Swift-only baseline omitted Cargo test after that failure, and its Swift link work differed, so there is no matched four-stage Swift-only comparison or claimed optimization percentage.
Single samples under ambient load do not establish a general speedup guarantee.
Bundle assembly, signing, installation and native UI checks were not performed; package build/test does not replace those checks.
Raw measurements and failure logs remain local under the run directory, outside the commit.
AI tooling
손으로 확인한 것: Diff scope, effective output paths, archive hashes and mtimes, compiler execution logs, and the committed file hashes were cross-checked during implementation; separate human code review has not been recorded.