Repository navigation
perf(ci): use four ARM test workers and remove repeated compilation - #23685
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 ignored due to path filters (1)
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe relay build generates JavaScript bundles for the first platform and copies them to later platform directories. It stages patches and addons per platform and validates and hashes artifacts for each platform. The artifact-manifest test seeds platform output directories with stale companion files. The unit-test workflow limits Vitest to four workers on ubuntu-24.04-arm. The i18next-cli development dependency is updated to 1.74.2, with a patch that changes extraction-site detection in its CommonJS and ESM extractors. A test covers extraction through both exports. Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to No concrete defect is established, but the author’s stated readiness condition remains: complete final CI and the extraction-regression check before merging. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The relay build retains per-platform validation and content hashing, and no new runtime access path was found. The main security tradeoff is a narrowly scoped exception that permits a newly released localization tool before the usual waiting period. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 3 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
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.
Important
The head still contains the i18next-cli@1.74.2 bump that the description marks blocked by an unaddressed upstream extraction regression, and the extraction gate cannot fail on a changed default. The ARM-worker and relay-bundle changes are independent and look sound — splitting the localization upgrade into its own PR would let them land while the correction is tested.
Reviewed changes — initial review of all 8 commits (6 net files).
- ARM test workers —
--maxWorkers=4is appended only wheninputs.runner == 'ubuntu-24.04-arm'; the dailynode-next-compatcaller keeps its default. - Relay bundle reuse —
build-relay.mjsbuilds the six platform-independent JS bundles once and copies them into each later platform's freshly-cleaned directory; per-platform node-pty patches and the Windows process-tree addon are still staged per platform. - Stale-companion guard —
relay-artifact-manifest.test.mjsseedsstale-companion.jsinto every platform dir before the build. - i18next-cli 1.74.2 — devDependency bump, lockfile (
i18next-resources-for-ts2.1.0 → 2.1.1), and aminimumReleaseAgeExcludeentry. - Failure-preserving SHA capture —
ORCA_SHARD_SOURCE_SHA="$(...)"is split fromexportsoset -esees a failinggit rev-parse.
⚠️ The blocked localization upgrade rides along with the CI perf changes
The relay-bundle reuse and ARM-worker changes are the parts this PR is titled for, and both hold up under review: the six bundles are built with no platform-varying esbuild option (the platform is only interpolated into outDir and the Windows staging branch), bundledFilenames is captured before the patches/addon/.version are written, and esbuild output is deterministic — so copied bytes match the previous per-platform build, which the hosted 56-file comparison also confirms. The ORCA_SHARD_SOURCE_SHA split is a correct fix (export VAR="$(...)" returns the builtin's status, masking a failing git rev-parse).
That leaves the localization upgrade as the only unresolved piece. However the correction is tested, landing it separately would let the measured CI savings merge without waiting on the upstream issue, and would keep a revert of the bump from dragging the perf work with it.
Technical details
# Scope/sequencing: separate the i18next-cli change from the CI perf work
## Affected sites
- `package.json:269` / `pnpm-lock.yaml` / `pnpm-workspace.yaml:20` — the 1.74.1 → 1.74.2 bump.
- `config/scripts/verify-localization-extraction.mjs:113` — the only extraction gate; fails solely on `missingFromEnglish` / `placeholderMismatches`.
- `config/scripts/verify-localization-extraction.mjs:39-55`, `:109-111` — `fallbackDrift` (a changed default) is computed and logged but never affects the exit code.
- `config/scripts/verify-localization-catalog.mjs:445-458` and `generate-runtime-required-english-catalog.mjs:56-86` — this adjacent gate uses Orca's own TS-AST scanner, not `i18next-cli`, so it cannot observe a CLI default change either.
## Required outcome
- Do not merge while the PR description still declares the bump blocked and no correction is present in the diff.
- Decide whether the default drift the hosted run observed (six duplicate keys) is acceptable or must be corrected, and make that decision land with the bump.
## Open questions for the human
- Is the "conservative correction" a local patch to `i18next-cli` or a revert to 1.74.1? The forward plan affects whether the `minimumReleaseAgeExclude` entry should also leave with it.ℹ️ Nitpicks
.github/workflows/e2e.yml:197carries the sameexport ORCA_SHARD_SOURCE_SHA="$(git rev-parse HEAD)"idiom this PR just fixed inunit-tests.yml:86; a failinggit rev-parseis masked there too and the same split would apply.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — incremental review of the 2 commits since the prior pullfrog review (21f6d871ef, eaca8ec57b).
i18next-cli@1.74.2correction — a pnpm dist patch (bothdist/esmanddist/cjs) adds anif (code.includes('\\u')) return true;guard and widensmayContainExtractionSite's regex from a call-shaped match to a bare-identifier match over the configuredcalls/names. It is strictly conservative: it can only cause more files to be parsed, so it cannot drop keys.- Regression test —
config/scripts/localization-extraction-call-syntax.test.mjscovers eight call shapes (comments, line splits, member/optional/generic calls,$-prefixed and escaped identifiers) across ESM and CommonJS, asserting the exact key set. Seven of the eight fixtures are prefiltered out without the patch, so this is a real regression guard rather than a tautology. - pnpm wiring —
patchedDependencies+patch_hashin the lockfile and workspace; the hash is exercised end-to-end bypatched-dependencies-frozen-install.test.mjs, so a stale hash fails the frozen install loudly. - Harness cleanup — the corrected localization benchmark workflow/script added in the prior commit are removed, leaving no net pilot files.
This resolves the initial review's blocker: the extraction correction is present, tested, and the description no longer marks the PR unmergeable. The extraction gate's fallbackDrift is still report-only, but the author verified the differing defaults are attributable to upstream's intended sorted-file ordering rather than a broken extraction, so I'm not treating it as a defect here.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|

ELI5
CI repeats compilation work and leaves one ARM CPU unused by test workers. These changes make the same checks finish sooner without dropping tests or adding runners.
What Changed
ubuntu-24.04-armrunner. Other runner types keep their defaults.i18next-clifrom 1.74.1 to 1.74.2, which avoids unnecessary syntax walks during localization extraction. Its new prefilter silently drops commented calls and escaped identifiers, so a small pnpm patch keeps name matching conservative in both ESM and CommonJS. New regression tests preserve all eight supported fixture forms. Keep the lockfile change scoped to the CLI and its required resource-generator update; the fresh release has an exact-version release-age exception.Why
Hosted ARM benchmarks support each change. Compilation reuse avoids remote-cache storage and invalidation costs. Increasing workers retains process isolation and complete test coverage. A separate Node compile-cache trial had no consistent material benefit and is not included. Vitest5 saved only 1–3% and failed an existing transport/fake-clock test; esbuild, Tailwind, and lint-tool upgrades showed no material speed gain, so those versions remain unchanged.
These are component timings, not a claim that the entire CI pipeline improves by those percentages. Package builds already overlap relay work.
Linked Issue
N/A — internal CI performance work.
Visual Proof
N/A — build and CI changes only.
Testing
Review
Review covered cleanup before copying, failed-build behavior, Windows addon selection, content-hash stability, and dependency ranges. Additional syntax probes caught the upstream CLI regression; the included patch and permanent tests correct it. The unpatched dependency bump is not shipped. macOS local and Linux hosted verification completed; normal PR CI covers Windows packaging. Runtime SSH, folder-workspace, and mixed-version wire behavior are unchanged because relay output bytes match.
Agent skill upstream boundary
Checklist