Repository navigation
ci: use ARM unit runners, overlap web builds, and reuse verifier fixtures - #23376
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
🚧 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; 6 remain after this review. 📝 WalkthroughWalkthroughPR unit tests and native-cache preparation use ARM runners. Scheduled x86 workflows prepare caches and run unit tests on Node 24 and 26, and relay integration covers configured Node versions. The Linux package job runs the web-client build in the background and joins it before package unpacking. The Windows installer process probe runs in a separate step before Windows-specific boundary tests. Mobile bundle tests use shared fixtures for snapshots, copies, and mutation-isolation checks. The WebRTC probe test now performs its packet-observation delay and peer closure from the host process. Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to The CI scheduling and test changes have no established merge-blocking issue; normal CI checks remain appropriate. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The review found no demonstrated expansion of production access or weakening of CI credentials. The main design tradeoff is that some x86 unit coverage moves from PR checks to a scheduled run. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 8 files. (2 skipped: 2 unsupported.)
✨ 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 |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- ARM PR unit shards:
pr.ymlmoves the Node 24 native-cache primer and the reusable shardedtestjob toubuntu-24.04-arm;unit-tests.ymlgains arunnerinput (defaultubuntu-latest) so every other caller stays x86. - Daily x86 coverage retained:
node-next-compat.yml(renamed) now primes and runs both Node 24 and 26 on x86, andrelay_integrationfans out over allinputs.node_versionsinstead of only the first entry. - ARM cache warmer:
ci-cache-warmup.ymladdswarm-linux-armonubuntu-24.04-armto seed the arm64 native and pnpm cache keys frommain. - Overlapped web projection: the package job runs
build:web-from-rendereras a background step (web-client) and joins it withlinux-package-toolsbefore packaging. - Shared mobile verifier fixture: new
mobile-web-app-bundle-test-fixture.mjsholds the scratch/snapshot helpers; verifier tests copy the cached, complete bundle tree instead of rebuilding.
I traced the load-bearing invariants and they hold: the native cache key carries runner.arch plus the /etc/os-release scope and the pnpm store key carries os.arch(), so arm64 and x86 cannot cross-restore (install-node-dependencies/action.yml:87, :179). copyWrittenBundle reproduces the full tree because buildMobileWebAppBundle writes the entry document plus every asset through writeMobileWebBundleTree, and files is exactly manifest.json + manifest.assets[].path — no other files exist on disk. out/web (web client) and out/mobile-web (mobile bundle) are independent, and the wait correctly precedes packaging while web-client starts after Build package inputs produced out/renderer. The barrier test change (4 pending in package, plus the new web-client join assertion) is consistent with the step order.
ℹ️ PR unit coverage is now arm64-only
The one semantic shift worth stating for the record: pull requests no longer run unit shards on x86, so an x86-only unit regression would not surface until the next daily run. This is a deliberate, measured placement tradeoff that the PR description already documents, and x86 native/package/relay gates still run per PR. No change requested.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Host-clocked WebRTC packet observation: the egress probe now keeps its
RTCPeerConnectiononglobalThisand moves the three-second observation wait plus the peer close into Electron main, so hidden-renderer timer throttling can no longer stretch the probe past its 20s timeout. The packet assertions, drain window, and deadline are unchanged.
The change is sound: the injected script still awaits setLocalDescription before returning, the peer stays reachable through globalThis for the follow-up close, and the STUN packets were already counted in main, so the observation window is now driven by an unthrottled clock without weakening the baseline.packets > 0 / protectedGuest.packets === 0 assertions.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
ℹ️ No critical issues — one documentation nit inline.
Reviewed changes
- Windows CIM probe split into its own step:
package_windowsnow runsnsis-process-check.test.mjsin a dedicatedTest Windows installer process probestep before the concurrentTest Windows-specific boundariessuite, keeping coldGet-CimInstancestartup off a loaded runner. - Registration guard reads both lane steps:
win32-test-lane-registration.test.mjsreplaces the singleWINDOWS_LANE_STEPconstant with aWINDOWS_LANE_STEPSlist and unions both steps' vitest argv intolaneFiles. - Ordering assertion added:
client-hosted-browser-package-coverage.test.mjspins probe-before-boundaries and asserts the probe step is not backgrounded. - Docs updated:
ci-runner-efficiency.mdrecords the schedule change and the still-unproven root cause of the probe timeout.
I verified the guard still finds the probe file through the second step and that the boundaries step no longer lists it, so the test runs exactly once. Both changed config test files pass locally (35 tests).
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
| `The "${WINDOWS_LANE_STEP}" step no longer invokes vitest; this guard is stale.` | ||
| ) | ||
| } | ||
| const runs = WINDOWS_LANE_STEPS.map((name) => { |
There was a problem hiding this comment.
This function now reads two lane steps, but the JSDoc directly above (/** The vitest argv of the one Windows job's one curated-file step. */) and the module header at lines 22–25 still describe a single curated-file step. Worth updating both to the two-step lane so the guard's stated contract matches its behavior.

ELI5
PR tests use a faster hosted CPU architecture, while package and mobile checks avoid waiting for independent work or rebuilding identical fixtures.
What Changed
Run the same eight Node 24 unit shards and their native-cache primer on Ubuntu ARM. Add a matching main-branch cache warmer. Relay integration and platform/package gates keep x86 runners.
Preserve full x86 Node 24 and Node 26 coverage on the daily workflow, including relay integration for both versions. This changes the PR unit architecture; it does not remove tests, assertions, isolation, or timeouts.
Overlap Linux web-client projection with the independent mobile bundle build; packaging waits for both.
Give mobile verifier tests isolated copies of their existing starting-bundle snapshot. The verifier still creates two fresh builds, and source-edit/build-determinism tests still rebuild independently.
Observe the WebRTC packet interval from Electron main so hidden renderer timers cannot delay the probe. Run the Windows installer CIM probe before the concurrent native suite. Keep all packet, policy, and deadline assertions.
Why
The unit timing baseline was already balanced; runner speed varied more than assigned work. ARM pilots improved complete job time as well as test time. Explicit waits and fixture copies remove redundant waiting/work without increasing shard or worker counts.
Linked Issue
None.
Visual Proof
N/A — CI and test fixtures only.
Testing
Review
Notes
Hosted timing samples exclude queue time. Daily x86 unit coverage is retained, but PR unit coverage moves to ARM; x86 native, package, and relay checks continue on PRs. Additional daily Node 24 and hourly ARM cache jobs trade a bounded amount of scheduled work for shorter PR checks.
Earlier validation failed a hidden-renderer WebRTC timeout and a Windows CIM query timeout. The exact original WebRTC cause did not reproduce in isolated or four-concurrent probes. The final changes remove renderer-clock dependence and separate CIM startup from native test load; they do not increase deadlines or classify the original failures as harmless.
Checklist