Repository navigation
[CI] Reduce repeated test setup and real CLI waits - #27297
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to No actionable issue remains in the supplied review scope; the change is mergeable after normal checks. Pre-merge checks |
|
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:
1570c6bb-cf1c-44de-8297-3447f22df1aa
📒 Files selected for processing (10)
config/scripts/vitest-sqlite-database-runtime-files.mjssrc/main/codex/codex-hook-file-entry-binary-contract.test.tssrc/main/ipc/filesystem-git-commit-dispatch.test.tssrc/main/ipc/filesystem-pull-request-field-generation.test.tssrc/main/runtime/rpc/methods/orchestration/worker/manual-dispatch-release.test.tssrc/main/runtime/rpc/methods/orchestration/worker/worker-abandon-caller.test.tssrc/renderer/src/components/native-chat/NativeChatMessageList.interrupted-turn-fold.test.tsxsrc/renderer/src/components/native-chat/NativeChatMessageList.provider-retry-runs.test.tsxsrc/renderer/src/components/native-chat/NativeChatMessageList.stopping-turn-bar.test.tsxsrc/renderer/src/components/native-chat/NativeChatMessageList.turn-status.test.tsx
💤 Files with no reviewable changes (6)
- config/scripts/vitest-sqlite-database-runtime-files.mjs
- src/renderer/src/components/native-chat/NativeChatMessageList.stopping-turn-bar.test.tsx
- src/main/ipc/filesystem-pull-request-field-generation.test.ts
- src/renderer/src/components/native-chat/NativeChatMessageList.provider-retry-runs.test.tsx
- src/renderer/src/components/native-chat/NativeChatMessageList.interrupted-turn-fold.test.tsx
- src/main/runtime/rpc/methods/orchestration/worker/worker-abandon-caller.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
ELI5
CI repeatedly loads the same test dependencies and waits after Codex has finished. This reduces both costs while preserving the contracts.
What Changed
Combine seven files into three, retaining all 25 cases, assertions, cleanup, and Node routing for database contracts. Remove the obsolete registry entry. Four moved pull-request cases receive one distinct ancestor title to satisfy the full CI lint rule; their bodies remain identical.
The real Codex terminal test advances on painted readiness, then the real Stop response and assistant output. Wrong approval still requires review and no hooks. Timeout ceilings and shutdown windows remain. Forwarded output has a finite 64 MiB cap.
Why
Fewer isolated imports and observed completion reduce work. Existing runners, terminal scanners, and Node options handle this without product or library changes.
Linked Issue
N/A — maintainer-requested CI work.
Visual Proof
N/A — test-only change; no product UI change.
Testing
macOS arm64,
ORCA_BACKGROUND_LAUNCH=1, Node 24.21.0, stock Vitest 5.0.3. Combined tests used committed setup and Bun 1.4.2 in both arms:All 25 cases passed with isolation and protected Node routing unchanged. Arms were 4.766 / 3.810 / 3.841 / 4.392 seconds. An incorrect worker-type assertion held the controller after successful A1; continuation reused A1 after a 153.433-second pause. This was a split bracket. Eight commands cost 17.060 seconds; controllers cost 7.396 + 16.257 seconds. CPU counters are not runner occupancy.
The CLI comparison is one fixed-order pair: same 54 passes and prerequisite skips, CLI 0.150.1 / 0.158.0 / 0.162.1. Nine terminal children exited. Controllers including capture/redaction cost 242.760 → 67.819 seconds; the original owned-cache housekeeping hold remains recorded. Final-only CLI validation passed in 45.754 seconds inside its 46.249-second outer command. Initial quality failed five missing braces in 2.794 seconds; parent controller cost 51.118 seconds. Formatter cost 0.120; corrected quality and Node/Web checks passed in 6.634 without repeating suites. The original 26 inner qualification commands cost 72.361 seconds; nested time is counted once, formatter/quality controller overhead unrecorded.
Corrective validation retained the full-repository plugin failure (1.984 seconds): five mobile cycle warnings in four unchanged production files, with no graph edges to changed tests. No suppression or production fix. Full plugin checks on all five live changed files passed in 0.524 seconds; all 12 IPC cases passed in 2.119 with only the declared four-case title alias. Buffer-option full-file lint and Node typecheck passed in 1.926 seconds. Normal hooks cost 1.394 / 1.225 / 1.129 seconds. The local full-repository gate is not claimed green.
Review
Source/semantic reviews and final required checks passed. The duplicate-title CI failure was corrected. CodeRabbit's buffer-limit finding was fixed, acknowledged, and resolved after push. Captured output was below 1 MiB; no stress run was added, which the bot accepted for this minor option change. Its optional docstring quota is declined under the repository's concise-comment policy.
All workflows used their normal first attempt; no diagnostic reruns. Final unit shards used 2932 seconds versus 3172 on e7b8. Earlier reference PR #27253 used 5349 seconds with extra forced jobs (22 allocations). Different job selection and observed variation prevent a causal whole-CI speedup claim. The matched local measurements provide improvement evidence; overall 2× runner capacity remains unproved.
Agent skill upstream boundary
Notes
No product, dependency patch, runtime pin, native routing, cache policy, isolation setting, or CI job changes. Local measurements cover macOS; ordinary PR checks covered the supported contracts.
Checklist