Repository navigation
Retry a failed test once in CI and file the flaky ones as issues - #419
Merged
Merged
Conversation
yansfil
added a commit
that referenced
this pull request
Oct 5, 2026
yansfil
added a commit
that referenced
this pull request
Oct 5, 2026
…418) Related: #308, #416, #417, #419 ## Summary nightly 분류(#412)에서 나온 작은 정리 두 건입니다. - `sidebar-menus` 기대 목록에서 `Open Overview`를 뺍니다. `ebf926a9`가 프로젝트 메뉴에서 그 항목을 없앴는데 spec이 따라가지 않았고, `@flaky`(#308)가 이 결정적 실패를 가렸습니다. `@flaky`는 그대로 둡니다. - `tab-strip-fit:62`를 #416, `sidebar-pr-start:108`을 #417 아래 `@flaky`로 격리합니다. 두 issue에 실패 run과 assertion, 만료일(2026-10-12), 해제 조건이 있습니다. 격리 목록을 옮기는 #419가 나중에 머지되면 이 둘도 그쪽 목록으로 옮깁니다. ## Review - **판단해 주세요**: `tab-strip-fit`의 시그니처 A(Linux, 만든 탭 16개 중 15개만 그려짐)는 제품 결함 후보입니다. 격리로 둘지 바로 조사할지 정해 주세요. ## Evidence - **확인한 것**: `web` typecheck와 lint 통과. - **확인하지 못한 것**: `sidebar-menus`가 수정 뒤 통과하는지와 #308 구간이 아직 흔들리는지는 이 PR의 Linux CI 결과로만 확인합니다(결과는 #308에 적습니다). `tab-strip-fit`은 같은 SHA, 같은 OS의 통과/실패 쌍을 얻지 못했고 OS와 SHA를 가로지르는 기록입니다(#416 본문).
yansfil
force-pushed
the
ci/auto-quarantine
branch
2 times, most recently
from
October 5, 2026 01:12
b8f7c0d to
7e946f7
Compare
This was referenced Oct 5, 2026
yansfil
force-pushed
the
ci/auto-quarantine
branch
from
October 5, 2026 01:32
7e946f7 to
1d744c5
Compare
yansfil
added a commit
that referenced
this pull request
Oct 5, 2026
Related: #419 (재시도 분류와 nextest), 이어지는 lint PR(`ci/test-lint`) ## Summary `docs/TESTING.md`에 실습 절 두 개를 더했습니다. "Writing a Playwright e2e test"(9단계)와 "Writing a Rust test"(8단계)입니다. 각 단계는 무엇을 하는가, 왜, 저장소 안의 기준 예시 파일을 적습니다. 새 정책은 없고, 이미 있는 규칙을 작성 순서로 묶었습니다. `AGENTS.md`의 테스트 줄과 `docs/README.md`의 소유 행이 두 절을 가리킵니다. 기존 "Choose what to test"의 "Herdr is not faked" 문장은 `FakeHerdr` 예외를 적어 한 곳으로 맞췄습니다. ## Review - **판단해 주세요**: 아직 머지되지 않은 것을 "Pending"으로 적었습니다. 이 방식이 괜찮은지, 머지 전까지 빼는 편이 나은지. - **판단해 주세요**: 크기 상한은 숫자 없이 "lint가 들어오면 숫자를 적는다"로 뒀습니다. 숫자는 lint PR이 정합니다. - **조심해서 볼 파일**: `docs/TESTING.md` - 아래 Pending 항목이 실제로 머지되면 같은 문장을 맞춰야 합니다. - **질문**: 없음. ## Evidence - **확인한 것**: 인용한 파일 경로, 함수와 테스트 이름, data 속성, diagnostic kind를 원본에서 하나씩 대조했습니다(별도 검토에서 거짓 7건을 찾아 고쳤습니다). - **확인한 것**: 문서 내 anchor 링크가 모두 풀립니다. `scripts/tests` 108개와 policy 불변식 스크립트가 통과합니다. - **확인하지 못한 것**: `page.clock`을 쓰는 spec이 아직 없어 그 단계는 예시 파일 없이 규칙만 적었습니다. `tokio::time::pause()`는 `test-util` feature가 꺼져 있어, 처음 필요한 PR이 켠다고 적었습니다. <details><summary>머지 뒤 맞출 곳 (Pending 항목)</summary> - #419 (열림): Playwright `retries: 1`, nextest `--retries 1`, `@flaky` 격리 장치 삭제. 머지되면 두 절의 retry 단계와 기존 "Flaky tests" 절, 그리고 "Playwright retries are off" 문장을 같이 고칩니다. - 공용 gate(R1, 아직 PR 없음): `focusGate` 단계의 "Pending" 문장을 공용 gate 경로로 바꿉니다. - #429 (열림): 6단계의 "Pending #429" 문장을 `web/playwright.config.ts` 기준으로 고칩니다. 두 PR 중 먼저 머지되는 쪽 뒤에 다른 쪽이 TESTING.md를 맞춥니다. - 시계 주입(R5, 아직 PR 없음): Rust 4단계의 "Pending" 문장과 `test-util` 안내를 실제 상태로 맞춥니다. - lint PR: 5단계에 크기 상한 숫자를 적습니다. </details>
Playwright retries once when CI is set and cargo-nextest's ci profile retries once; a test that passes the retry is flaky, the lane passes, and ci-flaky-report.py files it as an issue with a seven-day deadline. Nightly fails only a test that fails its retry too. The closed #396's macOS ignore on the IPC burst test is removed.
yansfil
force-pushed
the
ci/auto-quarantine
branch
from
October 5, 2026 01:52
1d744c5 to
5aa5bdd
Compare
This was referenced Oct 5, 2026
yansfil
added a commit
that referenced
this pull request
Oct 5, 2026
## Summary
지금 쓰이지 않는 CI 스크립트, 테스트, 문서 설명을 지웁니다. 감사 목록의 기준은 `docs/TESTING.md`
"Choose what to test and where"와 `CONTRIBUTING.md`의 gate 목록입니다.
workflow와 `ci-plan.py`의 줄 수는 그대로입니다. 이 PR에서 workflow를 줄이지 못한 이유는 감사에서 지울
step, lane, 규칙을 찾지 못했기 때문입니다(아래 Review).
| 기준 main `079b6f21` | 전 | 이 PR 뒤 |
| --- | --- | --- |
| workflow 합계 (줄) | 1,501 | 1,501 |
| `pr.yml` / `web-e2e.yml` / `nightly.yml` (줄) | 473 / 281 / 191 | 473 /
281 / 191 |
| `scripts/ci-plan.py` (줄) | 339 | 339 |
| lane / workflow step | 10 / 158 | 10 / 158 |
| `scripts/` 최상위 파일 | 56 | 49 |
| check 스크립트 + `scripts/tests` 파일 | 45 | 41 |
| e2e `test(` (web + desktop) | 178 | 174 |
| 저장소 추적 파일 | 1,237 | 1,149 |
| 삭제 줄 수 | | 약 20,000 (대부분 `tools/`와 `spikes/integrated-preflight`) |
- 지운 것: 어디서도 부르지 않는 수동 fixture 스크립트 4개(`e2e-fixture.sh`,
`hide-paths-fixture.sh`, `tab-verification-fixture.sh`,
`view-state-fixture.sh`), `check-typed-contract.sh`(cargo test와 중복인 단계
래퍼), `check-typed-contract-structure.py`와 그 fixture 테스트,
`summarize-terminal-latency.py`와 그 테스트, `tools/t1,t14,t15,t16`, 그 도구만 쓰던
`spikes/integrated-preflight`.
- 지운 테스트 4개와 각 계약을 확인하는 다른 테스트:
- `view-bookmarks.spec.ts` side-by-side:
`herdr-core/src/runtime/tests/view_bookmarks.rs:350` (같은 단계, B7/B8)
- `s3.spec.ts` close chord: `web/e2e/close-policy.spec.ts:9`
- `s2.spec.ts` registration: 거절은 `hided/tests/handshake.rs:441`, 성공은
`web/e2e/s4.spec.ts:104`, 브라우저에 Add project 없음은 `sidebar-shell.spec.ts`로
옮긴 두 줄
- `desktop/e2e/close-policy.spec.ts` subtree:
`web/e2e/close-subtree.spec.ts:184`, 네이티브 ⌘W는
`desktop/e2e/close-policy.spec.ts:53`
- 지운 단언 7개: 코드 어디에도 없는 selector의 `toHaveCount(0)`. 그 외 쓰이지 않는 fixture
`corrupt-ui-state.json`, 죽은 `launchctl` mock, 쓰이지 않는 export 4개의
`export`.
- 고친 문서: `CONTRIBUTING.md` windows check 행(실제 `pr.yml` step과 일치),
`plugins/` 언급(디렉터리 없음), dependabot 주석("세 개"가 아니라 둘), Peekaboo 은퇴 문장.
## Review
- **판단해 주세요**: `check-typed-contract-structure.py`를 되살리지 않고 지웠습니다. 현재
트리에서 실패(`replica owns wire parsing`, `session_sync/replica.rs:513` 등)하고
`herdr_contract::wire` 패턴도 이미 낡았습니다. AGENTS.md의 "wire.rs만 변환" 규칙은 지금
문서에만 있습니다. 새 검사로 되살릴지는 별도 결정입니다.
- **판단해 주세요**: `spikes/integrated-preflight`는 지운 `tools/`의 유일한 사용처라 같이
지웠습니다. 어떤 workflow, 문서, workspace에서도 부르지 않습니다.
- **조심해서 볼 파일**: `web/e2e/sidebar-shell.spec.ts` - s2에서 옮긴 두
단언(`[data-main-add-project]` 없음, chord가 아무것도 열지 않음). 이 PR의 e2e 변경 중 유일하게
새로 쓴 부분입니다.
- **조심해서 볼 파일**: `scripts/check-typed-live-remote.sh` - `structure` 단계를
뺐고 `probe`는 남겼습니다.
- 남긴 것과 이유(감사 목록): `ci-plan.py`의 `SHARED_WEB`(최근 400커밋에 안 닿은 파일이 있으나
desktop 호스트가 가져오는 안전망), ssh 환경변수로 막힌 desktop e2e 5개와 `#[ignore]` 실기기
probe 6개(`docs/VERIFICATION.md`가 운영자 수동 실행으로 적음),
`terminal-links.spec.ts:514` hover 측정(`PERFORMANCE_TESTING.md`가 소유자로
지목), `interface-language.spec.ts:105`(오류 값을 영어 선택으로 고치는 계약을 다른 테스트가 확인하지
않음), `disk-cleanup.spec.ts:243`(실제 working agent 경로).
- 다른 세션 범위라 건드리지 않음: `@flaky` 격리 step과 입력(#419), 긴 spec(R12), TESTING.md
실습 절(D5).
## Evidence
- **확인한 것**: `scripts/tests` 98개 통과. `web` typecheck, lint, unit 988개
통과. `desktop` typecheck, lint, unit 99개 통과(3 skip은 기존).
`check-no-workstation-identity` 0건. 지운 경로를 가리키는 참조가 workflow, 스크립트, 문서,
테스트에 없음(`git grep`, 리뷰 subagent 재확인).
- **확인하지 못한 것**: 이 PR이 `scripts/`와 `.github/`를 건드려 CI는 모든 lane을 계획합니다.
로컬에서는 Rust와 e2e를 돌리지 않았습니다(기계 부하 20+). Rust 쪽 변경은 쓰이지 않는 fixture 파일
삭제뿐입니다. `sidebar-shell.spec.ts`의 옮긴 단언은 CI의 web-e2e가 첫 실행입니다.
- 리뷰 subagent의 Fix now 3건 반영: spike 정리, 남은 `[data-footer-device]` 단언 삭제,
frozen `spikes/web-shell` 수정 되돌림.
<details><summary>후속 목록 (이 PR에 넣지 않음)</summary>
- `herdr-core/src/runtime/tests/view_bookmarks.rs:350` 테스트에 다른 Agent
tab의 pane 선택(`operator_focus_event("w-order:t2:p")`)이 front View를 바꾸지
않는다는 단언 추가(지운 e2e가 하던 한 구간).
- `herdr-core/src/wire.rs:340,364`의 "hcoord가 유일한 writer" 주석이 낡음(지금은
hided가 씀).
- `herdr-core/src/coordination/executor.rs:687`이
`agents/runs/hcoord-retire/replay-tests`를 temp 경로로 씀(OS temp를 써야 함).
- `HCOORD_` 환경변수 제거 목록: retirement 코드와 함께 제거.
- `s6.spec.ts:85` 삭제 단언 중 `[data-tool-tab]`은 살아 있는 selector였으나
`s7.spec.ts:1359`가 같은 계약을 확인함(나머지 alternative는 어디에도 없음).
- `.github/dependabot.yml`에 JavaScript(pnpm) 생태계 항목이 없음.
- `desktop/e2e/session-labels.spec.ts:45`와
`workspace-columns.spec.ts:438`은 DOM만 쓰므로 `web/e2e`로 옮겨 macOS runner를 줄일
수 있음.
- 쓰이지 않는 TESTING 안내: `desktop/e2e/tab-names.spec.ts` 끝의 단언 없는 테마 순회.
</details>
yansfil
marked this pull request as ready for review
October 5, 2026 03:47
yansfil
added a commit
that referenced
this pull request
Oct 5, 2026
Related: R12 of the control-order split; conditions for closing #231, #286, #303 and #308 are below. Order rules the core decides are in #438. ## Summary Four long e2e journeys were quarantined whole, so one shaky step took every contract in them out of the required lane. Each is now split into small specs that start from one shared fixture helper, put themselves into the shape they need as setup, and assert one contract against the real pinned Herdr and hided. Their `@flaky` tags are removed; no new quarantine and no new `waitForTimeout` or `setTimeout` delay were added. | Source (issue) | Was | Now | Quarantined steps left | | --- | --- | --- | --- | | `agent-close-contract:13` (#231) | 1 test, 62 lines, 15 expects | 3 specs: Herdr refuses an unconfirmed close; last-tab close in the UI; last-pane close in the UI | 0 | | `agent-tab-groups:35` (#303) | 1 test, 124 lines, 41 expects | 8 specs: split, light theme, refused drop, reorder and cancel, resize and narrow, restart, collapse and edges, tools panel | 0 | | `sidebar-menus:80` (#308) | 1 test, 128 lines, 26 expects | 7 specs: project menu and Pin, checkout menu, New tab in main, Set as default, agent copy items, agent Close tab, light theme | 0 | | `s7:929` (#286) | 1 test, 155 lines, 34 expects | 6 specs: lone preview menu, pinned view, narrow room, depth limit, six-area limit, 64-view limit | 0 | 24 specs return to the required lane; 0 steps stay quarantined from these four. `agent-tab-groups:216` (#287) keeps its tag: it is not a long journey, and I did not establish its cause; it ran green 2 of 2 locally on top of #438, which is not enough to un-tag it. ## Review - **판단해 주세요**: the setup of a spec may reach its shape through the same UI drags another spec asserts (the six-area spec splits through the UI, as the original did); seeding `workspace-views.json` would be faster but would stop testing the path. - **조심해서 볼 파일**: - `web/e2e/sidebar-menus.spec.ts` - the checkout menu and Set as default start from a Pinned project, because the menu is the registered project's; unpinned, the menu differs. - `web/e2e/agent-close-contract.spec.ts` - the last-pane spec closes the original tab's pane directly; the old journey closed the replacement tab's pane after the replacement existed. - `docs/TESTING.md` - step 5 names the split specs as references. - **Closing the issues**: #231, #286, #303 and #308 can be closed when the Linux and Windows `verify` runs pass on two consecutive main runs after this merges; a step that fails then gets its own issue by the #419 flow, not a tag. ## Evidence - **확인한 것**: - On macOS against the pinned Herdr 0.9.1, each split spec ran 3 times: close contract 9/9, tab groups 21/21 on the first run plus the reorder and collapse specs 6/6 after their setup was corrected, sidebar menus 21/21 (two specs needed the Pinned setup above after a first run failed deterministically), view caps 18/18. - `bash scripts/verify-web.sh` (typecheck, lint, unit tests, builds) passes. - **확인하지 못한 것**: - Linux and Windows runs; the hided binary used was built from #438's branch, not from this branch's base. - Splitting costs a stack start per spec: the four sources became 24 starts, so the e2e lane is longer by the added startup time, which I did not measure on CI. - The tab-groups drags and view caps ran with `--repeat-each=3` only; a rarer wobble is not excluded, which is what the post-merge condition above is for.
yansfil
added a commit
that referenced
this pull request
Oct 5, 2026
Related: #433 (retried interactions), #437 (Rust sleeps), #430 (guide), #434 (clock injection and Rust waits), #429 (headless renderer), #438 (shared gate), #419 (retries) ## Summary Playwright specs in `web/e2e` and `desktop/e2e` now pass `eslint-plugin-playwright` plus two repository rules, an e2e test size budget runs in the same `lint` script, and clippy refuses `std::thread::sleep` in Rust. All of it runs in the existing lanes (`web lint`, `desktop lint`, `clippy`); no new job or workflow step. Existing violations were fixed where a state exists to wait for, and the rest carry a reasoned allow, listed below. ## Review - **판단해 주세요**: `quietFor` is the only sleep an e2e spec may use for a window in which something must not happen; its 30 call sites each state the claim. Is a time window the right form for those, or should some become a counted check? - **판단해 주세요**: `no-conditional-in-test` (98 hits, mostly `process.platform` and fold toggles) and `max-expects` (2409 hits at the default of 5) are not enabled; the size budget replaces `max-expects`. Enable either? - **조심해서 볼 파일**: `web/eslint-rules/hide-e2e.mjs` - two hand-written rules; `web/scripts/check-e2e-test-size.mjs` - the baseline logic; `web/e2e/wait.ts` - the one `eslint-disable` for `waitForTimeout`. - **조심해서 볼 파일**: `web/e2e/s3.spec.ts` (two draft recovery tests) - they must not reload the page, so they carry a line allow with the reason; adding `about:blank` made both fail. - **조심해서 볼 파일**: `web/e2e/theme.spec.ts` - `networkidle` replaced by asserting hided's empty 404 for `/gallery`; `web/e2e/agent-tab-groups.spec.ts` - a 300 ms sleep between two `tab focus` calls was removed (the CLI returns after Herdr applied it, events reach the core in order; a probe showed the first focus changes nothing visible); `web/e2e/s3.spec.ts` - the offline window now also asserts the file was not written. - **질문**: #434 merged first; this branch took main and dropped the `#437` allows on the five functions it fixed (`hide-ai/src/router.rs` x3, `usage.rs`, `live.rs`). ## Evidence - **확인한 것**: `pnpm lint` in `web` and `desktop` pass (ESLint plus the size budget); `cargo clippy --workspace --all-targets -- -D warnings` and `cargo fmt --check` pass; `scripts/tests` 108 pass; the identity and attribution checks pass. - **확인한 것**: each rule fires on a planted violation (`waitForTimeout`, an action inside `toPass`, `goto` of `#token=` after `restart()`); the size budget fails when a baselined test grows (it caught this branch's own 9-line addition to the Overview test, which moved into a helper). - **확인한 것**: ran the changed specs against a local `hided` and the pinned Herdr, all pass: theme (gallery and restart), start-panel, agent-tab-groups external focus, sidebar-pr-start, cmdk recents, both s3 draft recovery tests, s6 Main/Overview (failed once on the first run at the File Views open, passed on the immediate rerun; this PR only relabels a wait in that test), and the Overview graph test. - **확인한 것**: a reviewer found the labels above too loose in a first pass (a settle wait named `quietFor`, native captures without `compositorPresents`, Rust allows with the wrong reason); all were fixed before this PR. - **확인하지 못한 것**: known gaps in the new lint: `expect.soft(fn).toPass()`, a poll that calls an action through a helper, and a `goto` through a local `url` variable after `restart()` are not seen; a hand-written `new Promise((r) => setTimeout(r, ms))` is not seen either (mobile.spec x2, remote-workspace, browser, workspace-columns x2 exist today); clippy covers `std::thread::sleep` only, not `park_timeout`, `wait_timeout` as a delay or a spawned `sleep`. #437 lists the Rust gap. - **확인하지 못한 것**: the other edited specs (digit, keys, browser, terminal-links, session-labels, the macOS desktop specs) were not run; desktop e2e needs the macOS lane. Windows and Linux lanes run in CI. - **확인한 것**: macOS clippy does not compile `cfg(windows)` or Linux-only code, which is how the two Windows named-pipe waits in `hide-platform/src/ipc.rs` slipped through (found by the Windows OS contract job). A source scan of every `sleep(` call in the tree, regardless of cfg, now finds none outside an allowed function; a Windows-target clippy run reached `hide-platform` and `hide-ai` before `ring` failed to build on this Mac, so the Windows lane in CI is the check for the rest. - **확인하지 못한 것**: `Instant::now` and `SystemTime::now` bans in clock-injected modules. Clippy cannot scope a method to a module and #434 has injected no module yet; once it has, a per-crate `clippy.toml` or a module-level `deny` with those two methods is the follow-up. ### Sleeps and waits, before and after | | Before | After | | --- | --- | --- | | `waitForTimeout` in `web/e2e` and `desktop/e2e` | 53 | 1 (`web/e2e/wait.ts`, behind three named helpers) | | `quietFor`: a window in which something must not happen | - | 30 | | `compositorPresents`: native capture on macOS | - | 6 | | `measureFor`: idle measurement and sample pacing | - | 5 | | `animationsFinished`: waits for finite animations, not time | - | 10 | | `unchangedForFrames`: waits until a value stops changing for 30 animation frames (bounded) | - | 3 | | Waits on time removed or replaced by a state or a stronger assertion | - | 3 (agent-tab-groups ordering sleep, `networkidle`, s3 offline window) | | `no-action-in-poll` allows, all #433 | - | 10 | | `reopen-after-restart-through-blank` allows (reconnect is the subject) | - | 2 | | Rust allow (`#[allow(clippy::disallowed_methods)]`) | Count | | --- | --- | | Bounded polling helper or inline bounded poll (sleeps between observations of a state, with a deadline) | 26 | | The sleep is the subject (a slow fake peer or backend) | 1 | | A child process kept alive for the test to kill | 6 | | Production wait, not test code | 31 | | Test that sleeps for a state, tracked in #437 | 59 | The production waits are allowed line by line rather than by a crate-root allow with `deny` in test modules: that form would leave every new `mod tests` and `tests/*.rs` file unguarded until someone adds the attribute, whereas the line allows fail closed. ### Size budget `web/e2e/test-size-baseline.json` (20 tests; #447 split three of them) and `desktop/e2e/test-size-baseline.json` (13) record the tests over 120 lines or 40 `expect` calls as a ceiling that only shrinks. ## Pending guide sentences `docs/TESTING.md` names #429, #438 and #434 as pending, and #419 for retries and nextest; each of those pull requests fixes its own sentence when it takes main. <details><summary>Verification record</summary> Base `origin/main` 4df25a0. Local runs: `pnpm lint` (web, desktop), `scripts/verify-cargo.sh clippy --workspace --all-targets -- -D warnings`, `fmt-check`, `python3 -m unittest discover -s scripts/tests`, Playwright specs listed above. Review by a separate reviewer: see the PR comments. </details> Main merge (#434, #435, #431, #450): baselines were refreshed after it. Two `browser-cdp.spec.ts` tests added by main were already over the budget and are baselined (172 and 121 lines); the Overview test grew 9 lines on main and its ceiling moved with it. Rust allows: 123 in total after the merge.
yansfil
added a commit
that referenced
this pull request
Oct 5, 2026
…s visible (#463) Related: #419 (Linux Rust lane의 nextest retry와 flaky 보고), #288 ## Summary #419는 Linux Rust lane만 nextest로 옮겼습니다. 그래서 macOS의 `process.rs repeated_guarded_work_releases_children_and_capture_resources`(R5 기존 flake)가 #419 자신의 `desktop e2e`를 한 번 빨갛게 했습니다(`gh run rerun --failed`로 통과). 나머지 Rust lane도 같은 retry와 보고 아래로 옮깁니다. - Windows `windows check`, macOS `desktop e2e`, `os contract`(Linux, Windows), nightly의 macOS OS contract가 `scripts/verify-cargo.sh nextest --profile ci`를 씁니다. 한 번 재시도해서 통과하면 flaky로 issue에 남고 lane은 통과합니다. - `scripts/install-nextest.sh`가 Linux, macOS, Windows의 고정 버전 설치를 한 곳에서 합니다(버전 문자열은 이 파일에만 있고, 설치 뒤 버전을 확인합니다). - 인자 번역: `-- --ignored` → `--run-ignored only`, `-- --nocapture` → `--no-capture`, `-- --exact name` → `-E 'test(=name)'`, `--lib` 뒤의 필터는 그대로 위치 인자입니다. - 한 lane이 nextest를 여러 번 돌리면 매번 같은 JUnit 경로를 덮어쓰므로, `verify-cargo.sh`가 실행마다 보고를 따로 보관하고 `ci-flaky-report.py`가 모두 읽습니다. - 보고 step이 issue를 못 만들면(GitHub 오류, 읽기 전용 토큰) 이제 경고 annotation과 job summary("Flaky tests that were not filed")에 해당 테스트가 남습니다. 만들었을 때도 summary에 issue 목록이 남습니다. lane은 여전히 막지 않습니다. ## Review - **조심해서 볼 파일**: `.github/workflows/pr.yml`, `os-contract.yml`, `nightly.yml` - 인자 번역이 맞는지(특히 `windows check`의 `-E 'test(=...)'` 두 줄, `-p hided --lib pane_auth opener open_command workspace_cli` 필터). `os-contract.yml`은 reusable workflow라 호출하는 쪽(pr, nightly)에 `issues: write`가 늘었습니다. - **지운 것**: `hide-platform`의 `--run-ignored only` 단계(desktop job의 quarantine step 안, nightly의 macOS step)와 Rust `ignore`로 격리하는 안내. ignore가 0개라 0개를 도는 장치였고 정책은 retry+issue, ignore 0입니다. `real_herdr`, `remote_delivery`처럼 외부 바이너리가 필요한 opt-in ignore 단계는 그대로입니다. ## Evidence - **확인한 것**: macOS 로컬에서 `hide-platform`+`hide-herdr-client` 189개를 `verify-cargo.sh nextest --profile ci`로 실행(통과, 보고가 실행마다 따로 저장됨). 번역한 형태 네 가지를 실제로 실행했습니다: 필터 위치 인자(`--lib listeners fs::atomic`, 13개), `-E 'test(=...)'`(1개), `--run-ignored only`(`real_herdr`의 ignored 2개가 실행되어 Herdr 바이너리가 없어 실패, 즉 선택은 맞음). `scripts/tests` 114개 통과(보고 실패 시 summary 기록, 여러 JUnit 읽기 추가). - **확인하지 못한 것**: Windows에서 `install-nextest.sh`(`windows-tar`와 `cygpath` 경로)와 `windows check`의 번역된 명령은 이 PR의 CI가 처음 실행합니다. `herdr-core`의 `-E` 두 줄은 로컬 빌드 없이 hide-platform의 같은 문법으로만 확인했습니다. `verify-cargo.sh test`와 `test-scoped`는 그대로라 release.yml과 herdr-update.yml은 `cargo test`입니다. <details><summary>CI 장치 크기 (main 079b6f2 기준)</summary> | | 079b6f2 | #419 머지 후 | 이 PR | |---|---|---|---| | workflow 파일 / job / step | 8 / 32 / 159 | 8 / 32 / 165 | 8 / 32 / 170 | | workflow 줄 | 1501 | 1576 | 1613 | | CI가 부르는 스크립트 수 / 줄 | 29 / 4195 | 30 / 4395 | 31 / 4449 | 늘어난 이유: step 5개는 nextest 설치 3(Windows, macOS, os contract)과 보고 3에서 0개를 돌리던 nightly step 1개를 뺀 값, 줄 37은 그 step과 `os-contract.yml`/`nightly.yml` 권한 선언, 스크립트 1개는 `install-nextest.sh`(설치 로직을 한 곳에 두고 Linux 인라인 설치 한 줄을 대체). `cargo test` 호출 19곳 중 CI 호출은 모두 nextest로 바뀌었습니다. </details>
yansfil
added a commit
that referenced
this pull request
Oct 5, 2026
Related: #419 (the report script), #463 ## Summary The flaky report crashed on every Windows lane that had a flaky test, so no Windows flaky test was ever filed. `scripts/ci-flaky-report.py` read `gh api` output in the locale's encoding, which is cp1252 on a Windows runner; an open issue with a Korean title (#423-#428) then fails to decode, `stdout` is `None`, and the step ends in `AttributeError`. The step is `continue-on-error`, so the lane stayed as it was and only the issue was lost. The script now names UTF-8 for the `gh` child, and a test reads a UTF-8 answer under an ASCII locale. Seen on main e38f935 (run 37266208973, `web e2e windows 1/1`, `Report flaky tests`): ``` UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 9259 AttributeError: 'NoneType' object has no attribute 'strip' ``` The two flaky tests that run lost were filed by hand with this branch's script: #470, #471. ## Review - **조심해서 볼 파일**: `scripts/ci-flaky-report.py` - `encoding="utf-8"` also encodes the issue body sent on stdin as UTF-8, which is what `gh api --input` reads. ## Evidence - **확인한 것**: the new test fails before the fix with the same `UnicodeDecodeError` (child Python with `LC_ALL=C`, `PYTHONCOERCECLOCALE=0`, `-X utf8=0`) and passes after it; the script suite passes (115 tests, macOS). - **확인한 것**: the fixed script filed #470 and #471 from a report built from that run's log, with the same body format CI writes. - **확인하지 못한 것**: a Windows lane filing through this script; it runs the next time a Windows lane has a flaky test.
yansfil
added a commit
that referenced
this pull request
Nov 2, 2026
Related: #2011 ## Summary 폰이 기본으로 Hide 중계를 통해 연결되고, 설정의 한 연결 줄에서 연결 상태와 다시 시도·업데이트·상한 거부를 확인합니다. QR은 app.withhide.dev를 열며 5분 뒤 만료됩니다. Tailscale 직접 연결은 고급에서 고릅니다. 방법마다 페어링한 폰을 따로 유지하고, 끄기·해제 시 연결을 닫습니다. 폰 내용은 기기와 폰 사이에서 암호화합니다. 기존 Tailscale 설정은 그대로 이어 쓰고 새 설정은 중계로 시작합니다.  실제 Settings 컴포넌트의 격리 갤러리입니다. 연결 줄, QR 만료 안내, 접힌 고급 영역을 확인해 주세요.  이전 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>
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.
Related: with-hide/hide-private#104 (flaky 정리), 격리 issue #231 #286 #287 #303 #308 #311 #400 #416 #417 #423-#428
Summary
새 flaky 하나가 격리 PR이 머지될 때까지 모든 PR의
verify를 막던 구조를 도구 내장 retry로 바꿉니다.retries: 1(web, desktop)과 Linux Rust lane의cargo nextest --profile ci(retries = 1, JUnit)를 켭니다. 재시도에서 통과하면 lane은 통과하고, 두 번 실패하면 lane이 실패합니다.scripts/ci-flaky-report.py하나입니다. 두 도구의 보고(JSON, JUnit)에서 flaky를 읽어quarantineissue를 만들거나, 이미 그 테스트를 다루는 열린 issue(Flaky e2e: tab-strip-fit loses a created tab (Linux) or never gets a frame (macOS) #416 Flaky e2e: sidebar-pr-start loses the merged pull request glyph (#43) on Linux after a restart #417 Flaky e2e: new-tab가 New tab chord 뒤 탭을 만들지 못함 (Linux) #423-Flaky e2e: home가 ~/hide 위치 대신 임시 폴더 이름을 보여줌 (Linux) #428 같은 손으로 쓴 것 포함)에 run을 댓글로 붙입니다. issue에는 처음 발견된 run, PR, 시스템, 만료일(7일)이 들어갑니다.--grep-invert @flaky는 그대로입니다(태그가 0이 되면 지웁니다).hide-platformIPC burst test의 macOSignore를 지웠습니다(수정은 Keep the IPC burst test inside the backlog and pin what a connect past it gets #401, 최신 main에서 macOS 로컬 실행 통과).Review
.github/workflows/*.yml- 호출하는 job마다issues: write가 필요해 reusable workflow 호출부 6곳과 desktop/rust job에 권한이 늘었습니다(토큰은Report flaky testsstep에만 전달).scripts/verify-cargo.sh-nextest모드는 scoped 모드와 같은 인자 검사를 받습니다.cargo test로 남깁니다(--lib x -- filter,-- --ignored인자 번역과 runner별 설치가 필요). 이 PR에 넣을지 후속으로 둘지 정해 주세요.Evidence
scripts/tests전체 단위 테스트 122개 통과(test_ci_flaky_report.py11개, 단일 출처 검사 3개:0.9.143은 통과,0.9.1은 실패). 증거 run 37253118907에서 임시 flaky 테스트 둘을 올려 확인했습니다.Report flaky tests가 issue를 생성(Flaky test: hide-ai::zz_flaky_demo flaky_demo_fails_the_first_attempt_and_passes_the_retry #451, 닫음). nextest 설치 step 1초 미만, Rust job 전체 약 3분.retry with-hide/hide#1에서 통과해1 flaky, lane 통과, issue 생성(Flaky test: flaky demo: fails the first attempt and passes the retry #460, 닫음). 두 issue 모두 run, PR Retry a failed test once in CI and file the flaky ones as issues #419, 시스템, 만료일 7일을 담았습니다.cargo test로 retry가 없습니다. nextest는 doc test를 돌리지 않지만 workspace에 실행되는 doc test는 0개입니다(ignore,text,sh3개).CI 장치 크기 (main 079b6f2 기준)
늘어난 이유:
ci-flaky-report.py194줄과 그 단위 테스트 113줄, nextest 설치와 report step, 권한 선언. 지운 것: 직접 만든 격리 장치 시안(약 490줄 + 테스트 241줄)은 main에 들어간 적이 없습니다.