From 04d34534fdd4123c7a4c7ff211e261545788c915 Mon Sep 17 00:00:00 2001 From: Dayuan Jiang <34411969+DayuanJiang@users.noreply.github.com> Date: Thu, 8 Oct 2026 18:44:14 +0900 Subject: [PATCH] ci: run the e2e tests in six shards (#959) * ci: run the e2e tests in four shards One job ran all 300+ tests with one worker, about 20 minutes. Four jobs at once take a quarter each, still with one worker per job. * ci: six e2e shards With four, the shard of the long workspace tests took 8 minutes while the others took 4 to 5. --- .github/workflows/test.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bc8376c2..fc2d7798 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,8 +43,14 @@ jobs: run: npm --prefix packages/mcp-server run build && npm --prefix packages/mcp-server run check-package e2e: - name: E2E Tests + # Six jobs at once, each with a sixth of the tests and one worker: the + # same conditions per test, a fraction of the time + name: E2E Tests (${{ matrix.shard }}/6) runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + shard: [1, 2, 3, 4, 5, 6] steps: - uses: actions/checkout@v6 @@ -76,7 +82,7 @@ jobs: run: npm run build - name: Run E2E tests - run: npm run test:e2e + run: npm run test:e2e -- --shard=${{ matrix.shard }}/6 env: CI: true @@ -84,6 +90,6 @@ jobs: uses: actions/upload-artifact@v6 if: always() with: - name: playwright-report + name: playwright-report-${{ matrix.shard }} path: playwright-report/ retention-days: 7