Skip to content

Fix a stale menu expectation and quarantine two new flaky e2e tests - #418

Merged
yansfil merged 4 commits into
mainfrom
ci/quick-hygiene
Oct 5, 2026
Merged

yansfil merged 4 commits into
mainfrom
ci/quick-hygiene

Conversation

@yansfil

@yansfil yansfil commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Related: #308, #416, #417, #419

Summary

nightly 분류(#412)에서 나온 작은 정리 두 건입니다.

Review

  • 판단해 주세요: tab-strip-fit의 시그니처 A(Linux, 만든 탭 16개 중 15개만 그려짐)는 제품 결함 후보입니다. 격리로 둘지 바로 조사할지 정해 주세요.

Evidence

@yansfil yansfil changed the title Fix a stale menu expectation, quarantine two new flaky e2e tests, and re-enable the macOS IPC burst test Fix a stale menu expectation and quarantine two new flaky e2e tests Oct 5, 2026
@yansfil
yansfil merged commit 61fe255 into main Oct 5, 2026
21 checks passed
@yansfil
yansfil deleted the ci/quick-hygiene branch October 5, 2026 00:52
yansfil added a commit that referenced this pull request Nov 2, 2026
Related: #2011

## Summary

폰이 기본으로 Hide 중계를 통해 연결되고, 설정의 한 연결 줄에서 연결 상태와 다시 시도·업데이트·상한 거부를 확인합니다.
QR은 app.withhide.dev를 열며 5분 뒤 만료됩니다. Tailscale 직접 연결은 고급에서 고릅니다.
방법마다 페어링한 폰을 따로 유지하고, 끄기·해제 시 연결을 닫습니다.
폰 내용은 기기와 폰 사이에서 암호화합니다.
기존 Tailscale 설정은 그대로 이어 쓰고 새 설정은 중계로 시작합니다.

![Settings Mobile: encrypted relay connection, five-minute QR and
advanced
Tailscale](https://github.com/yansfil/pr-assets/blob/main/hide/feat-hided-relay/e8fa807/settings-qr.png?raw=true)

실제 Settings 컴포넌트의 격리 갤러리입니다.
연결 줄, QR 만료 안내, 접힌 고급 영역을 확인해 주세요.

![Settings Mobile: relay stays available when the old Tailscale setup
cannot be
removed](https://github.com/yansfil/pr-assets/blob/main/hide/feat-hided-relay/5eeb736/settings-cleanup.png?raw=true)

이전 Tailscale 연결을 정리할 CLI가 없어도 중계는 연결되고, 같은 한 줄에 정리 실패가 남습니다.

## Review

- **판단해 주세요**: 연결 상태와 암호화 설명의 길이, 고급 Tailscale의 발견성.
- **조심해서 볼 파일**: `hided/src/mobile/relay.rs`, `phone.rs` - 암호화 경계, 종료
순서, 취소와 큐 상한.
- **조심해서 볼 파일**: `mobile/mod.rs`, `phones.rs`, `store.rs` - 키 저장, 방식 전환과
기존 폰 보존, 재연결 후 요청 기록.
- **비용 검토**: 연결 1개, 폰 작업 8개, 폰당 수신 8프레임·공유 송신 32프레임; 상태 전환만 발행하며 core 잠금
안에서 네트워크 작업을 하지 않습니다.

## Evidence

- **확인한 것**: 실제 hided 중계 통합 6개가 macOS·Linux·Windows에서 암호화·재연결·방법별 폰
보존·해제·끄기·미인증 제한 시간을 확인합니다.
- **확인한 것**: 입력 중단 테스트가 연결을 끊고 같은 요청을 재시도할 때 영구 대기에 남지 않음을 확인합니다.
- **확인한 것**: Mobile UI 24개, 직접 연결 브라우저 5개와 격리 갤러리의 한글·영문·큰
글씨·dark/light·QR·고급 상태를 확인했습니다.
- **확인한 것**: 최신 커밋에서 로컬 lint·Rust 7,357개·web 2,471개·desktop 307개·빌드·디자인
계약과 GitHub CI가 통과했습니다.
- **재시도 이력**: 기존 기기 테스트 #430·#439는 최초 실패 후 로컬 단독 1회와 CI 작업 1회 재실행에서
통과했습니다. CI에는 기존 세션 복원 #419의 자동 재시도도 있습니다.
- **확인하지 못한 것**: 실제 폰·native 앱·운영 TLS와 실제 PTY 답장 재전송은 통합·배포 검증에 남아 있습니다.

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

Head: `d75b9db7d9ef0287392452ad5fc77bfce605f26c`.
Base: `b1b25cde4`, including protocol #2011, Memory correction #2020,
relay server #2014 and hosted phone #2019.
Scope: mobile-relay B1-B10, hided B24, B28; hided transport, Settings
Mobile, owning architecture/UI guides.
The architecture merge preserves both the hosted phone WASM initiator
and the device responder/admission/authentication contract.
Cargo.lock and workspace-hack did not change in that merge; their shared
feature union was generated at `92620a992` and passes CI.
Caller tests use shared admission/routing types and real Noise sessions
without implementing a second relay service.
The interrupted-input test uses the real phone/Noise path and node
permission boundary; it does not claim an actual PTY write.
The original socket handler already detached its input task on
disconnect, so the original cancellation premise was not reproduced.
The follow-up additionally settles from the blocking operation with an
Uncertain drop guard; the caller test verifies disconnect/retry lifetime
rather than isolating that guard.
Independent re-review passed at `5eeb73668`; the additional live-peer
and unreaped-task bound at `744506a3e` was reviewed and accepted.
The QR screenshot was captured at `e8fa80774`; the cleanup screenshot
was captured at `5eeb73668`; the Settings product changes are unchanged
since that follow-up.
The five direct-mobile browser journeys passed at `6c2a6e338` without
weaker assertions or timeouts.
The Cursor fixture now explicitly selects Advanced > Use Tailscale
before enabling Mobile.

Current-head local verification ran on macOS under the shared mission
lock:

- `bash scripts/verify-cargo.sh lint`: PASS, 1m 10s.
- `bash scripts/verify-cargo.sh test-scoped`: core 3,929 passed, 1
failed, 20 ignored; stopped at the existing own_devices assertion in
`herdr-core/src/runtime/tests/own_devices.rs:158`.
- The only exact-test rerun on the same SHA passed in 0.27s; the initial
Kit/GuardrailPolicy assertion failure remains recorded, matching
[#430](with-hide/hide-private#430) and
[#439](with-hide/hide-private#439).
- `bash scripts/verify-cargo.sh test-scoped --workspace --exclude
herdr-core` then ran the crates the initial command had not reached:
3,427 passed, 149 ignored.
- Combined Rust coverage: 7,357 passed, 169 ignored, including the one
separately rerun test; this is a split completion after an initial
failure, not an uninterrupted green run.
- `bash scripts/verify-web.sh`: PASS; web 2,471 passed / 3 skipped,
desktop 307 passed / 4 skipped; type checks, lint and builds passed.
- `node scripts/check-design-contract.mjs`: PASS.

[GitHub CI run
41456834038](https://github.com/with-hide/hide/actions/runs/41456834038)
passed on attempt 2 after exactly one failed-job rerun:

- Attempt 1: Rust 7,338 passed / 1 failed / 166 skipped; own_devices
#430/#439 failed both automatic attempts.
- Attempt 2: Rust 7,339 passed / 166 skipped; own_devices passed on its
first attempt in 0.027s.
- Attempt 2 also includes one automatic retry of the existing
session-restore test
[#419](with-hide/hide-private#419); the first
failure remains in its job log.
- Linux and Windows each passed all six mobile_relay caller tests on
attempt 1; Windows job `125315707247` completed successfully.
- Linux browser shards and Windows E2E passed on attempt 1 without flaky
results.
- Cursor phone passed in shard 6 (`125317575438`, 6.6s); the
reopened-tab test tracked by #418 passed in shard 4 (`125317575230`,
3.3s), both on their first attempt.
- macOS desktop, protocol and packaging lanes passed; macOS hided mobile
evidence is the local run above.

Real phone/native-app interaction, production TLS and actual PTY replay
remain outside this PR's verified evidence.

</details>
HyunjunJeon pushed a commit to HyunjunJeon/hide that referenced this pull request Nov 9, 2026
…de#2187)

Closes with-hide/hide-private#476
Closes with-hide/hide-private#187
Closes with-hide/hide-private#140
Closes with-hide/hide-private#534
Related: with-hide/hide-private#518 (원인 미확정, 아래 Review), 반복 측정용 임시 PR
#2188과 with-hide#2189

## Summary

제품 버그였습니다. 운영자 화면에서도 같은 순서가 오면 생깁니다 (새 탭을 만든 직후 분할을 눌러도 아무 일도 일어나지 않음).
코어의 엔진은 새 탭을 목록에 올린 뒤에 답하므로, 그 목록이 답보다 먼저 코어에 닿을 수 있습니다.
그러면 답은 키보드를 새 pane으로 옮기는데 보이는 탭은 옛 탭에 남고, 뒤에 와서 바로잡아 줄 세션도 없어서, 분할이 "보이는
탭에 포커스된 pane 없음"으로 아무것도 보내지 못했습니다.
답이 키보드를 옮길 때 보이는 탭도 같은 걸음에 옮기도록 고쳤습니다 (`settle_selection_projection`, 다른
모든 보이는 탭 쓰기가 이미 하는 일).
나머지 e2e 세 건은 첫 스냅숏을 읽던 곳을 상태가 맞을 때까지 기다리게 하고, 한 건은 실패 덤프를 붙였습니다.

## Review

- **판단해 주세요**: #187은 이 PR에서 코드를 바꾸지 않았습니다. 실패한 CI 로그의 순서(세션이 닫힘을 먼저 확정하고
뒤늦은 답이 되살려 5초 대기)는 main에 이미 들어간 with-hide#418 수정이 막는 순서이고, 그 로그를 낸 실행은 그 수정이 없던
브랜치였습니다.
- **판단해 주세요**: #518은 원인을 확정하지 못했고 이 PR이 닫지 않습니다. 실패 로그에는 시작 직후
`session_resume_control_changed`로 에이전트 시작이 실패한 흔적만 있어서, 시작을 시험 제한 안에서
포기하고 코어 상태를 덤프로 남기게만 했습니다. 마감(11월 11일) 전에 덤프가 쌓이는지 봐야 합니다.
- **조심해서 볼 파일**: `hide-core/src/runtime/session.rs` - 새 탭 답마다 한 번
`Mutex<Runtime>` 안에서 도는 투영이고 고빈도 경로는 아닙니다.
- **조심해서 볼 파일**: `web/e2e/named-tab-stays.spec.ts`,
`web/e2e/pane-move.spec.ts` - 시간을 늘린 곳은 없고 상태를 기다리게만 바꿨습니다
(docs/TESTING.md의 flaky 정책).

## Evidence

- **확인한 것**: 코어 단위 시험
`a_created_tab_the_session_listed_before_its_answer_is_the_visible_tab_at_the_answer`는
고치기 전에 "세션이 먼저 온 순서"에서 실패하고(체크아웃이 새 탭을 보이지 않음) 고친 뒤 두 순서 모두 통과합니다.
- **확인한 것**: CI 반복 - 수정을 포함한 #2188에서 5건을 각각 20번, 재시도 없이 Linux 6샤드에 나눠 돌려
100/100 통과했습니다.
- **확인한 것**: 이 PR의 `verify`는 전부 통과했고 Linux 6샤드와 Windows web e2e 어디에도 재시도
표시가 없습니다.
- **확인한 것**: `hide-core` lib 시험 3957건 통과, `fmt --check`, `clippy -D
warnings`, web `eslint`와 e2e 크기 검사 통과.
- **확인하지 못한 것**: 수정 없는 main 그대로 같은 반복을 돌린 #2189도 100/100 통과했습니다. 원래 발생률이
낮아 이 반복은 고침의 효과를 가르지 못하고, 고침의 증거는 위 코어 단위 시험입니다.
- **확인하지 못한 것**: 반복 측정은 Linux만입니다. 두 임시 PR의 Windows web e2e는 `@platform`
시험이 없어 "No tests found"로 실패했고, 이는 측정용 설정 탓입니다.
- **확인하지 못한 것**: `hide-core` lib 시험 2건(`worktree_control` 프로세스 목록, pid
4294967294 읽기 실패)이 이 macOS 호스트에서 실패합니다. 이 변경이 닿지 않는 곳이고 main에서는 돌려 보지
않았습니다.
- **확인하지 못한 것**: web 타입검사는 이 호스트에 rustup이 없어 릴레이 wasm이 없는 5건 오류만 남고, 고친
파일의 오류는 없습니다.

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

- head: 브랜치 `fix/flaky-split-new-tab`, `verify` 실행 42361324449
- 로컬: `scripts/verify-cargo.sh test-scoped -p hide-core --lib`,
`fmt-check`, `clippy -p hide-core --lib --tests -- -D warnings`,
`eslint`와 `check-e2e-test-size.mjs`
- 반복: 임시 브랜치 `ci-probe/flaky-split-repeat`(수정 포함, 실행 42361424674)와
`ci-probe/flaky-split-control`(main 그대로, 실행 42361444556)

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

1 participant