Reduce builder E2E shards to eight

This commit is contained in:
Oleg Isonen committed 2026-11-16 14:52:36 +00:00
1 parent 2fc183121b
commit 27ff50a5a5
37 files changed
+5 -6

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ runs:
shards=$(pnpm --dir apps/builder exec tsx ./e2e/print-shards.ts)
SHARDS="$shards" node -e '
const shards = JSON.parse(process.env.SHARDS);
if (shards.length !== 9 || shards.some(({ shard, partition }, index) =>
if (shards.length !== 8 || shards.some(({ shard, partition }, index) =>
shard !== `shard-${index + 1}` || partition !== "")) {
throw new Error("Builder E2E shard matrix changed; update the workflow matrix before running CI.");
}
-1
View File
@@ -214,7 +214,6 @@ jobs:
- shard-6
- shard-7
- shard-8
- shard-9
permissions:
contents: read
+4 -4
View File
@@ -17,7 +17,7 @@ used by Preview tests.
In CI, the build job caches those compiled files. A later E2E-only change can
restore them after dependency setup; changes outside `apps/builder/e2e` still
compile Builder before the nine shards download the build artifact.
compile Builder before the eight shards download the build artifact.
The schema snapshot is generated from the regular migration pipeline and
committed at `e2e/schema/schema-<fingerprint>.sql`. When a migration or backend
@@ -95,15 +95,15 @@ each invocation.
- Keep tests in a file independent even though Playwright runs them in
declaration order by default.
CI runs nine isolated Playwright shards with three workers each. Files are
CI runs eight isolated Playwright shards with three workers each. Files are
assigned by measured CI duration to keep the slowest job short:
```txt
pages-actions.[shard-9].e2e.ts
pages-actions.[shard-8].e2e.ts
```
Every E2E filename in CI must contain one shard tag. The build job checks that
the tags match the nine shards in the workflow. Rebalance by changing filename
the tags match the eight shards in the workflow. Rebalance by changing filename
tags when measured job durations drift.
Suites may opt into parallel mode only when every worker creates uniquely named