Repository navigation
ci: reuse Windows hook builds and shorten test setup and shutdown - #29439
Conversation
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: 🔵 Low · up to
|
The hook reuse regression first built into a missing private --output, so it always reached Cargo (74s warm on Windows). Build through the default output instead, which reuses a warm canonical prebuild, then copy its executable and fingerprint into the private fixture root.
…/ci-root-preflight-integration-20261016
…fter main merge Combine the duplicate shared/execution-host imports in runtime-host-services (301 -> 300 lines) and type the overlap test's tab mapper with the RuntimeMobileSessionClientTab owner type instead of object.
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
ef23c3f7-b15b-43cd-9af4-76dcbab0ec0a
📒 Files selected for processing: 2
src/main/orcad/orcad-daemon-teardown-fixture.tssrc/main/orcad/orcad-serve-parity.integration.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
| await cleanupDaemonForProtocol(daemonDir, protocolVersion, pid) | ||
| await waitForProcessExit([pid]) |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟠 Major | 🏗️ Heavy lift
🔎 Supported by static analysis
🏁 Script executed:
rg -n 'cleanupDaemonForProtocol' src
sed -n '60,110p' src/main/orcad/orcad-daemon-teardown-fixture.tsRepository: stablyai/orca
Length of output: 4830
🏁 Script executed:
set -o pipefail
printf '%s\n' '--- cleanup implementation and related declarations ---'
sed -n '1,260p' src/main/daemon/daemon-protocol-cleanup.ts
printf '%s\n' '--- teardown fixture complete relevant section ---'
sed -n '1,150p' src/main/orcad/orcad-daemon-teardown-fixture.ts
printf '%s\n' '--- cleanup tests ---'
sed -n '1,180p' src/main/daemon/daemon-protocol-cleanup.test.ts
printf '%s\n' '--- serve-parity references ---'
rg -n -F --glob '*.{ts,tsx}' -e 'serve-parity' -e 'killProfileDaemons' -e 'daemon-v' -e 'cleanupDaemonForProtocol' src test tests 2>/dev/null || trueRepository: stablyai/orca
Length of output: 26993
🏁 Script executed:
set -o pipefail
printf '%s\n' '--- serve-parity integration lifecycle ---'
sed -n '1,290p' src/main/orcad/orcad-serve-parity.integration.test.ts
printf '%s\n' '--- protocol constants and daemon endpoint lifecycle references ---'
rg -n -F --glob '*.ts' -e 'CLEAN_DISCONNECT_PROTOCOL_VERSION' -e 'PROTOCOL_VERSION' -e 'daemon-v${' src/main/daemon src/main/orcad | head -120
printf '%s\n' '--- serve-parity test teardown and daemon shutdown controls ---'
rg -n -F --glob '*.ts' -e 'shutdown' -e 'SIGKILL' -e 'removeTestRoot' -e 'killProfileDaemons' src/main/orcad/orcad-serve-parity.integration.test.tsRepository: stablyai/orca
Length of output: 23204
Handle a live daemon whose endpoint is unavailable.
If the PID record names a live daemon but probeSocket reports no endpoint, cleanupDaemonForProtocol returns without stopping the PID. For current protocols, it also leaves the PID record. killProfileDaemons then waits for the live PID and can fail teardown after the exit deadline.
The existing PID-kill fallback is not safe for this path. It runs only after connected-endpoint cleanup fails, and targeted cleanup rejects before invoking it. Add an ownership-safe fallback for the unavailable-endpoint branch. Do not kill an unverified PID.
…ight-integration-20261016
…ight-integration-20261016
ELI5
Windows CI reuses the hook it already built. Test fixtures avoid unnecessary waits and close their owned daemons before deleting temporary profiles.
What Changed
Why
These changes remove repeated build and fixture work through existing mechanisms. Authenticated shutdown releases terminal handles before deletion. A Linux zombie has exited but can still answer a PID-presence check until its parent reaps it. Runner capacity, isolation, retries, deadlines and aggregate failure handling stay intact.
Linked Issue
N/A — maintainer CI improvement.
Visual Proof
N/A — build, test and ownership checks only; no rendered interface change.
Testing
63d6dee2caa27c684dae102869701b3893c1e1c5qualified in full PR run 38880420231, attempt 1. Actual checkout: merge994cd8340869773b9e0fa7cef8fe8260013ebb93with main parente3f42d76a0adec0a467bf94b638d77f1910dc2e1. All 29 physical PR jobs matched their source conditions;PR checks passedran on a real runner and itsRequire successful checksstep passed.isolate=trueand the existing max4 workers remained; upstream test consolidations and count drift were accounted for separately.Observed timings across hosted revisions:
The Windows job also remains above the preceding 338s observation, and below the original 403s baseline. Source, build, runner and cache differences prevent a causal or fleet-wide savings claim. Final close and daemon cleanup overlap and were not added together. Queue time is excluded from whole-job occupancy.
The previous published
aa5fb9dfailed PR preflight and two Linux floor lanes; those failures remain recorded. The current revision has fresh passing qualification. Historical failed PIDs were not proven zombies.Review
Independent Codex reviews cover strict exit proof, process ownership, cleanup ordering, intermediate restart preservation, folder/SSH authority, runtime routing, emitted unit coverage, exact source bindings and aggregate failure handling.
Agent skill upstream boundary
Notes
Explicit x64/ARM64 targets, native guards, SSH and mixed-version contracts remain. Windows packaged smoke covers x64; ARM64 qualification here is the headless persistence lane, not an ARM64 desktop-package claim.
Checklist