Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

ci: every job runs on a free standard runner (#8885)

Cindy Zhang13e8c25b55a5
diff --git a/.github/scripts/ci-free-runners.test.mjs b/.github/scripts/ci-free-runners.test.mjs
new file mode 100644
index 0000000000..a475357fd6
--- /dev/null
+++ b/.github/scripts/ci-free-runners.test.mjs
@@ -0,0 +1,211 @@
+// Copyright (c) Meta Platforms, Inc. and affiliates.
+
+/**
+ * @file Contract: every workflow job runs on a free GitHub-hosted runner.
+ * @input Every workflow under .github/workflows
+ * @output Each job's runner labels against the free standard set
+ * @position Node contract for the repository's Actions spend
+ *
+ * This repository is public, so GitHub's standard hosted runners cost nothing:
+ * `ubuntu-latest` has the same four vCPUs and 16 GB as the paid
+ * `4-core-ubuntu`, and `ubuntu-24.04-arm` has four vCPUs. Paid larger-runner
+ * labels billed every minute and exhausted the yearly Actions budget, so a job
+ * may use one only with a measured need recorded in PAID_ALLOWED below.
+ */
+
+import fs from 'node:fs';
+import path from 'node:path';
+import {describe, expect, it} from 'vitest';
+import yaml from 'yaml';
+
+const dir = path.resolve(import.meta.dirname, '../workflows');
+const workflows = fs
+ .readdirSync(dir)
+ .filter(name => name.endsWith('.yml') || name.endsWith('.yaml'))
+ .map(name => [
+ name,
+ yaml.parse(fs.readFileSync(path.join(dir, name), 'utf8')),
+ ]);
+
+/** Standard hosted runners: free on a public repository. */
+const FREE = new Set([
+ 'ubuntu-latest',
+ 'ubuntu-slim',
+ 'ubuntu-24.04',
+ 'ubuntu-22.04',
+ 'ubuntu-24.04-arm',
+ 'ubuntu-22.04-arm',
+ 'macos-latest',
+ 'macos-15',
+ 'macos-14',
+ 'windows-latest',
+]);
+
+/**
+ * `workflow/job` → why that job may use a paid larger runner. Only the release
+ * path does: a dedicated pool keeps pull request load from starving a release
+ * (release-check run 40603917516 on Oct 27 never got a 4-core runner behind
+ * our own pull request shards).
+ */
+const RELEASE_POOL =
+ 'release path: a dedicated paid pool so PR load never starves a release';
+const PAID_ALLOWED = {
+ 'release.yml/publish': RELEASE_POOL,
+ 'ci.yml/release-merge-back': `${RELEASE_POOL}; byte parity with the publisher`,
+ 'ci.yml/release-bump': RELEASE_POOL,
+};
+/** Jobs that use the paid pool only for a release-check a person dispatches. */
+const RELEASE_CHECK_JOBS = [
+ 'build-storybook',
+ 'typecheck',
+ 'pr-a11y-shard',
+ 'pr-a11y-audit',
+ 'pr-a11y-guards',
+ 'pr-a11y-specs',
+ 'a11y-contracts-shard',
+ 'visual-scout',
+ 'pr-visual',
+ 'pr-rtl-shard',
+ 'pr-rtl-merge',
+];
+const RELEASE_GATE =
+ "github.event_name == 'workflow_dispatch' && inputs.operation == 'release-check' && github.triggering_actor != 'github-actions[bot]'";
+
+/**
+ * Every runner label a job can resolve to. Matrix values include `include`
+ * entries; an expression yields its quoted runner literals. Anything that does
+ * not resolve (`${{ vars.X }}`, `${{ inputs.X }}`, a computed matrix) is
+ * returned raw, so it fails the free-runner check instead of passing unseen.
+ */
+function labelsOf(job) {
+ const runsOn = job['runs-on'];
+ if (runsOn == null) return [];
+ const labels = [];
+ for (const value of [runsOn].flat().map(String)) {
+ const matrix = /^\$\{\{\s*matrix\.([a-zA-Z0-9_-]+)\s*\}\}$/.exec(value);
+ if (matrix) {
+ const key = matrix[1];
+ const m = job.strategy?.matrix;
+ const found =
+ m && typeof m === 'object'
+ ? [
+ ...[m[key] ?? []].flat(),
+ ...[m.include ?? []].flat().map(entry => entry?.[key]),
+ // A computed include can add any runner: fail closed.
+ ...(typeof m.include === 'string' ? [value] : []),
+ ]
+ .filter(item => item != null)
+ .map(String)
+ : [];
+ labels.push(...(found.length > 0 ? found : [value]));
+ } else if (value.includes('${{')) {
+ // The one expression shape the workflows use, `cond && 'a' || 'b'`,
+ // resolves to both labels; any other expression stays raw and fails.
+ const pair =
+ /^\$\{\{\s*([^|]+?)\s*&&\s*'([^']+)'\s*\|\|\s*'([^']+)'\s*\}\}$/.exec(
+ value,
+ );
+ labels.push(...(pair ? [pair[2], pair[3]] : [value]));
+ } else {
+ labels.push(value);
+ }
+ }
+ return labels;
+}
+
+describe('runner labels', () => {
+ it('finds runner labels to check', () => {
+ const all = workflows.flatMap(([, wf]) =>
+ Object.values(wf.jobs ?? {}).flatMap(labelsOf),
+ );
+ expect(all.length).toBeGreaterThan(30);
+ });
+
+ it('fails closed on a runner it cannot resolve', () => {
+ expect(labelsOf({'runs-on': '${{ vars.BIG_RUNNER }}'})).toEqual([
+ '${{ vars.BIG_RUNNER }}',
+ ]);
+ expect(
+ labelsOf({
+ 'runs-on':
+ "${{ github.event_name == 'push' && 'linux-large' || 'ubuntu-latest' }}",
+ }),
+ ).toEqual(['linux-large', 'ubuntu-latest']);
+ expect(
+ labelsOf({'runs-on': "${{ vars.LARGE_RUNNER || 'ubuntu-latest' }}"}),
+ ).toEqual(["${{ vars.LARGE_RUNNER || 'ubuntu-latest' }}"]);
+ expect(
+ labelsOf({
+ 'runs-on': '${{ matrix.os }}',
+ strategy: {
+ matrix: {
+ os: ['ubuntu-latest'],
+ include: '${{ fromJSON(needs.plan.outputs.extra) }}',
+ },
+ },
+ }),
+ ).toContain('${{ matrix.os }}');
+ expect(
+ labelsOf({
+ 'runs-on': '${{ matrix.os }}',
+ strategy: {matrix: {include: [{os: '4-core-ubuntu'}]}},
+ }),
+ ).toEqual(['4-core-ubuntu']);
+ expect(
+ labelsOf({
+ 'runs-on': '${{ matrix.os }}',
+ strategy: {matrix: '${{ fromJSON(needs.plan.outputs.matrix) }}'},
+ }),
+ ).toEqual(['${{ matrix.os }}']);
+ });
+
+ it.each(workflows)(
+ '%s runs every job on a free standard runner',
+ (name, wf) => {
+ for (const [id, job] of Object.entries(wf.jobs ?? {})) {
+ if (job.uses) continue; // a reusable workflow call names no runner
+ const key = `${name}/${id}`;
+ if (key in PAID_ALLOWED) continue;
+ if (name === 'ci.yml' && RELEASE_CHECK_JOBS.includes(id)) continue;
+ for (const label of labelsOf(job)) {
+ expect(FREE.has(label), `${key} runs on ${label}`).toBe(true);
+ }
+ }
+ },
+ );
+
+ it('puts a release-check job on the paid pool only for a dispatched release gate, keeping its architecture', () => {
+ const ci = Object.fromEntries(workflows)['ci.yml'];
+ for (const id of RELEASE_CHECK_JOBS) {
+ const [paid, free] = labelsOf(ci.jobs[id]);
+ expect(ci.jobs[id]['runs-on'], id).toBe(
+ `\${{ (${RELEASE_GATE}) && '${paid}' || '${free}' }}`,
+ );
+ expect(FREE.has(free), id).toBe(true);
+ expect(FREE.has(paid), id).toBe(false);
+ expect(free.endsWith('-arm'), `${id} keeps its architecture`).toBe(
+ paid.endsWith('-arm'),
+ );
+ }
+ });
+
+ it('keeps the release path on the paid pool', () => {
+ const byName = Object.fromEntries(workflows);
+ for (const key of Object.keys(PAID_ALLOWED)) {
+ const [name, id] = key.split('/');
+ expect(byName[name].jobs[id], key).toBeDefined();
+ expect(FREE.has(labelsOf(byName[name].jobs[id])[0]), key).toBe(false);
+ }
+ // A merge-back branch runs on the stable publisher's runner (byte parity).
+ expect(labelsOf(byName['ci.yml'].jobs['release-merge-back'])[0]).toBe(
+ byName['release.yml'].jobs.publish['runs-on'],
+ );
+ });
+
+ it('caps a pull request at two unit-test legs at a time', () => {
+ const ci = Object.fromEntries(workflows)['ci.yml'];
+ for (const id of ['test-ui', 'test-node']) {
+ expect(ci.jobs[id].strategy['max-parallel'], id).toBe(2);
+ }
+ });
+});
diff --git a/.github/scripts/ci-interaction.test.mjs b/.github/scripts/ci-interaction.test.mjs
index 016f024177..277f53ff19 100644
--- a/.github/scripts/ci-interaction.test.mjs
+++ b/.github/scripts/ci-interaction.test.mjs
@@ -120,7 +120,7 @@ describe('interaction proof routing', () => {
'build-storybook',
]);
expect(proofs['runs-on']).toBe(
- "${{ needs.interaction-scope.outputs.applies == 'true' && '4-core-ubuntu' || 'ubuntu-slim' }}",
+ "${{ needs.interaction-scope.outputs.applies == 'true' && 'ubuntu-latest' || 'ubuntu-slim' }}",
);
const guards = new Set([
'Require a decided interaction scope',
diff --git a/.github/scripts/ci-test-routing.test.mjs b/.github/scripts/ci-test-routing.test.mjs
index 1d45e1e10a..4890821cf9 100644
--- a/.github/scripts/ci-test-routing.test.mjs
+++ b/.github/scripts/ci-test-routing.test.mjs
@@ -52,8 +52,7 @@ function declaredProjects() {
* deliberate edit here.
*/
const KNOWN_RUNNERS = new Set([
- '2-core-ubuntu-arm',
- '4-core-ubuntu',
+ 'ubuntu-24.04-arm',
'ubuntu-slim',
'ubuntu-latest',
]);
@@ -113,7 +112,7 @@ describe.each(Object.entries(WORKFLOWS))(
it('gives the Node suite more than one Vitest worker', () => {
// Vitest uses one worker per CPU beyond the first: on two cores the
// suite would run one file at a time.
- expect(workflow.jobs['test-node']['runs-on']).toBe('4-core-ubuntu');
+ expect(workflow.jobs['test-node']['runs-on']).toBe('ubuntu-latest');
});
it('runs every declared Vitest project in some lane', () => {
@@ -483,7 +482,9 @@ describe('ci.yml RTL package sharding', () => {
);
expect(new Set(parts.map(leg => leg.parts)).size).toBe(1);
}
- expect(shard['runs-on']).toBe('4-core-ubuntu');
+ // Standard runner for pull requests; a dispatched release gate takes the
+ // paid release pool (ci-free-runners.test.mjs).
+ expect(shard['runs-on']).toContain("|| 'ubuntu-latest'");
// Pull requests get the 15-minute PR budget; the full release roster, 30.
expect(shard['timeout-minutes']).toBe(
"${{ github.event_name == 'workflow_dispatch' && 30 || 15 }}",
@@ -734,7 +735,7 @@ describe('ci.yml interaction proofs', () => {
const labels = [...job['runs-on'].matchAll(/'([^']+)'/g)]
.map(match => match[1])
.filter(label => label !== 'true');
- expect(labels).toEqual(['4-core-ubuntu', 'ubuntu-slim']);
+ expect(labels).toEqual(['ubuntu-latest', 'ubuntu-slim']);
for (const label of labels)
expect(KNOWN_RUNNERS.has(label), label).toBe(true);
expect(job.needs).toEqual(
diff --git a/.github/scripts/release-check-workflow.test.mjs b/.github/scripts/release-check-workflow.test.mjs
index e918984dd8..26fe4e00fd 100644
--- a/.github/scripts/release-check-workflow.test.mjs
+++ b/.github/scripts/release-check-workflow.test.mjs
@@ -780,13 +780,17 @@ describe('full release scope without PR metadata or maintenance writes', () => {
expect(contracts.env.A11Y_CONTRACT_WORKERS).toBe(4);
// Shard legs that run four pages or workers get four cores.
for (const job of ['visual-scout', 'pr-a11y-shard']) {
- expect(jobs[job]['runs-on'], job).toBe('4-core-ubuntu');
+ expect(jobs[job]['runs-on'], job).toContain(
+ "'4-core-ubuntu' || 'ubuntu-latest'",
+ );
}
expect(
step('visual-scout', 'Scout this shard of the release plan').run,
).toContain('--concurrency 4');
// Four workers need four cores; on two the CPU-bound specs time out.
- expect(jobs['a11y-contracts-shard']['runs-on']).toBe('4-core-ubuntu');
+ expect(jobs['a11y-contracts-shard']['runs-on']).toContain(
+ "'4-core-ubuntu' || 'ubuntu-latest'",
+ );
expect(contracts['continue-on-error']).toBeUndefined();
// The join fails closed: a failed shard, or an evidence set no shard
// produced, blocks release-check through a11y-contracts.
diff --git a/.github/scripts/shadcn-registry-ci.test.mjs b/.github/scripts/shadcn-registry-ci.test.mjs
index cb2619adcd..92fb15f90d 100644
--- a/.github/scripts/shadcn-registry-ci.test.mjs
+++ b/.github/scripts/shadcn-registry-ci.test.mjs
@@ -36,7 +36,7 @@ describe('ShadCN registry CI contract', () => {
it('runs as a bounded fail-closed gate and feeds the required test context', () => {
expect(job.needs).toEqual(['check-scope']);
expect(job.if).toContain('always()');
- expect(job['runs-on']).toBe('4-core-ubuntu');
+ expect(job['runs-on']).toBe('ubuntu-latest');
expect(job['timeout-minutes']).toBe(15);
expect(step('Require successful scope classification').run).toContain(
'refusing to skip required work',
diff --git a/.github/scripts/visual-maintenance-workflow.test.mjs b/.github/scripts/visual-maintenance-workflow.test.mjs
index 00c9fc16ef..92045ddd18 100644
--- a/.github/scripts/visual-maintenance-workflow.test.mjs
+++ b/.github/scripts/visual-maintenance-workflow.test.mjs
@@ -92,7 +92,9 @@ describe('CI baseline maintenance routing', () => {
'release-check',
]);
expect(visual.name).toBe('Stable visual regression');
- expect(visual['runs-on']).toBe('2-core-ubuntu-arm');
+ expect(visual['runs-on']).toContain(
+ "'2-core-ubuntu-arm' || 'ubuntu-24.04-arm'",
+ );
expect(workflow.jobs).not.toHaveProperty('baseline-publication');
expect(workflow.on).not.toHaveProperty('schedule');
});
diff --git a/.github/workflows/a11y-weekly.yml b/.github/workflows/a11y-weekly.yml
index 846d82beff..cfd4586066 100644
--- a/.github/workflows/a11y-weekly.yml
+++ b/.github/workflows/a11y-weekly.yml
@@ -37,7 +37,7 @@ concurrency:
jobs:
# Build Storybook once and audit the full story index
audit:
- runs-on: 2-core-ubuntu-arm
+ runs-on: ubuntu-24.04-arm
permissions:
contents: read
outputs:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 00d9723e0a..b567ede340 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -53,6 +53,16 @@ permissions: {}
# then push or close and reopen). A main failure is fixed forward
# (spec:AST-030 FR12, DEC-7).
#
+# Runners: every job uses GitHub's standard hosted runners, except the release
+# path's long jobs, which take a paid larger-runner pool so pull request load
+# cannot starve them: release-bump, release-merge-back on a merge-back branch
+# (chore/merge-v*), and the build and audit jobs of a release-check a person or
+# the release tooling dispatches (one dispatched by github-actions[bot] stays
+# on standard runners). The release-check's short gating and join jobs
+# (check-scope, check-components, pr-a11y, a11y-contracts, pr-rtl,
+# release-check) stay on ubuntu-slim. Arm jobs stay arm and x64 stay x64 on
+# both pools, so visual baselines and native builds see the same architecture.
+#
# One group per pull request (a fork's branch name can repeat across forks),
# so a new push cancels the superseded run. Merge-queue entries and dispatches
# get their own groups and are never cancelled by a pull request. The
@@ -301,7 +311,7 @@ jobs:
name: release-merge-back
if: ${{ github.event_name == 'pull_request' && github.base_ref == 'main' }}
# Match the stable publisher so byte parity covers the same packed manifest.
- runs-on: 4-core-ubuntu
+ runs-on: ${{ startsWith(github.head_ref, 'chore/merge-v') && '4-core-ubuntu' || 'ubuntu-latest' }}
timeout-minutes: 15
permissions:
contents: read
@@ -387,7 +397,7 @@ jobs:
docsite-test:
needs: [check-scope, docsite-browser, docsite-data]
if: ${{ github.event_name != 'workflow_dispatch' && needs.check-scope.outputs.release_bump != 'true' && always() && !cancelled() }}
- runs-on: 2-core-ubuntu-arm
+ runs-on: ubuntu-24.04-arm
timeout-minutes: 15
permissions:
contents: read
@@ -430,7 +440,7 @@ jobs:
docsite-data:
needs: [check-scope]
if: github.event_name != 'workflow_dispatch' && needs.check-scope.outputs.spec_only != 'true' && needs.check-scope.outputs.tooling_only != 'true'
- runs-on: 2-core-ubuntu-arm
+ runs-on: ubuntu-24.04-arm
timeout-minutes: 15
permissions:
contents: read
@@ -476,7 +486,7 @@ jobs:
if: github.event_name != 'workflow_dispatch' && needs.check-scope.outputs.spec_only != 'true' && needs.check-scope.outputs.tooling_only != 'true'
# The longest docsite owner; the Next.js production build uses every core
# it gets.
- runs-on: 4-core-ubuntu
+ runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
@@ -644,9 +654,13 @@ jobs:
# every leg passed.
strategy:
fail-fast: false
+ # A pull request or merge-queue entry runs at most two legs at a time,
+ # so many open pull requests cannot flood the organization's shared
+ # runner pool; the legs still all run, in two waves.
+ max-parallel: 2
matrix:
shard: [1, 2, 3, 4]
- runs-on: 4-core-ubuntu
+ runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
@@ -743,11 +757,15 @@ jobs:
# the files across the legs; `test` joins them.
strategy:
fail-fast: false
+ # A pull request or merge-queue entry runs at most two legs at a time,
+ # so many open pull requests cannot flood the organization's shared
+ # runner pool; the legs still all run, in two waves.
+ max-parallel: 2
matrix:
shard: [1, 2, 3, 4]
# Vitest runs one test file per CPU beyond the first, so the 2-core runner
# ran this suite one file at a time (~23 min). Four cores give it three.
- runs-on: 4-core-ubuntu
+ runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
@@ -918,7 +936,7 @@ jobs:
fail-fast: false
matrix:
leg: [preview, production]
- runs-on: 4-core-ubuntu
+ runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
@@ -1023,7 +1041,7 @@ jobs:
if: ${{ (github.event_name != 'workflow_dispatch' || inputs.operation == 'release-check') && always() && !cancelled() && needs.check-scope.outputs.spec_only != 'true' }}
# Every browser lane waits for this job, and the package builds and the
# Storybook build run side by side (build-packages-and-storybook.mjs).
- runs-on: 4-core-ubuntu
+ runs-on: ${{ (github.event_name == 'workflow_dispatch' && inputs.operation == 'release-check' && github.triggering_actor != 'github-actions[bot]') && '4-core-ubuntu' || 'ubuntu-latest' }}
timeout-minutes: ${{ github.event_name == 'workflow_dispatch' && 360 || 15 }}
permissions:
contents: read
@@ -1268,7 +1286,7 @@ jobs:
typecheck:
needs: [check-scope]
if: ${{ (github.event_name != 'workflow_dispatch' || inputs.operation == 'release-check') && always() && !cancelled() && needs.check-scope.outputs.spec_only != 'true' }}
- runs-on: 2-core-ubuntu-arm
+ runs-on: ${{ (github.event_name == 'workflow_dispatch' && inputs.operation == 'release-check' && github.triggering_actor != 'github-actions[bot]') && '2-core-ubuntu-arm' || 'ubuntu-24.04-arm' }}
timeout-minutes: ${{ github.event_name == 'workflow_dispatch' && 360 || 15 }}
permissions:
contents: read
@@ -1325,7 +1343,7 @@ jobs:
build-sandbox:
needs: [check-scope]
if: github.event_name == 'pull_request' && needs.check-scope.outputs.docsite_only != 'true' && needs.check-scope.outputs.spec_only != 'true' && needs.check-scope.outputs.tooling_only != 'true'
- runs-on: 2-core-ubuntu-arm
+ runs-on: ubuntu-24.04-arm
timeout-minutes: 15
permissions:
contents: read
@@ -1443,7 +1461,7 @@ jobs:
shard: [1, 2, 3]
# Four pages on four cores: on 2-core ARM runners each shard's scan took
# 11.5 minutes, the release check's slowest lane after the contracts.
- runs-on: 4-core-ubuntu
+ runs-on: ${{ (github.event_name == 'workflow_dispatch' && inputs.operation == 'release-check' && github.triggering_actor != 'github-actions[bot]') && '4-core-ubuntu' || 'ubuntu-latest' }}
permissions:
contents: read
steps:
@@ -1486,7 +1504,7 @@ jobs:
name: pr-a11y (full audit)
needs: [build-storybook, check-components, pr-a11y-shard]
if: ${{ always() && github.event_name == 'workflow_dispatch' && inputs.operation == 'release-check' && needs.check-components.outputs.has_components == 'true' }}
- runs-on: 2-core-ubuntu-arm
+ runs-on: ${{ (github.event_name == 'workflow_dispatch' && inputs.operation == 'release-check' && github.triggering_actor != 'github-actions[bot]') && '2-core-ubuntu-arm' || 'ubuntu-24.04-arm' }}
permissions:
contents: read
steps:
@@ -1543,7 +1561,7 @@ jobs:
name: pr-a11y (audit and guards)
needs: [build-storybook, check-components]
if: ((github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:heavy-lanes')) || (github.event_name == 'workflow_dispatch' && inputs.operation == 'release-check')) && needs.check-components.outputs.has_components == 'true'
- runs-on: 2-core-ubuntu-arm
+ runs-on: ${{ (github.event_name == 'workflow_dispatch' && inputs.operation == 'release-check' && github.triggering_actor != 'github-actions[bot]') && '2-core-ubuntu-arm' || 'ubuntu-24.04-arm' }}
timeout-minutes: ${{ github.event_name == 'workflow_dispatch' && 360 || 15 }}
permissions:
contents: read
@@ -1650,7 +1668,7 @@ jobs:
name: pr-a11y (browser specs)
needs: [build-storybook, check-components]
if: ((github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:heavy-lanes')) || (github.event_name == 'workflow_dispatch' && inputs.operation == 'release-check')) && needs.check-components.outputs.has_components == 'true'
- runs-on: 2-core-ubuntu-arm
+ runs-on: ${{ (github.event_name == 'workflow_dispatch' && inputs.operation == 'release-check' && github.triggering_actor != 'github-actions[bot]') && '2-core-ubuntu-arm' || 'ubuntu-24.04-arm' }}
timeout-minutes: ${{ github.event_name == 'workflow_dispatch' && 360 || 15 }}
permissions:
contents: read
@@ -1748,7 +1766,7 @@ jobs:
shard: [1, 2, 3]
# One core per worker: on two cores, four workers starved the CPU-bound
# "every expectation" specs past their timeouts.
- runs-on: 4-core-ubuntu
+ runs-on: ${{ (github.event_name == 'workflow_dispatch' && inputs.operation == 'release-check' && github.triggering_actor != 'github-actions[bot]') && '4-core-ubuntu' || 'ubuntu-latest' }}
permissions:
contents: read
steps:
@@ -1949,7 +1967,7 @@ jobs:
needs: [check-scope, interaction-scope, build-storybook]
if: ${{ github.event_name != 'workflow_dispatch' && always() && !cancelled() && needs.check-scope.outputs.spec_only != 'true' }}
# Frame evidence measures timing: four cores, one Playwright worker.
- runs-on: ${{ needs.interaction-scope.outputs.applies == 'true' && '4-core-ubuntu' || 'ubuntu-slim' }}
+ runs-on: ${{ needs.interaction-scope.outputs.applies == 'true' && 'ubuntu-latest' || 'ubuntu-slim' }}
timeout-minutes: 15
permissions:
contents: read
@@ -2025,7 +2043,7 @@ jobs:
test-build:
needs: [check-scope]
if: github.event_name != 'workflow_dispatch' && needs.check-scope.outputs.docsite_only != 'true' && needs.check-scope.outputs.spec_only != 'true' && needs.check-scope.outputs.tooling_only != 'true'
- runs-on: 2-core-ubuntu-arm
+ runs-on: ubuntu-24.04-arm
timeout-minutes: 15
permissions:
contents: read
@@ -2049,7 +2067,7 @@ jobs:
fixture-contrast:
needs: [check-scope]
if: github.event_name != 'workflow_dispatch' && needs.check-scope.outputs.docsite_only != 'true' && needs.check-scope.outputs.spec_only != 'true' && needs.check-scope.outputs.tooling_only != 'true'
- runs-on: 2-core-ubuntu-arm
+ runs-on: ubuntu-24.04-arm
timeout-minutes: 15
permissions:
contents: read
@@ -2092,7 +2110,7 @@ jobs:
shard: [1, 2, 3, 4, 5]
# Four pages on four cores: the scout is page-load bound, and on the rig
# this cut a shard's scout by a quarter against two pages on two cores.
- runs-on: 4-core-ubuntu
+ runs-on: ${{ (github.event_name == 'workflow_dispatch' && inputs.operation == 'release-check' && github.triggering_actor != 'github-actions[bot]') && '4-core-ubuntu' || 'ubuntu-latest' }}
timeout-minutes: ${{ github.event_name == 'workflow_dispatch' && 360 || 15 }}
permissions:
contents: read
@@ -2160,7 +2178,7 @@ jobs:
needs.build-storybook.result == 'success' &&
needs.check-components.result == 'success') ||
(needs.maintenance-request.result == 'success' && inputs.operation == 'capture'))))
- runs-on: 2-core-ubuntu-arm
+ runs-on: ${{ (github.event_name == 'workflow_dispatch' && inputs.operation == 'release-check' && github.triggering_actor != 'github-actions[bot]') && '2-core-ubuntu-arm' || 'ubuntu-24.04-arm' }}
timeout-minutes: ${{ github.event_name == 'workflow_dispatch' && 360 || 15 }}
permissions:
contents: read
@@ -2447,7 +2465,7 @@ jobs:
- {package: charts, part: 1, parts: 1}
- {package: richtext, part: 1, parts: 1}
- {package: vega, part: 1, parts: 1}
- runs-on: 4-core-ubuntu
+ runs-on: ${{ (github.event_name == 'workflow_dispatch' && inputs.operation == 'release-check' && github.triggering_actor != 'github-actions[bot]') && '4-core-ubuntu' || 'ubuntu-latest' }}
timeout-minutes: ${{ github.event_name == 'workflow_dispatch' && 30 || 15 }}
permissions:
contents: read
@@ -2618,7 +2636,7 @@ jobs:
(needs.check-components.outputs.has_rtl_components == 'true' ||
needs.check-components.outputs.has_rtl_harness == 'true' ||
needs.check-components.outputs.force_full_component_audits == 'true')
- runs-on: 2-core-ubuntu-arm
+ runs-on: ${{ (github.event_name == 'workflow_dispatch' && inputs.operation == 'release-check' && github.triggering_actor != 'github-actions[bot]') && '2-core-ubuntu-arm' || 'ubuntu-24.04-arm' }}
timeout-minutes: 15
permissions:
contents: read
diff --git a/.github/workflows/cli-smoke-test.yml b/.github/workflows/cli-smoke-test.yml
index 344e5f72ba..1b939d0373 100644
--- a/.github/workflows/cli-smoke-test.yml
+++ b/.github/workflows/cli-smoke-test.yml
@@ -19,7 +19,7 @@ concurrency:
jobs:
smoke-test:
- runs-on: 2-core-ubuntu-arm
+ runs-on: ubuntu-24.04-arm
# PR CI's budget is 15 minutes (see ci.yml).
timeout-minutes: 15
permissions:
diff --git a/.github/workflows/codemod-verify.yml b/.github/workflows/codemod-verify.yml
index 18c576ee90..98ebfbbcbe 100644
--- a/.github/workflows/codemod-verify.yml
+++ b/.github/workflows/codemod-verify.yml
@@ -27,7 +27,7 @@ concurrency:
jobs:
verify-codemods:
- runs-on: 2-core-ubuntu-arm
+ runs-on: ubuntu-24.04-arm
permissions:
contents: read
pull-requests: write
diff --git a/.github/workflows/crowdin-download.yml b/.github/workflows/crowdin-download.yml
index a28e5149ac..ee600792eb 100644
--- a/.github/workflows/crowdin-download.yml
+++ b/.github/workflows/crowdin-download.yml
@@ -35,7 +35,7 @@ concurrency:
jobs:
validate:
- runs-on: 4-core-ubuntu
+ runs-on: ubuntu-latest
permissions:
contents: read
steps:
diff --git a/.github/workflows/crowdin-upload.yml b/.github/workflows/crowdin-upload.yml
index cabd0a4a37..26c2da9814 100644
--- a/.github/workflows/crowdin-upload.yml
+++ b/.github/workflows/crowdin-upload.yml
@@ -19,7 +19,7 @@ permissions: {}
jobs:
upload:
- runs-on: 4-core-ubuntu
+ runs-on: ubuntu-latest
permissions: {}
steps:
# File-level context is a field on the Crowdin file record, and a
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 25d604fb50..be6e9707d3 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -73,7 +73,7 @@ jobs:
fail-fast: false
matrix:
shard: [1, 2, 3, 4]
- runs-on: 4-core-ubuntu
+ runs-on: ubuntu-latest
permissions:
contents: read
steps:
@@ -100,7 +100,7 @@ jobs:
shard: [1, 2, 3, 4]
# Vitest runs one test file per CPU beyond the first, so the 2-core runner
# ran this suite one file at a time (~23 min). Four cores give it three.
- runs-on: 4-core-ubuntu
+ runs-on: ubuntu-latest
permissions:
contents: read
steps:
@@ -119,7 +119,7 @@ jobs:
# Running them here closes that gap and blocks a broken deploy.
typecheck:
needs: [main-commit]
- runs-on: 2-core-ubuntu-arm
+ runs-on: ubuntu-24.04-arm
permissions:
contents: read
steps:
diff --git a/.github/workflows/internal-registry.yml b/.github/workflows/internal-registry.yml
index cf00a8d224..ab21a11865 100644
--- a/.github/workflows/internal-registry.yml
+++ b/.github/workflows/internal-registry.yml
@@ -24,7 +24,7 @@ concurrency:
jobs:
dependency-check:
- runs-on: 4-core-ubuntu
+ runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index dd40799f80..ead77f8c09 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -18,7 +18,7 @@ concurrency:
jobs:
lint:
- runs-on: 2-core-ubuntu-arm
+ runs-on: ubuntu-24.04-arm
permissions:
contents: read
@@ -145,7 +145,7 @@ jobs:
run: node packages/cli/scripts/generate-cli-readme.mjs --check
# The full pass, type-aware rules over packages/core/src included, needs
- # about 1.9 GB of heap on main. Node's default limit on this 8 GB runner
+ # about 1.9 GB of heap on main. Node's default limit on this 16 GB runner
# is about 2 GB, so a pull request that adds a few percent of source can
# run it out of memory. 4 GB keeps the pass under half the runner's RAM
# (3.3 GB peak RSS measured) and spends less time in GC.
diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml
index ada3a83bc6..5f37af3a24 100644
--- a/.github/workflows/pr-comment.yml
+++ b/.github/workflows/pr-comment.yml
@@ -297,7 +297,7 @@ jobs:
needs.resolve.outputs.valid == 'true' &&
needs.resolve.outputs.spec_only != 'true' &&
needs.resolve.outputs.tooling_only != 'true'
- runs-on: 2-core-ubuntu-arm
+ runs-on: ubuntu-24.04-arm
permissions:
pull-requests: write
actions: read
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index ed1a87ad6a..6caaaa4ae4 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -189,7 +189,7 @@ jobs:
canary:
name: Publish canary to npm
if: github.event_name == 'push'
- runs-on: 4-core-ubuntu
+ runs-on: ubuntu-latest
# Dedicated group, cancel-in-progress so a newer main push supersedes an
# in-flight canary. Independent of the stable group, so this can never
# cancel or starve a stable dispatch.
diff --git a/.github/workflows/rtl-weekly.yml b/.github/workflows/rtl-weekly.yml
index c1af6b236d..2c462812fd 100644
--- a/.github/workflows/rtl-weekly.yml
+++ b/.github/workflows/rtl-weekly.yml
@@ -32,7 +32,7 @@ concurrency:
jobs:
# Build Storybook once and audit the full story index
audit:
- runs-on: 2-core-ubuntu-arm
+ runs-on: ubuntu-24.04-arm
permissions:
contents: read
outputs:
diff --git a/.github/workflows/vibe-screenshots.yml b/.github/workflows/vibe-screenshots.yml
index a7d7cbc12c..eebc58eb7b 100644
--- a/.github/workflows/vibe-screenshots.yml
+++ b/.github/workflows/vibe-screenshots.yml
@@ -22,7 +22,7 @@ permissions: {}
jobs:
build-previews:
name: Build Previews
- runs-on: 2-core-ubuntu-arm
+ runs-on: ubuntu-24.04-arm
permissions:
contents: read
steps:
@@ -56,7 +56,7 @@ jobs:
screenshot:
name: Capture Screenshots
needs: build-previews
- runs-on: 2-core-ubuntu-arm
+ runs-on: ubuntu-24.04-arm
permissions:
contents: read
steps: