From d886cc24865c8b6881262116e79fd414c703db09 Mon Sep 17 00:00:00 2001 From: SnapOtter Date: Sat, 16 May 2026 18:41:15 +0800 Subject: [PATCH] fix(ci): parallelize tests into 4 shards to avoid timeout The full test suite takes ~100 minutes sequentially. Split into 4 parallel shards using Vitest's --shard flag so each completes in ~25 minutes. Removed coverage from CI (was causing overhead without being reported anywhere). 30-minute timeout per shard as safety net. --- .github/workflows/ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 134b9fec..3aa0a84e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,9 +43,13 @@ jobs: - run: pnpm typecheck test: - name: Test + name: Test (${{ matrix.shard }}/4) runs-on: ubuntu-latest - timeout-minutes: 20 + timeout-minutes: 30 + strategy: + fail-fast: false + matrix: + shard: [1, 2, 3, 4] steps: - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 @@ -61,7 +65,7 @@ jobs: fi - uses: ./.github/actions/setup - - run: pnpm test:ci + - run: pnpm vitest run --reporter=verbose --shard=${{ matrix.shard }}/4 pip-audit: name: Python Dependency Audit