Skip to content

[CI] Reduce repeated test work and use pinned Bun for localization extraction - #26725

Closed
nwparker wants to merge 3 commits into
mainfrom
nwparker/ci-retire-source-inventories-20261008
Closed

nwparker wants to merge 3 commits into
mainfrom
nwparker/ci-retire-source-inventories-20261008

Conversation

@nwparker

@nwparker nwparker commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​74 $\color{#cf222e}{\Huge{\mathbf{−}}}$​623 $\color{#cf222e}{\Huge{\mathbf{−}}}$​549
Prod 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​93 $\color{#cf222e}{\Huge{\mathbf{−}}}$​139 $\color{#cf222e}{\Huge{\mathbf{−}}}$​46

ELI5

Remove copied test inventories and mocked delays, narrow settings imports, and use pinned Bun for extraction with a Node fallback.

What Changed

Remove 22 source-spelling/inventory cases and their unused argument scanner. Intentionally retire global strict-decoder importer, startup-order, agent-send caller, unchecked PTY argument and SSH Windows workflow alarms. Retained runtime/wire/input/platform companions do not replace global enforcement.

Keep the fence-mint test and comment for a later runtime change: their removal would enroll unrelated native checks.

Use timeout-only clocks after setup in four mocked single-chunk suffix cases. Preserve assertions/error checks, restore real timers before cleanup, and keep real chunk fairness unchanged.

Move three GeneralPane calculations to canonical settings owners, preserving the component body and public exports. GeneralPane and RuntimeEnvironmentsPane pure tests import their actual owners; mounted, search and host-row companions remain.

Keep the Node package command. The canonical runner probes Bun’s version/absolute executable, uses the repository pin, or falls back to Node. Extraction failures never retry. Arguments, directory, environment, comparison and temporary cleanup remain; package/workflow/lock/optimizer files are unchanged.

Why

Remove copied policy rather than optimize its scanner, advance actual mocked operations, and avoid loading UI for calculations. The verifier-only launcher avoids the broader checks and main cache producers triggered by editing package.json.

Linked Issue

N/A — internal maintainer maintenance; no existing issue applies.

Visual Proof

N/A — no intended visual or interaction change; the settings component body is preserved.

Testing

  • Four-clock full two-module qualification retained 1,352 cases: 1,351 passed and one skipped.
  • Settings before/after qualification retained all 45 cases, including mounted companions.
  • Real verifier child selection, missing-Bun and version-mismatch fallback, extraction failure without retry, and temporary cleanup passed.
  • Fresh 22-case pruning correctness and all six first timing commands passed.
  • Final combined Bun and Node cohorts each completed 1,580 registered cases across 21 modules: 1,564 passed, 16 skipped. Full retained payloads, routes, settings and error checks matched.
  • Scoped formatting, lint, full typecheck, changed quality and whitespace passed; normal commit hooks preserved all 17 measured source outputs.
  • Required ordinary CI passes the eventual published head.

Each table counts all six first ABBAAB commands with shared caches and disclosed qualification warming. Results are separate, nonadditive local measurements, not CI/fleet gains. Unit cohorts retain four workers, isolation, six setups and existing deadlines; extraction is a separate CLI.

22 source-inventory removals and retained companions Before seconds After seconds
Pair 1 4.084381292 3.412396125
Pair 2 4.021059125 3.421707708
Pair 3 4.084445875 3.457916042
Mean 4.063295431 3.430673292

Mean local wall was 15.57% lower for 214→192 cases (199→177 passed, 15 skipped) and 17→13 modules. Retained payloads matched minus exactly 22 cases. Clock/settings/verifier changes were fixed in both arms. Windows and opt-in SSH stayed skipped on this Mac.

Four mocked suffixes, full two-module cohort Before seconds After seconds
Pair 1 13.637702584 11.777995042
Pair 2 14.077010708 11.926033417
Pair 3 14.181070583 11.603433625
Mean 13.965261292 11.769154028

Mean local command wall was 15.73% lower with the same complete assertion payloads, routes and settings. Real PTY scheduling and fairness were unchanged.

Six existing settings suites Before seconds After seconds
Pair 1 3.086979292 2.284336708
Pair 2 3.045804666 2.230405542
Pair 3 3.048692208 2.317818875
Mean 3.060492055 2.277520375

Mean local wall was 25.58% lower, retaining all 45 payloads/modules/routes/settings, including seven mount and four host-row cases. The first correctness pair, 5.130834625→2.270946167 seconds, is descriptive. Happy DOM is not desktop/native/remote qualification.

Node wrapper with pinned Bun extraction child Before seconds After seconds
Pair 1 13.304547209 9.311996750
Pair 2 13.423477875 9.177196542
Pair 3 13.577159083 9.058069958
Mean 13.435061389 9.182421083

Mean local whole-command wall was 31.65% lower, including the canonical bridge and Bun probe. All six uninstrumented commands exited naturally with identical summaries and no remaining owned extraction catalogs.

Passive controls observed pinned Bun and absent-Bun Node fallback with byte-identical 898,090-byte catalogs and the original 14,073-key summary. The original wrapper catalog was not captured. Version mismatch selected Node; malformed real configuration failed once under Bun with cleanup. Timed samples did not capture child inputs/catalogs. Linux/Windows SWC and hosted contention remain unqualified; the prior nine-second late wait is only a fixed-duration ceiling.

Earlier 23-case measurements and the reporter-output failure remain recorded as historical evidence outside these passing samples; no failed sample was discarded or replaced.

Review

Head 013f8ca7a75e3b75471fb9d73decdb6c129eb125, base 37833ce9a02ccd6754dc9b4eb3266d39ddf8a2fd, is locally qualified; ordinary CI is pending. The actual local Node-server graph found no changed input. Hosted detection remains authoritative and conservative on errors; no avoided seconds are claimed. No new jobs, warmers or routing exemptions.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer material is copied.

Checklist

  • Mechanisms, alternatives and intentional alarm losses explained.
  • Cross-platform and SSH boundaries considered; local limits explicit.
  • No intended visual change.
  • Final combined scope self-reviewed and locally checked; all measured source hashes survived normal commit hooks.
  • Ordinary CI complete; local unit measurements do not qualify packaging builds.

@nwparker
nwparker requested a review from brennanb2025 as a code owner October 9, 2026 02:05
@coderabbitai

coderabbitai Bot commented Oct 9, 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: 00a4b45c-4936-4140-8916-ba3b72f56536
📥 Commits

Reviewing files that changed from the base of the PR and between 37833ce and 013f8ca.

📒 Files selected for processing (17)
  • config/scripts/ssh-windows-hosts-workflow.test.mjs
  • config/scripts/verify-localization-extraction.mjs
  • src/main/runtime/headless-runtime-graph.test.ts
  • src/main/runtime/orca-runtime-tests/agent-status-and-waits-part-03.spec.ts
  • src/main/runtime/orca-runtime-tests/agent-status-and-waits.spec.ts
  • src/main/runtime/orca-runtime-tests/terminal-creation-and-readiness-part-07.spec.ts
  • src/main/runtime/orchestration/send-agent-turn-boundary.test.ts
  • src/main/runtime/terminal-input-kind-unchecked-call-sites.test.ts
  • src/main/runtime/terminal-run-facts-input.test.ts
  • src/renderer/src/components/settings/GeneralPane.test.ts
  • src/renderer/src/components/settings/GeneralPane.tsx
  • src/renderer/src/components/settings/RuntimeEnvironmentsPane.test.ts
  • src/renderer/src/components/settings/general-project-runtime-search.ts
  • src/renderer/src/components/settings/general-search.ts
  • src/renderer/src/components/settings/general-settings-platform.ts
  • src/shared/agent-status-child-work-codec-boundary.test.ts
  • src/shared/source-scan/call-argument-scan.ts
💤 Files with no reviewable changes (6)
  • src/shared/source-scan/call-argument-scan.ts
  • config/scripts/ssh-windows-hosts-workflow.test.mjs
  • src/main/runtime/orchestration/send-agent-turn-boundary.test.ts
  • src/shared/agent-status-child-work-codec-boundary.test.ts
  • src/main/runtime/headless-runtime-graph.test.ts
  • src/main/runtime/terminal-input-kind-unchecked-call-sites.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.


📝 Walkthrough

Walkthrough

The localization extraction script now uses the shared synchronous process runner and validates optional Bun before selecting an executable. Runtime terminal tests coordinate sends with fake timers. Settings helpers now reside in dedicated modules, with updated imports in the pane and tests. Several source-based tests and their call-argument scanning utility were removed.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 013f8

No identified issue blocks merging after normal checks.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 11 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 primary changes: reducing repeated test work and using pinned Bun with a Node fallback for localization extraction.
Description check Passed The description is detailed and aligned with the template. It explains the changes, rationale, testing, limitations, visual impact, cross-platform considerations, and pending CI status. The issue is m…
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
  • Autopilot · 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 changed the title Reduce repeated test work and use pinned Bun for localization extraction [CI] Reduce repeated test work and use pinned Bun for localization extraction Oct 9, 2026
@nwparker

nwparker commented Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #26806, the separately reviewed tests and CI tooling batch at f0a47bd. The replacement discloses all 74 retirements and separate local before/after measurements without an overall 2× CI claim. This PR branch and author source are preserved; #26368 remains held and unchanged.

@nwparker nwparker closed this Oct 9, 2026
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