mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-12-01 21:05:42 +09:00
perf: test Builder shards with four workers
This commit is contained in:
1 parent
a6e97b3c4a
commit
1a0b44f446
3 files changed
+3
-2
No files matched your search
@@ -127,7 +127,7 @@ runs:
|
||||
E2E_TEST_PARTITION: ${{ inputs.partition }}
|
||||
run: |
|
||||
# Select only the E2E test files. Playwright runs setup as a dependency.
|
||||
args=(--workers=3 'e2e/tests/')
|
||||
args=(--workers=4 'e2e/tests/')
|
||||
if [ -n "$E2E_TEST_PARTITION" ]; then
|
||||
args+=(--shard="$E2E_TEST_PARTITION")
|
||||
fi
|
||||
|
||||
@@ -95,7 +95,7 @@ each invocation.
|
||||
- Keep tests in a file independent even though Playwright runs them in
|
||||
declaration order by default.
|
||||
|
||||
CI runs five isolated Playwright shards with three workers each. Files have a
|
||||
CI runs five isolated Playwright shards with four workers each. Files have a
|
||||
fixed assignment based on measured CI duration to keep the slowest job short:
|
||||
|
||||
```txt
|
||||
|
||||
@@ -115,6 +115,7 @@ test("Content templates, assets, and collection entries persist across Builder m
|
||||
page,
|
||||
anchorText: "Initial content",
|
||||
templateName: fixture.imageReplacementTemplateName,
|
||||
waitForProjectSync: false,
|
||||
});
|
||||
await waitForCanvasImage({
|
||||
page,
|
||||
|
||||
Reference in new issue
Block a user