mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-12-04 14:21:35 +09:00
perf: Keep the slowest E2E shards stable and balanced
This commit is contained in:
1 parent
96c603842e
commit
d54499e6c9
3 files changed
+7
-3
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
File renamed without changes.
Reference in new issue
Block a user