Repository navigation
perf(ci): move six more jobs to the free ARM runner - #23594
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: 📥 CommitsReviewing files that changed from the base of the PR and between 3b45de088c651469554be5a4f6b6e78a5f524154 and c007963. 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughSeven jobs across the mobile and PR workflows now run on Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to 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 SummaryArchitecture risk: 🔵 Low · up to The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency. Changed systems: None identified. Architecture concerns Review detailsBefore / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 |
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.
3b45de0 to
c007963
Compare
Measured — all seven improved, no regressionspr.yml run
Calibration worth recording: these are 7–15%, not the 26%
|
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-latesttoubuntu-24.04-arm. No other change.verifyshell_contractscross-version-wirerecording-pinmanaged_hook_node18codex_index_heal_contractWhy
Precedent: the
testshards moved to ARM in #23376 (449→404s, 461→384s in the pilot),typecheckhas been there since #23053, andstatic_analysisjust measured 172s → 128s.ubuntu-24.04-armis 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 andsetup-noderesolves it. The smoke readsout/relay/<platform>/managed-hook-runtime.jsfor all six platforms as data, so host arch is irrelevant.codex_index_heal_contract—@openai/[email protected]publishes@openai/codex-linux-arm64(verified withnpm view).shell_contracts— fish4.9.3-1~nobleis published for noble/arm64 inppa: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:emulatorexists but CI never calls it), no docker, and the workflow uploads no artifacts at all. The fivepostinstallengine builds use esbuild 0.25.4, which ships linux-arm64.mobile.yml recording-pin— pure Node plus git; the golden comparison explicitly masksplatform.The Ruby question on
mobile verify, since it looks like a blockermobile/Gemfile.lockPLATFORMS listsarm64-darwin,ruby,x86_64-linux,x86_64-linux-gnu— noaarch64-linux— and the job setsBUNDLE_FROZEN: 'true'. That reads as a hard frozen-mode failure. It isn't: bundler'svalidate_platforms!returns early when PLATFORMS includesGem::Platform::RUBY, which it does. All 100 locked specs are genericrubywith 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.
package--x64targets and asserts on..._amd64.deb/...x86_64.rpm; its docker gates are pinned--platform linux/amd64; and it is whereverify-linux-glibc-floor.cjsruns inafterPack. node-pty's.symverpin is arch-specific (GLIBC_2.2.5on x64 vsGLIBC_2.17on 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_browserCHROMEWEBDRIVERis empty, and the job fails closed withoutgoogle-chrome. A downloaded Playwright chromium does not help: only the Chrome.debcarries the AppArmor userns profile on 24.04 and the provider passes no--no-sandbox.mobile_web_appwebkit-ubuntu-24.04-arm64exists in playwright-core's registry) but the Chrome render check cannot run.git_compatibilityalpine/gittags are multi-arch (confirmed withdocker manifest inspect) and the test passes no--platform, so it would run natively. Butprepare-git-compatibility's cache key carriesrunner.archwhile the warmer inci-cache-warmup.ymlis x86, so flipping alone means a coldmake giton every run. Needs an ARM warmer leg first.relay_integrationdocs/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.e2eand the threessh-*lanese2esuite is separately non-blocking and red on main, so experimenting there yields noisy data for no user-visible gain.unit-tests.yml planTwo things this is not, stated plainly because I initially claimed one of them:
pr.ymlrun is bounded by thetestshards 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.ubuntu-latestandubuntu-24.04-armare both free. There are no runner-minutes saved in dollar terms — zero, in either direction.What is actually left:
docs/reference/ci-runner-efficiency.mdflags 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.If a reviewer does not find that worth the churn for the four
pr.ymljobs, the defensible subset ismobile.yml verifyalone.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 testacross 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.warm-linux-arminci-cache-warmup.ymlalready seedsnative-runtime: node+ Node 24 onubuntu-24.04-arm, so flipped jobs using that combination restore a warm native cache.@openai/codex, Launchpad API for the fish PPA,docker manifest inspectfor 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.ymltriggers the other two. I will compare per-job durations against the x86 baselines above before merging, and drop any job that regresses.managed_hook_node18is the one I expect might: it pins Node 18, so its native-cache key is not the onewarm-linux-armseeds, and it may pay a cold compile.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
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
node-next-compat.ymllane. Note that neitherstatic_analysisnor 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.docs/reference/linux-glibc-compatibility.mdgoverns artifacts that ship. None of these six packages anything, andpackageis untouched.runner.arch, so no x86/arm64 entry can poison the other; a mismatch costs a miss, not a wrong result.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)