You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[CI] Overlap independent process waits and remove two static tests - #27198
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.
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 | 4 | 1
❌ Failed checks (1 warning)
Check name
Status
Explanation
Resolution
Docstring Coverage
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Title check
The title clearly summarizes the two main changes: overlapping independent process waits and removing two static tests.
Description check
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.
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
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.
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:
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:nodeand 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.
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
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