An open source design system that's fully customizable and agent ready
TypeScript
ci: run the Node test suite on four cores (#7418)
Cindy Zhangbdb88019274c
diff --git a/.github/scripts/ci-test-routing.test.mjs b/.github/scripts/ci-test-routing.test.mjsindex 7a271c2823..f264ea30f9 100644--- a/.github/scripts/ci-test-routing.test.mjs+++ b/.github/scripts/ci-test-routing.test.mjs@@ -85,6 +85,12 @@ describe.each(Object.entries(WORKFLOWS))((file, {lanes, scopeConditional}) => {const workflow = load(file);+ 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');+ });+it('runs every declared Vitest project in some lane', () => {const projects = declaredProjects();expect(projects.length).toBeGreaterThan(0);diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 12fdc4b560..00afd017d6 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -630,7 +630,9 @@ jobs:test-node:needs: [check-scope]if: ${{ github.event_name != 'workflow_dispatch' && always() && !cancelled() && needs.check-scope.outputs.spec_only != 'true' }}- runs-on: 2-core-ubuntu-arm+ # 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-ubuntupermissions:contents: readsteps:diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.ymlindex d284287fd0..3eaee6914b 100644--- a/.github/workflows/deploy.yml+++ b/.github/workflows/deploy.yml@@ -61,7 +61,9 @@ jobs:pnpm vitest run --project ui packages/core/src/Markdown/Markdown.fr23.perf.test.ts --no-file-parallelismtest-node:- runs-on: 2-core-ubuntu-arm+ # 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-ubuntupermissions:contents: readsteps: