Skip to content

Build the Windows test binaries once in windows check - #496

Merged
yansfil merged 1 commit into
mainfrom
ci/windows-check-one-build
Oct 5, 2026
Merged

yansfil merged 1 commit into
mainfrom
ci/windows-check-one-build

Conversation

@yansfil

@yansfil yansfil commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

windows check spent about 6 of its 11 minutes compiling (median of the last 22 successful verify runs, 11.3 minutes).
Each Rust test step named only its own package (-p hided --lib, -p hide-host --lib, -p hide-kit, -p herdr-core --lib, ...), so cargo resolved features differently for each call and rebuilt the crates under it: herdr-core compiled three times in one job, the other workspace crates four or five times.
Now every step names the same packages and targets (TEST_TARGETS), a new Build the Windows test binaries step builds them once, and each step picks its tests with a nextest filterset.
The tests each step runs are unchanged; cargo check --workspace --all-targets is unchanged.

Review

  • 판단해 주세요: the unified selection activates herdr-core's dev-dependency features, so hided's test binaries here include hide-host's call-log feature (a Git call recorder for the core's tests), as the Linux rust lane's --workspace run already builds them.
  • 판단해 주세요: the test steps now run only when the build step succeeded, and the build step runs whatever the workspace check answered; before, each step compiled for itself, so a compile error was reported by every step.
  • 조심해서 볼 파일: .github/workflows/pr.yml windows-check: the filtersets must select the same tests as the old positional filters and -p/--test selections.

Evidence

  • 확인한 것: locally, after one nextest run $TEST_TARGETS --no-run, listing each step's filterset compiled nothing (0 Compiling lines in all 10) and matched the same number of tests as today's invocation (14, 10, 3, 1, 26, 68, 59, 1, 1, 0 on macOS; the second ports test is Windows-only).
  • 확인한 것: python3 -m unittest discover -s scripts/tests passes (125 tests).
  • 확인한 것 (before): windows check 11.3 min median (n=22); step medians: workspace check 80 s, hided steps 189 s, hide-kit 12 s, hooks 12 s, real_herdr 20 s, ports 123 s, web and desktop checks 96 s.
  • 확인한 것 (after): this pull request's verify run 37287467092: windows check 9.5 min against the 11.3 min median.
step before (run 37283286418) after
workspace check 75 s 74 s
Rust test compiles (all steps) 307 s, herdr-core three times 216 s, once, in Build the Windows test binaries
Rust test runs about 45 s 63 s, each step's cargo Finished in 0.5 s with nothing compiled
tests run per step 11, 7, 3, 1, 23, 10, 59, 1, 1, 1 11, 7, 3, 1, 23, 10, 59, 1, 1, 1
  • 확인하지 못한 것: one CI run is one sample; the rust-cache restore (19-60 s) varies by run, so the comparison reads the build and test steps, not only the job total.

Every Rust test step named only its own package, so cargo resolved
features differently for each and rebuilt the crates under it: herdr-core
compiled three times and compiling took about 6 of the job's 11 minutes.
Each step now names the same packages and targets and picks its tests with
a nextest filterset, after one build step.
@yansfil
yansfil merged commit 9d99364 into main Oct 5, 2026
28 checks passed
@yansfil
yansfil deleted the ci/windows-check-one-build branch October 5, 2026 10:46
yansfil added a commit that referenced this pull request Oct 5, 2026
## Summary

Every CI job that runs end-to-end tests or Rust tests compiles the
workspace's own crates on each run: rust-cache holds the dependencies,
and cargo rebuilds the workspace members after a fresh checkout.
Those builds write full debug info, which is most of what a debug build
of them writes and links.
This sets `debug = "line-tables-only"` for each workspace member in
`Cargo.toml` (`[profile.dev.package.<crate>]`, which the `test` profile
inherits): a panic's backtrace keeps its files and lines; dependencies
keep the default.
`docs/BUILD.md` records it beside `incremental = false`.

## Review

- **판단해 주세요**: this also applies to local debug builds, so a debugger
sees line tables but no variables in the workspace crates; it is the
same trade as `incremental = false` for worktrees that are built a few
times and discarded.
- **판단해 주세요**: a crate added to `members` without its own entry builds
with full debug info (slower only); the alternative, `[profile.dev]
debug = "line-tables-only"` for everything, would change every
dependency's build and miss every CI cache once.

## Evidence

- **확인한 것**: locally, with dependencies held fresh, a per-member
override rebuilt only the workspace crate (22 dependencies `Fresh`), and
rebuilding the workspace crates under `hided` took 22 s against 25-26 s
with full debug info (two rounds each, 14-core Mac).
- **확인한 것 (before)**: medians of the last 22 successful verify runs:
`desktop e2e` CLI build 84 s, `web e2e windows` hided build 134 s, `web
e2e macos` hided build 88 s, `build hided linux` 60 s; `windows check`
9.5 min after #496.
- **확인한 것 (after)**: this pull request's verify run
[37290484535](https://github.com/modakbul-gongbang/hide/actions/runs/37290484535),
one sample against the medians of 21-23 runs:

| job: step | before (median) | after |
| --- | --- | --- |
| `windows check`: hided, kit, hooks, real_herdr and ports steps
(compile included) | 356 s | 301 s |
| `windows check`: job | 11.3 min | 9.4 min |
| `web e2e windows`: build hided | 134 s | 118 s |
| `web e2e macos`: build hided | 88 s | 59 s |
| `desktop e2e`: CLI build / mailbox step | 84 s / 126 s | 78 s / 115 s
|
| `build hided linux`: build | 60 s | 51 s |
| `rust workspace`: test the planned crates (full plan) | 156 s | 156 s
|

No dependency compiled in that run (every `Compiling` line in the
`windows check`, `desktop e2e`, `web e2e windows` and `web e2e macos`
logs names a workspace crate), so the restored caches stayed valid.
`cargo check` steps do not emit debug info and stay the same (`windows
check` workspace check 80 s median, 78 s here).
- **확인하지 못한 것**: one sample; step times on these runners vary by about
10 s between runs, so the 6-11 s differences (desktop CLI build, Linux
build) are within noise and the 29-55 s ones are not.
HyunjunJeon pushed a commit to HyunjunJeon/hide that referenced this pull request Nov 9, 2026
…ore (with-hide#2149)

Closes with-hide/hide-private#561
Closes with-hide/hide-private#495
Closes with-hide/hide-private#564
Closes with-hide/hide-private#605

## Summary

e2e 픽스처가 두 번째 에이전트를 너무 일찍 시작해서, 코어가 "다른 시작이 아직 진행 중"이라며 거절하고 픽스처는 30초를
기다리다 실패했습니다.
코어는 시작 하나가 끝나기 전에는 새 시작을 받지 않는데, 첫 에이전트의 행은 그 시작이 끝나기 전에 먼저 보입니다.
이제 테스트는 행이 아니라 코어가 그 시작에 준 답(시작 패널이 읽는 것과 같은 영수증, `task_operation`)을
기다렸다가 다음 시작을 보냅니다. 거절되면 30초를 기다리지 않고 코어의 이유로 바로 실패합니다.

화면 변경 없음: 테스트 코드와 문서만 바뀝니다.

## Review

- **조심해서 볼 파일**: `web/e2e/daemon-actions.ts` `startAgentInCheckout` -
코어의 task slot 규칙(`herdr-core/src/runtime/session.rs:3994-4003`)을 그대로
읽는지, `started` 외의 답은 모두 실패로 끝나는지.
- **조심해서 볼 파일**: `web/e2e/engine-fixture.ts` - 첫 시작이 끝난 뒤에야 두 번째 시작(또는
family의 spawn)이 나갑니다. 기다림은 코어 신호뿐이고 timeout·sleep·retry는 늘리지 않았습니다.
- **원인이 다른 것**: with-hide#444 with-hide#445 with-hide#459 with-hide#479 with-hide#496 은 픽스처가 아니라 spec 안의 기다림에서 실패하고
로그에 거절이 없어 이 PR에서 다루지 않습니다.
- **Herdr 레인에서만 난 것**: with-hide#260 with-hide#489 with-hide#502 with-hide#510 with-hide#511 with-hide#519 with-hide#533 은 `*-herdr-*`
레인에서만 났고 그 레인은 #2069로 지워졌습니다. #2069와 아래 반복 run을 적은 댓글로 닫습니다.
- **열어 두는 것**: with-hide#490 with-hide#492 with-hide#523 with-hide#529 with-hide#532(`agent_pane_required`)는 이 PR이
끝내지 않습니다. 원인은 with-hide/hide-private#630에서 따로 다룹니다.

## Evidence

- **확인한 것**: own engine으로 바뀐 뒤 "second fixture agent" 실패 6건 중 5건(#561
x2, with-hide#495, with-hide#564, with-hide#605; Linux·Windows)의 setup snapshot과 hided 로그를 봤습니다. 모두
두 번째 시작의 request id로 `task_operation.busy` 거절이 남아 있습니다. 나머지 1건(#561, run
42076071271)은 로그를 받지 않았고 오류 줄만 같습니다.
- **확인한 것**: 실패 로그 순서는 tab.create 완료 -> busy 거절 -> 첫 시작의
`agent.started`, 통과한 실행은 tab.create 몇 ms 뒤 `agent.started` -> 두 번째
시작입니다.
- **확인한 것**: `web`·`desktop` typecheck, lint(e2e 크기 검사 포함) 통과.
- **확인한 것**: a79a97b, run 42202678411의 Linux 전체 e2e(6 shard)와 Windows
`@platform` e2e를 3번 돌렸습니다. 닫는 11개 제목은 매번 통과했고 재시도도 없었습니다.
- attempt 1: Linux 6/6, Windows 1/1 통과. 재시도 후 통과: `desk-lane` "Desk is
off on a new install"(Linux 4/6), with-hide#444 close-subtree(Linux 6/6)
  - attempt 2: Linux 6/6, Windows 1/1 통과, 재시도 없음
- attempt 3: Linux 6/6, Windows 1/1 통과. 재시도 후 통과: `desk-lane` 같은
테스트(Linux 4/6)
- **범위 밖**: #444가 attempt 1에서 재시도 후 통과한 것과 `desk-lane`이 두 번 재시도 후 통과한 것은
픽스처 원인이 아닙니다. 이 노드 범위 밖이고 따로 묶여 있습니다.
- **확인하지 못한 것**: 로컬 e2e는 돌리지 않았습니다(Rust debug 빌드 디스크 부족). macOS 웹 e2e는
PR CI에 없어 반복하지 않았고, 이 묶음의 21개 이슈 중 macOS에서 난 것은 없습니다.
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