Skip to content

[CI] Reduce repeated test imports, waits and unrelated Codex jobs - #28123

Merged
nwparker merged 1 commit into
mainfrom
nwparker/ci-test-imports-waits-codex-scope-20261012
Oct 13, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/ci-test-imports-waits-codex-scope-20261012

Conversation

@nwparker

@nwparker nwparker commented Oct 13, 2026 •

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

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

  • 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.

@coderabbitai

coderabbitai Bot commented Oct 13, 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: 474ff239-69f4-4122-9aed-dc8526e1a4f9
📥 Commits

Reviewing files that changed from the base of the PR and between c8996d7 and 7c6cdc7.

📒 Files selected for processing (5)
  • config/scripts/pr-code-change-scope.mjs
  • config/scripts/pr-code-change-scope.test.mjs
  • src/main/native-chat/agent-session-wire/structured-agent-session-interrupted-continuation.test.ts
  • src/renderer/src/components/editor/closed-editor-model-lifetime.test.ts
  • src/renderer/src/components/editor/closed-editor-model-registry.test.ts
💤 Files with no reviewable changes (1)
  • src/renderer/src/components/editor/closed-editor-model-registry.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.

📝 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 · Passed 4 · Failed 1

Failed Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning 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 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 three main changes: reducing repeated test imports, waits, and unrelated Codex jobs.
Description check Passed 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.

❤️ Share

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

@nwparker
nwparker merged commit 92a520c into main Oct 13, 2026
39 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