Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,19 @@ jobs:

# The web suite is the largest outside the server. In the shared Test job it
# started last and ran alone for about 40s after everything else finished.
# Each shard runs on its own runner. With one worker, a single browser page ran
# every browser file in a shard and lost its connection partway through on a
# cold Vite cache; two workers split the files over two pages.
test_web:
name: Test Web
name: Test Web ${{ matrix.shard }}
needs: changes
if: ${{ !cancelled() && needs.changes.outputs.test_web != 'false' }}
runs-on: ubuntu-24.04
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4]
steps:
- name: Checkout
uses: actions/checkout@v6
Expand Down Expand Up @@ -375,11 +382,7 @@ jobs:
fi

- name: Test
# fresh processes avoid the connection loss in the full single-worker browser suite.
run: |
for shard in 1 2 3 4; do
vp run --filter @t3tools/web test --maxWorkers 1 --shard "$shard/4"
done
run: vp run --filter @t3tools/web test --maxWorkers 2 --shard ${{ matrix.shard }}/${{ strategy.job-total }}

# apps/server sets `fileParallelism: false`, so its test files run strictly
# one at a time. Sharding spreads them over separate runners instead of
Expand Down
Loading