perf: Keep the slowest E2E shards stable and balanced

This commit is contained in:
Oleg Isonen committed 2026-11-13 18:03:47 +00:00
1 parent 96c603842e
commit d54499e6c9
3 files changed
+7 -3

No files matched your search

+5 -1
View File
@@ -45,7 +45,11 @@ runs:
E2E_TEST_SHARD: ${{ inputs.shard }}
E2E_TEST_PARTITION: ${{ inputs.partition }}
run: |
args=(--workers=2)
workers=2
if [ "$E2E_TEST_SHARD" = "shard-5" ]; then
workers=1
fi
args=(--workers="$workers")
if [ -n "$E2E_TEST_PARTITION" ]; then
args+=(--shard="$E2E_TEST_PARTITION")
fi
+2 -2
View File
@@ -92,8 +92,8 @@ each invocation.
declaration order by default.
CI discovers isolated Playwright shards from filename tags. Each shard uses
two workers, and files are assigned by measured CI duration to keep the slowest
job short:
two workers, except shard 5 uses one to avoid overlapping MCP browser launches.
Files are assigned by measured CI duration to keep the slowest job short:
```txt
pages-actions.[shard-3].e2e.ts