Repository navigation
[CI] Reduce repeated test work and use pinned Bun for localization extraction - #26806
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughThe 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 Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to No change-related blocker is established. Merge remains subject to ordinary checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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. Comment |
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: rootpnpm 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:
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:
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
f0a47bd87949c0233bd5b7841457c86e432af3f8onnwparker/ci-capacity-continuation-20261009, based ondf922d3709128c2e399150b5da289870db12a0c2, 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
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
f0a47bd87949c0233bd5b7841457c86e432af3f8.Ordinary CI failure and qualified fix
The first ordinary run on
f0a47bd87949c0233bd5b7841457c86e432af3f8failed 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 accepted99157b8a239fac1b5f7e4e4bfe06b4ef21c8ca81, 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
99157b8a239fac1b5f7e4e4bfe06b4ef21c8ca81had 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 accepted99157b8a239fac1b5f7e4e4bfe06b4ef21c8ca81: 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.