Skip to content

perf(ci): move six more jobs to the free ARM runner - #23594

Merged
nwparker merged 2 commits into
mainfrom
nwparker/ci-more-arm-jobs
Sep 28, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/ci-more-arm-jobs

Conversation

@nwparker

@nwparker nwparker commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​18 $\color{#cf222e}{\Huge{\mathbf{−}}}$​7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​11

ELI5

We moved one CI job to ARM machines last change and it got 26% faster for free. This checks the remaining jobs one by one and moves the six that are genuinely portable — leaving alone the ones that really do need an x86 machine, with the reason recorded for each.

What Changed

Six jobs move from ubuntu-latest to ubuntu-24.04-arm. No other change.

job workflow current duration
verify mobile.yml 298s (209s of it Vitest)
shell_contracts pr.yml 81–97s
cross-version-wire pr.yml 88s
recording-pin mobile.yml 59s
managed_hook_node18 pr.yml 38–42s
codex_index_heal_contract pr.yml 27–44s

Why

Precedent: the test shards moved to ARM in #23376 (449→404s, 461→384s in the pilot), typecheck has been there since #23053, and static_analysis just measured 172s → 128s. ubuntu-24.04-arm is free for public repositories.

Each job here was checked for an actual x86 dependency rather than assumed portable:

  • cross-version-wire — tagged checkout plus in-process vitest. No docker, no browser, no binary download.
  • managed_hook_node18 — Node 18 publishes linux-arm64 and setup-node resolves it. The smoke reads out/relay/<platform>/managed-hook-runtime.js for all six platforms as data, so host arch is irrelevant.
  • codex_index_heal_contract — @openai/[email protected] publishes @openai/codex-linux-arm64 (verified with npm view).
  • shell_contracts — fish 4.9.3-1~noble is published for noble/arm64 in ppa:fish-shell/release-4 (verified against the Launchpad API), so the fatal fish-4 gate still holds; zsh is in the arm64 archive.
  • mobile.yml verify — 209s of 298s is Vitest. No Android SDK, emulator, gradle, Hermes or Watchman (start:emulator exists but CI never calls it), no docker, and the workflow uploads no artifacts at all. The five postinstall engine builds use esbuild 0.25.4, which ships linux-arm64.
  • mobile.yml recording-pin — pure Node plus git; the golden comparison explicitly masks platform.

The Ruby question on mobile verify, since it looks like a blocker

mobile/Gemfile.lock PLATFORMS lists arm64-darwin, ruby, x86_64-linux, x86_64-linux-gnu — no aarch64-linux — and the job sets BUNDLE_FROZEN: 'true'. That reads as a hard frozen-mode failure. It isn't: bundler's validate_platforms! returns early when PLATFORMS includes Gem::Platform::RUBY, which it does. All 100 locked specs are generic ruby with no platform-suffixed variants, so frozen mode needs no lockfile mutation. Verified against bundler's actual source rather than inferred. One cold bundler-cache miss is expected on the first ARM run.

What is staying on x86, and why

This is the more important half of the review.

job why it stays
package Builds --x64 targets and asserts on ..._amd64.deb / ...x86_64.rpm; its docker gates are pinned --platform linux/amd64; and it is where verify-linux-glibc-floor.cjs runs in afterPack. node-pty's .symver pin is arch-specific (GLIBC_2.2.5 on x64 vs GLIBC_2.17 on arm64), so flipping would validate the arm64 pin and stop validating the shipped x64 one — silently dropping the guard for the #9902 launch-crash class.
orcad_browser Google ships no Linux arm64 Chrome. The runner image lists only Firefox + geckodriver, CHROMEWEBDRIVER is empty, and the job fails closed without google-chrome. A downloaded Playwright chromium does not help: only the Chrome .deb carries the AppArmor userns profile on 24.04 and the provider passes no --no-sandbox.
mobile_web_app Same Chrome wall — "Resolve Chrome for the render check" is a deliberate hard failure. WebKit would be fine (webkit-ubuntu-24.04-arm64 exists in playwright-core's registry) but the Chrome render check cannot run.
git_compatibility Both alpine/git tags are multi-arch (confirmed with docker manifest inspect) and the test passes no --platform, so it would run natively. But prepare-git-compatibility's cache key carries runner.arch while the warmer in ci-cache-warmup.yml is x86, so flipping alone means a cold make git on every run. Needs an ARM warmer leg first.
relay_integration No technical blocker found, but x86 relay coverage is a documented placement (docs/reference/ci-runner-efficiency.md), it is pinned by a contract test, and the reusable workflow has no per-job runner input — so flipping the PR side would also remove x86 relay coverage from the scheduled lane, to save ~4s.
e2e and the three ssh-* lanes The ssh jobs would pass, but they would silently retarget the tested remote from linux-x64 to linux-arm64. Orca's SSH users are overwhelmingly on x64 remotes, so that trades away the coverage that matters; two of the three are already under two minutes. The e2e suite is separately non-blocking and red on main, so experimenting there yields noisy data for no user-visible gain.
unit-tests.yml plan Technically safe, but 5s of compute inside a 33s job — not worth the churn.

⚠️ Honest framing: neither a latency win nor a cost win

Two things this is not, stated plainly because I initially claimed one of them:

  1. Not a latency win. None of these jobs is on the PR critical path. The pr.yml run is bounded by the test shards at roughly 7 minutes, and those are already on ARM. This will not make a PR go green sooner. The same caveat applies to the static-analysis move in perf(ci): run static analysis on the free ARM runner #23576.
  2. Not a cost win. This repository is public, so ubuntu-latest and ubuntu-24.04-arm are both free. There are no runner-minutes saved in dollar terms — zero, in either direction.

What is actually left:

  • Queue pressure / concurrency-slot turnover. A job that finishes 26% sooner releases its concurrent-job slot sooner. docs/reference/ci-runner-efficiency.md flags queue pressure as a real constraint and perf(ci): reduce queue pressure without paid runners #23053 was explicitly about reducing it without paid runners. This is second-order but genuine at this repository's run volume.
  • mobile.yml verify (298s) is the one candidate that may genuinely determine its own workflow's wall clock, which would be a real latency win for mobile PRs. Worth reading off this PR's own run.
  • Faster feedback on an individual check that someone is watching.

If a reviewer does not find that worth the churn for the four pr.yml jobs, the defensible subset is mobile.yml verify alone.

Linked Issue

N/A — internal CI performance work, no pre-existing issue.

Visual Proof

N/A — CI configuration only, no user-facing surface.

Testing

  • pnpm test across the five relevant contract suites (pr-workflow-parallelism, ci-background-step-barriers, ci-cache-warmup-workflow, mobile-recording-pin-checkout, pr-e2e-gate-contract) → 77 passed. No contract test pins any of the six flipped labels; the ones that do pin labels (relay_integration, test_native_cache, the packaging matrix) are untouched.
  • Verified warm-linux-arm in ci-cache-warmup.yml already seeds native-runtime: node + Node 24 on ubuntu-24.04-arm, so flipped jobs using that combination restore a warm native cache.
  • Verified arm64 availability for each job's platform-bound dependency individually (npm registry for @openai/codex, Launchpad API for the fish PPA, docker manifest inspect for the alpine/git images, playwright-core's registry for WebKit).

The numbers that decide this PR are in its own run — four of the six jobs run here, and editing mobile.yml triggers the other two. I will compare per-job durations against the x86 baselines above before merging, and drop any job that regresses. managed_hook_node18 is the one I expect might: it pins Node 18, so its native-cache key is not the one warm-linux-arm seeds, and it may pay a cold compile.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

No new tests: these are runner-label changes whose correctness is demonstrated by the jobs themselves passing on the new architecture.

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

  • Coverage placement: consistent with the existing documented tradeoff — PR lanes on ARM, x86 retained on the scheduled node-next-compat.yml lane. Note that neither static_analysis nor these six have a scheduled x86 counterpart today, so their x86 coverage genuinely goes away rather than moving. Worth a follow-up to add a scheduled x86 lane if that matters; I did not want to bundle it here.
  • glibc floor: docs/reference/linux-glibc-compatibility.md governs artifacts that ship. None of these six packages anything, and package is untouched.
  • Cache keys already carry runner.arch, so no x86/arm64 entry can poison the other; a mismatch costs a miss, not a wrong result.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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 configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: ea6fa789-7fd7-45fd-b1aa-76666015c220

📥 Commits

Reviewing files that changed from the base of the PR and between 3b45de088c651469554be5a4f6b6e78a5f524154 and c007963.

📒 Files selected for processing (1)
  • .github/workflows/pr.yml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

Seven jobs across the mobile and PR workflows now run on ubuntu-24.04-arm instead of ubuntu-latest. The workflow triggers, steps, and other job settings remain unchanged. Comments describe runner choice or workload details.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to c0079

The runner changes have no demonstrated impact on product behavior or workflow success. The xterm reproduction check has not been verified on ARM, but current evidence establishes no merge-blocking failure.

Architecture Summary

Architecture risk: 🔵 Low · up to c0079

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed systems: None identified.

Architecture concerns
No architecture-level concerns identified.

Review details

Before / after behavior

  • observed — Modified behavior in .github/workflows/mobile.yml: The verify job changes its runner from ubuntu-latest to ubuntu-24.04-arm; the added comments describe the runner choice and Bundler platform context.
  • observed — Modified behavior in .github/workflows/mobile.yml: The recording-pin job changes its runner from ubuntu-latest to ubuntu-24.04-arm; the added comment describes the job’s Node and Git workload.
  • observed — Modified behavior in .github/workflows/pr.yml: codex_index_heal_contract changes runners from ubuntu-latest to ubuntu-24.04-arm; its condition and verification steps remain unchanged.
  • observed — Modified behavior in .github/workflows/pr.yml: xterm_patch_sync changes runners from ubuntu-latest to ubuntu-24.04-arm; its condition and patch verification remain unchanged.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the main change: moving six CI jobs to the ARM runner.
Description check ✅ Passed The description is complete and directly matches the template. It explains the change, rationale, platform checks, retained x86 jobs, testing, visual-proof status, AI disclosure, and checklist items.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.

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.

Follows the static-analysis move, which measured 172s to 128s. Each of these was
checked for an x86 requirement rather than assumed portable.

pr.yml:
  cross-version-wire        source-only, tagged checkout plus in-process vitest
  managed_hook_node18       Node 18 publishes linux-arm64; the per-platform
                            runtime files are read as data, so host arch is moot
  codex_index_heal_contract @openai/codex ships @openai/codex-linux-arm64
  shell_contracts           fish 4.x is published for noble/arm64, zsh is in the
                            arm64 archive, so the fatal fish-4 gate still holds

mobile.yml:
  verify                    209s of its 298s is Vitest; no Android SDK, emulator,
                            gradle, Hermes or Watchman, no docker, no artifacts.
                            Gemfile.lock lists the generic `ruby` platform, so
                            frozen bundler resolves without an aarch64-linux entry
  recording-pin             pure Node plus git; the golden comparison masks
                            `platform`

Left on x86 deliberately:
  package                   builds --x64 targets, its docker gates are
                            --platform linux/amd64, and it is where the glibc
                            floor check runs. node-pty's .symver pin is
                            arch-specific, so flipping would validate the arm64
                            pin and stop validating the shipped x64 one
  orcad_browser             Google ships no Linux arm64 Chrome
  mobile_web_app            same Chrome wall; its render check fails closed
  git_compatibility         its cache key carries runner.arch and the warmer is
                            x86, so flipping alone means a cold `make git` every
                            run
  relay_integration         no technical blocker, but x86 relay coverage is a
                            documented placement and the reusable workflow has no
                            per-job runner input
  e2e and the ssh lanes     the ssh jobs would silently retarget the tested
                            remote from linux-x64 to linux-arm64
The patch check rebuilds 4 packages x 2 builds and byte-compares against the
checked-in bundles. Ran it on darwin-arm64: exit 0, in sync at 1362743 bytes,
with the full fetch-and-rebuild path exercised rather than a short-circuit. The
bundles were generated on Linux x64 and reproduce byte-for-byte on a different
arch and a different OS, so the output is host-independent.
@nwparker
nwparker force-pushed the nwparker/ci-more-arm-jobs branch from 3b45de0 to c007963 Compare September 28, 2026 09:11
@nwparker

Copy link
Copy Markdown
Contributor Author

Measured — all seven improved, no regressions

pr.yml run 36401947... (28/28 green) and mobile.yml run 36401947870 (green):

job x86 median ARM Δ
mobile.yml verify 298s 256s −42s (−14%)
xterm_patch_sync 108s 92s −16s (−15%)
recording-pin 59s 50s −9s (−15%)
cross-version-wire 90s 83s −7s (−8%)
shell_contracts 85s 79s −6s (−7%)
managed_hook_node18 40s 34s −6s (−15%)
codex_index_heal_contract 38s 33s −5s (−13%)

managed_hook_node18 was the one I expected might regress — it pins Node 18, so its native-cache key is not the one warm-linux-arm seeds — but it improved anyway.

Calibration worth recording: these are 7–15%, not the 26% static_analysis saw. The gain tracks each job's compute fraction. xterm_patch_sync is pure compute and got 15%; cross-version-wire and shell_contracts are dominated by checkout, install and apt download, so they barely moved. Anyone extrapolating the static-analysis figure to a setup-bound job will be disappointed.

mobile.yml verify is the longest job in its workflow, so its −42s is genuine wall clock for mobile PRs. The six pr.yml flips remain off the critical path (package at 319s still had minutes of slack against the ~19min total), so their value is queue-slot turnover only — and $0, since the repo is public.

@nwparker
nwparker merged commit 0fe8974 into main Sep 28, 2026
32 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