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] Reduce repeated test imports, waits and unrelated Codex jobs - #28123
CI repeats a Monaco/store import, waits two real seconds for a deliberately hung lookup, and starts a Codex binary job for a unit test it never reads. Reduce this work while keeping the real test contracts.
What Changed
Combine the editor-model suites into the lifetime file, preserving all 18 cases and the reset after every case. Seven protected cases stay on Node; eleven registry cases move from Bun to Node. Runtime selectors remain unchanged.
Advance the full 2,000 ms stalled-offer deadline with Vitest's public timeout clock. Preserve real dispatch, accepted-verdict attribution, journal flush and timer restoration; all 12 cases remain.
Extend the existing exact client-test exception to the session unit-test file. Use a strictly anchored two-filename matcher; keep ordinary checks and real binary, global and mixed-owner triggers. Preserve all upstream Windows admissions.
Why
Reuse the existing fixture, public clock API and classifier exception. Production code, libraries and test budgets remain unchanged.
Linked Issue
N/A — ongoing CI throughput work.
Visual Proof
N/A — CI and tests only.
Testing
Local checks completed; tests updated.
On main 845b7232, four scoped quality gates passed, followed by one candidate-only run: all 12 continuation cases on Bun and all 18 editor cases on a physically verified Node worker passed. Stock isolation, six setups and four workers remain. This checks the updated launch-permission and xterm dependency context; it is not a new benchmark.
Earlier qualification retained all 41 classifier cases. Seventeen decision controls, three subsequent Windows controls, thirteen latest Windows/mixed controls and twelve exact-filename boundary controls passed. Discovery on the earlier editor baseline removed only the relocated file, assigning every remaining file once. Current source review preserves those selectors.
Whole measured scope
Before
After
Reduction
Editor, wall
6.296 s
5.785 s
8.108%
Editor, child CPU
9.809 s
6.897 s
29.684%
Continuation, wall
5.664 s
3.559 s
37.15%
Continuation, child CPU
3.729 s
3.613 s
3.10%
Eligible session-unit edit, Codex job selected
1
0
One allocation avoided
These are separate original-first Linux ARM comparisons with fresh module-cache paths and shared filesystem caches. Editor used main 9c1d5d2; continuation used frozen 0b20f70e with reviewed owners. Later production imports and dependencies changed. Runtime migration, cache and order limit attribution; percentages are not combined. No latest-main or fleet benchmark is claimed. The historical 237-second Codex job is exposure, not measured savings.
Known local command investment
Wall
Child CPU
Editor, ten commands
17.558 s
26.307 s
Continuation, six commands
11.880 s
13.666 s
Earlier classifier/provider/decisions
9.073 s
8.785 s
Latest validation, including stopped attempts
10.194 s
20.586 s
Latest provider preparation, including failed installs
14.946 s
13.705 s
Costs retain caught lint limits, launcher/import errors, an incorrect boundary fixture, reporter startup failure and offline/disk-full installs. No test assertion or lint limit was removed. The first earlier guard stopped before any gate: controller 0.897 s, CPU unmeasured. Nested controller/envelope times are not added twice; source transfers and disk cleanup are outside these command sums. Ordinary PR validation completed: four runs, all attempt 1 successful, totaling 6,188 assigned runner-seconds across 26 allocations; 501 queue-seconds separately. All 39 job rows are counted, including 13 unallocated skips; no failed or canceled waves. The two automatic main-push runs also succeeded: 195 runner-seconds / 2 allocations, plus 8 queue-seconds. Whole known ordinary lifecycle: 6,383 runner-seconds / 28 allocations, with 509 queue-seconds separately, across six successful attempt-1 runs and 47 unique job rows. Three separately triggered E2E trials are outside this ordinary lifecycle; these costs are investment, not measured savings.
Review
Independent source, input, raw-result, tree and body reviews completed.
Agent skill upstream boundary
Not applicable; no upstream skill source copied.
Notes
CI and tests only; production, platform and SSH behavior unchanged. Whole-CI 2× improvement remains unproved.
Checklist
Focused changes, mechanism and alternatives explained.
N/A visual proof explained.
Local checks recorded; ordinary exact-head CI required before merge.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
📝 Walkthrough
Walkthrough
The Codex job detector now excludes both app-server client and session test files, with a test for session-file classification. The interrupted-continuation test advances fake timers and checks dispatch, status, and cleanup. Editor model lifetime tests add coverage for registry changes, model disposal, caches, and reentrant callbacks. The previous editor model registry test file was deleted.
Priority: ⬇️ Low
Merge Risk:⚪ Minimal · up to 7c6cd
This change only affects CI job classification and tests, and production code is untouched. No concrete merge-blocking risk was identified, so normal CI on the exact head is sufficient.
Pre-merge checks · 4 · 1
Failed checks (1 warning)
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 4 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 three main changes: reducing repeated test imports, waits, and unrelated Codex jobs.
Description check
The description is detailed, on-topic, and covers the change, rationale, testing, visual proof, scope, and checklist. The linked issue section is marked N/A despite the template requesting an actual i…
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
CI repeats a Monaco/store import, waits two real seconds for a deliberately hung lookup, and starts a Codex binary job for a unit test it never reads. Reduce this work while keeping the real test contracts.
What Changed
Why
Reuse the existing fixture, public clock API and classifier exception. Production code, libraries and test budgets remain unchanged.
Linked Issue
N/A — ongoing CI throughput work.
Visual Proof
N/A — CI and tests only.
Testing
On main
845b7232, four scoped quality gates passed, followed by one candidate-only run: all 12 continuation cases on Bun and all 18 editor cases on a physically verified Node worker passed. Stock isolation, six setups and four workers remain. This checks the updated launch-permission and xterm dependency context; it is not a new benchmark.Earlier qualification retained all 41 classifier cases. Seventeen decision controls, three subsequent Windows controls, thirteen latest Windows/mixed controls and twelve exact-filename boundary controls passed. Discovery on the earlier editor baseline removed only the relocated file, assigning every remaining file once. Current source review preserves those selectors.
These are separate original-first Linux ARM comparisons with fresh module-cache paths and shared filesystem caches. Editor used main
9c1d5d2; continuation used frozen0b20f70ewith reviewed owners. Later production imports and dependencies changed. Runtime migration, cache and order limit attribution; percentages are not combined. No latest-main or fleet benchmark is claimed. The historical 237-second Codex job is exposure, not measured savings.Costs retain caught lint limits, launcher/import errors, an incorrect boundary fixture, reporter startup failure and offline/disk-full installs. No test assertion or lint limit was removed. The first earlier guard stopped before any gate: controller 0.897 s, CPU unmeasured. Nested controller/envelope times are not added twice; source transfers and disk cleanup are outside these command sums. Ordinary PR validation completed: four runs, all attempt 1 successful, totaling 6,188 assigned runner-seconds across 26 allocations; 501 queue-seconds separately. All 39 job rows are counted, including 13 unallocated skips; no failed or canceled waves. The two automatic main-push runs also succeeded: 195 runner-seconds / 2 allocations, plus 8 queue-seconds. Whole known ordinary lifecycle: 6,383 runner-seconds / 28 allocations, with 509 queue-seconds separately, across six successful attempt-1 runs and 47 unique job rows. Three separately triggered E2E trials are outside this ordinary lifecycle; these costs are investment, not measured savings.
Review
Independent source, input, raw-result, tree and body reviews completed.
Agent skill upstream boundary
Notes
CI and tests only; production, platform and SSH behavior unchanged. Whole-CI 2× improvement remains unproved.
Checklist