Skip to content

Commit 5535ffc

Browse files
[ci] Speed up package tests by enabling parallel execution (#13601)
1 parent 75f3680 commit 5535ffc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/test-and-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ jobs:
140140
if: steps.changes.outputs.everything_but_markdown == 'true' && matrix.suite == 'packages-and-tools'
141141
# We skip @cloudflare/vitest-pool-workers tests in CI on Windows because they're very flaky. We still run the vitest-pool-workers-examples fixture, which is a comprehensive set of example tests and gives us a lot of confidence.
142142
# The @cloudflare/vitest-pool-workers tests skipped are things like watch mode, which constantly times out probably due to the github runners in use.
143-
run: pnpm run test:ci --log-order=stream --concurrency=1 --filter="./packages/*" ${{ matrix.os == 'windows-latest' && '--filter="!./packages/vitest-pool-workers"' || '' }}
143+
# Package tests are well-isolated (separate processes, temp dirs, random ports, MSW mocks) and can safely run in parallel.
144+
run: pnpm run test:ci --log-order=stream --filter="./packages/*" ${{ matrix.os == 'windows-latest' && '--filter="!./packages/vitest-pool-workers"' || '' }}
144145
env:
145146
NODE_OPTIONS: "--max_old_space_size=8192"
146147
WRANGLER_LOG_PATH: ${{ runner.temp }}/wrangler-debug-logs/

0 commit comments

Comments
 (0)