Skip to content

[CI] Overlap independent process waits and remove two static tests - #27198

Merged
nwparker merged 2 commits into
mainfrom
nwparker/ci-overlap-real-process-waits-20261010
Oct 10, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/ci-overlap-real-process-waits-20261010

Conversation

@nwparker

@nwparker nwparker commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​77 $\color{#cf222e}{\Huge{\mathbf{−}}}$​106 $\color{#cf222e}{\Huge{\mathbf{−}}}$​29
Prod 0 0 0 0

ELI5

Independent tests wait for real process deadlines together.

What Changed

Overlap two build-lock cases and three server-deadline cases through Vitest's public API. Each owns fixtures, cleanup and assertions. Real waits, termination grace, PID checks and production behavior remain.

Remove exactly two static cases: a copied session-field inventory and a redundant separator assertion. Real persistence round trips, schema rejection and literal worktree parsing remain. Removing the inventory deliberately loses its static type-key drift alarm; it never checked persistence compatibility.

Why

Separate processes/packages can wait simultaneously without shortening deadlines or changing production locking and teardown. Combining changes avoids another CI wave.

Linked Issue

N/A — CI maintenance.

Visual Proof

N/A — test-only change.

Testing

macOS, stock pnpm12.8.1/Node24.21.0/Bun1.4.2/Vitest5.0.3, existing configuration and four workers. Whole-file Bun ABBA measurements:

File Original seconds Candidate seconds Mean/median improvement
Build-lock 43.128397, 42.820385 25.712808, 25.518186 42.974391 → 25.615497; 40.39%
Server-deadline 29.316853, 29.416763 13.537783, 13.768641 29.366808 → 13.653212; 53.51%

Every arm passed the same 12 lock or 16 deadline cases; Node correctness passed. Real waits remained about 17 seconds and 8–11 seconds respectively.

Combined run passed 73 cases: 12 lock, 16 deadline, 18 persistence, 27 worktree. Formatting, targeted type-aware lint and changed-quality checks passed. The first head exposed an API-order typing error. The supported conditional-first order now passes actual pnpm tc:node and complete 16-case Node/Bun verification. Benchmarks measure the prior runtime-equivalent order.

Local trial/verification cost: 403.995877210 seconds (corrective checks: 42.194128834), including an earlier preserved 42.457384042-second residue HOLD. Hooks: 4.791565 seconds. First-head ordinary CI cost: 554 assigned runner-seconds ; units/wire were skipped after our typecheck failure. Corrected normal CI passed: 4007 assigned runner-seconds, 14 jobs; both heads 4561, plus 233 post-merge (4794 total). Five full shards passed the edited 12/16/18/27 cases under Bun. Observer intervals overlap; other overhead unmeasured.

  • Runtime/lint checks above completed locally.
  • Existing tests updated; intentional static alarm loss disclosed.

AI Disclosure

Review

The generic docstring-coverage warning adds no contract coverage here. Test-fixture comments remain brief and explain non-obvious reasons, following repository policy.

Agent skill upstream boundary

  • Not applicable; no upstream skill material copied.

Notes

Only four test files change. Windows, peak resources and comparative hosted savings remain unmeasured. Existing Windows native packaging failure is separate. File gains cannot be added as critical-path savings or prove the overall 2× goal.

Checklist

  • Focused scope, mechanism and rationale explained; visual proof N/A.
  • Cross-platform paths/Windows conditional preserved; SSH/mobile behavior unchanged.
  • Corrective typecheck and Node/Bun checks passed.
  • Required CI passed; exact-head review has no findings.

@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ad6230da-fbed-4a23-91b0-1548a9e765ac


📥 Commits

Reviewing files that changed from the base of the PR and between f6cb167 and ce77677.



📒 Files selected for processing (1)
  • src/main/codex/codex-app-server-client.test.ts


Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.




📝 Walkthrough
📝 Walkthrough

Walkthrough

Build-lock compromise tests and app-server timeout tests now run concurrently and use per-test cleanup callbacks. The build helper also accepts an injected expectation function. The cached-session schema test and the test asserting a literal worktree ID separator were removed.



Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to ce776

The test changes do not show a current product or test-workflow regression: concurrent cases isolate their resources, and the relevant persistence and worktree parsing behavior remains covered. No actionable merge blocker is identified; normal CI results remain outstanding.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly summarizes the two main changes: overlapping independent process waits and removing two static tests.
Description check Passed The description covers the required sections, explains the changes and rationale, documents testing and limitations, and completes the checklist. The linked issue is marked N/A for CI maintenance, but…

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR




  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 3c71318 into main Oct 10, 2026
32 checks passed
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