Skip to content

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

Merged
nwparker merged 2 commits into
mainfrom
nwparker/ci-capacity-continuation-20261009
Oct 9, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/ci-capacity-continuation-20261009

Conversation

@nwparker

@nwparker nwparker commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 38 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1322 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4033 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2711
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​42 $\color{#cf222e}{\Huge{\mathbf{−}}}$​95 $\color{#cf222e}{\Huge{\mathbf{−}}}$​53

ELI5

Spend less time loading test modules and waiting on mocked operations, retire accepted inventory checks, and use pinned Bun for localization extraction with Node fallback.

What Changed

Four single-chunk prompt cases advance only their mocked suffix timeouts after setup; acceptance, refusal, input and error assertions remain. Real clocks return before cleanup, and real PTY scheduling/fairness remains unchanged. Owned test timers use existing cleanup.

Pure settings tests import their canonical owner. Markdown, native-chat, editor and FloatingPanel cases load fewer modules; all 29 FloatingPanel cases and seven original Node editor-lifetime cases remain.

Retire 73 lexical/census checks, an unused test scanner and one copied caller test. This intentionally loses unique global sender/decoder/input-kind, startup/workflow, caller/import/dependency, mobile reader, syntax, clipboard-branch and translation inventories; retained behavioral tests do not replace those alarms. Real local/SSH/folder, socket, decoding, native and clipboard contracts remain. The real SQLite privacy test excludes only independently validated intrinsic identifier, clock and duration fields; unknown and nested payloads remain scanned.

The localization verifier uses the existing process wrapper and a bounded probe for the repository's pinned absolute Bun executable. Missing, mismatched, malformed or timed-out probes choose Node; extraction failures do not retry. Catalog checks and cleanup remain.

Why

Reuse existing owners, group compatible cases and advance mock-only waits. This avoids parallel implementations or changing application delays, production code, vendor patches, workflows or dependencies.

Linked Issue

N/A — internal maintainer maintenance.

Visual Proof

N/A — test and CI tooling changes with no intended visual or interaction change.

Testing

Current-base local qualification passed on macOS with ORCA_BACKGROUND_LAUNCH=1: root pnpm tc, changed-code quality, changed-survivor format and whitespace checks; mobile's five normal generators, app typecheck and existing tests-typecheck ratchet. Ordinary generation resolved the earlier missing generated imports without weakening the baseline; failed attempts remain in the evidence.

The complete affected root cohort passed under stock Bun 1.4.2 and Node with Vitest 5.0.3: 52 modules and 1,991 duplicate-preserving case report payloads per command, with exact project/pool routes and no reporter errors. Retained assertion source was separately reviewed; report equality alone does not prove every assertion executed. The original seven editor-lifetime cases retain their Node route. Localization fallback, failure and cleanup controls passed. These correctness runs warmed the host and are not before/after measurements.

Earlier measurements retain their original source epochs:

Separate local scope Mean before → after Less wall
Four mocked suffixes; same 1,355 cases 13.830981s → 12.270349s 11.28%
Settings import; same 45 cases 3.352512s → 3.136018s 6.46%
Real localization wrapper 13.615098s → 9.407379s 30.90%
22 inventory retirements; 208→186 cases 4.351245s → 3.574451s 17.85%
Combined addon; 23/184→16/178 modules/cases 7.468092s → 6.633176s 11.18%

Each earlier scope retains all six first whole commands in before/after/after/before/before/after order. Settings and addon have weak later pairs. These are warmed shared-macOS observations, not refreshed measurements of the restored 40 paths.

New current-base measurements, independently replayed from raw receipts:

Separate local cohort Modules/cases before → after Mean before → after Less wall
Root additional cohort 14/131 → 11/129 4.897488569s → 3.962785431s 19.09%
Mobile additional cohort 15/138 → 9/94 2.184952458s → 1.053507542s 51.78%

All twelve first whole commands naturally exited zero in the same balanced order, with no discarded sample, retry, cache clear or extra primer. Exact case payloads, routes and source/executable/installed guards passed. These cohorts remove two root and 44 mobile inventory cases; their totals are intentionally different. Earlier correctness, installation, generation and static checks warmed the shared host. All rows are separate and nonadditive; retirement rows reduce workload. No overall CI 2× gain, occupied-runner saving, avoided allocation or cross-platform speedup is proved. Ordinary PR and postmerge CI remain pending.

Review

Independent source review clears the exact 40-path candidate restored on base df922d3709128c2e399150b5da289870db12a0c2; current-base preimages match the saved source with no upstream overlap. The measurement reviewer clears the new twelve receipts for their stated local scope. Source-owner checks above bind this restored candidate, not old PR heads.

Root accepted commit f0a47bd87949c0233bd5b7841457c86e432af3f8 on nwparker/ci-capacity-continuation-20261009, based on df922d3709128c2e399150b5da289870db12a0c2, and authorized ordinary push and this new PR. Ordinary oxlint, react-doctor and format commit hooks passed; all 40 posthook paths match the approved source manifest. This PR supersedes #26725, whose branch and author source are preserved; #26368 remains held and unchanged. Required checks, new bot threads and root review remain pending; no merge is authorized. Linux, Windows, native-focus and SSH execution await ordinary platform qualification.

Agent skill upstream boundary

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

Notes

Capacity accounting uses actual occupied runner seconds and allocations, including automatic main-push work; queue time is separate. Historical job costs are references, not measured savings from this batch.

Checklist

  • Before/after behavior, mechanisms, alternatives and lost alarms explained.
  • Platform, SSH, folder and compatibility boundaries reviewed in the saved candidate.
  • Current-base local checks and mobile generation/typecheck/ratchet complete.
  • Final root source/evidence acceptance and ordinary commit hooks complete for f0a47bd87949c0233bd5b7841457c86e432af3f8.
  • Ordinary push and new PR publication authorized by root.
  • Required ordinary PR checks, bot-thread review and root review complete.
  • Ordinary postmerge CI evidence available; no merge is authorized yet.

Ordinary CI failure and qualified fix

The first ordinary run on f0a47bd87949c0233bd5b7841457c86e432af3f8 failed the focused code-quality plugin gate because two consolidated FloatingTerminalPanel suites reused the close-behavior title. Aggregate verify then failed; the typecheck step was skipped, not a separate typecheck failure. Root accepted 99157b8a239fac1b5f7e4e4bfe06b4ef21c8ca81, which changes only those two titles to empty-state and markdown-editor names. All 29 cases passed naturally under stock Bun and Node with exact expected case identities and unchanged routes; all 63 assertion callsites remain. Full type-aware, focused native checks on all 19 surviving paths, format and changed-code quality passed, and normal commit hooks completed.

The full native command first failed locally on five existing mobile import-cycle warnings in four unchanged files; that failed receipt is retained. The focused checks qualify the title fix, not full-tree native lint health or Linux CI equivalence. Ordinary checks on the new head and root merge acceptance remain pending. No new performance measurement or saving is claimed.

All five original-head ordinary workflows are terminal and retain their full occupied job intervals: 1,207 runner seconds across 10 allocations, including the failed PR workflow (350s), Mobile (290s), Computer-use (533s), Headless Node (27s), and LoC (7s). Skipped unit work makes this failed-run accounting, not throughput qualification. Fix-head and any later postmerge allocations will be charged separately; heterogeneous runner seconds are not monetary costs.

Final ordinary PR qualification

At 2026-10-09 09:33 UTC, exact accepted head 99157b8a239fac1b5f7e4e4bfe06b4ef21c8ca81 had all 37 ordinary check contexts terminal: 19 successful and 18 skipped, including successful static analysis/typecheck, all five unit shards, selection evidence and aggregate verify. The complete review-thread page was empty and GitHub reported a clean merge state. CodeRabbit had no actionable code finding; its docstring-coverage advisory does not change the narrow fix or repository comment policy. These terminal results supersede the earlier pending PR status; root merge acceptance and postmerge checks remain separate.

All five fix-head ordinary workflows succeeded and consumed 4,880 occupied runner seconds across 19 allocations: PR checks 4,126s/13, Mobile 272s/1, Computer-use 452s/3, Headless Node 25s/1, LoC 5s/1. Full job intervals include setup, tests, artifacts and cleanup. The original failed head remains additional at 1,207s/10, for 6,087s/29 allocations across both heads. Queue time and any later main-push work are separate. This is complete observed accounting across heterogeneous pools, not a matched capacity comparison, monetary cost, saving or overall 2× result.

Merge and automatic main CI

With root acceptance, this PR merged at 2026-10-09 09:37:53 UTC as 7b1242ba944d2a995deff52ef19b2b926d72dbb6. A bounded immutable-object comparison verifies all 40 owned paths against accepted 99157b8a239fac1b5f7e4e4bfe06b4ef21c8ca81: 19 retained outputs and 21 deletions match exactly. Additional merged main source is recorded separately and is outside that owned-path proof.

Both automatic main-push workflows succeeded. Their full job intervals consumed 256 additional occupied runner seconds across two allocations: Node 25s/1 and Mobile 231s/1. Including both PR heads, all observed work is 6,343s across 31 allocations, retaining the original failed work. These totals separate PR and main work, exclude queue time from occupied intervals, and do not establish a matched capacity, monetary saving or overall 2× gain. No CI dispatch or rerun was issued.

@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: c8b7e7e1-4098-4525-ae75-d88972a63876

📥 Commits

Reviewing files that changed from the base of the PR and between f0a47bd and 99157b8.


📒 Files selected for processing (1)
  • src/renderer/src/components/floating-terminal/FloatingTerminalPanel.bounds.test.tsx

🚧 Files skipped from review as they are similar to previous changes (1)
  • src/renderer/src/components/floating-terminal/FloatingTerminalPanel.bounds.test.tsx

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

The pull request removes source-scanning and workflow tests, consolidates renderer test coverage, and updates runtime tests to manage timers and validate tracing fields. The localization extraction script now uses runProcessSync, selects Bun when its version probe meets the configured checks, and reports process failures.


Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to 99157

No change-related blocker is established. Merge remains subject to ordinary checks.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 23.81% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 21 functions across 15 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 identifies the two primary changes: reducing repeated test work and using pinned Bun for localization extraction.
Description check Passed The description is complete and relevant. It covers the required change summary, rationale, issue exception for an internal maintainer, visual proof, testing, review status, compatibility consideratio…


  • 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 7b1242b into main Oct 9, 2026
37 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