mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-26 01:39:51 +01:00
Expand release-verify serialized server tests from 5 to 9 shards (#22946)
## Thinking Path > Release verification in `.github/workflows/release-verify.yml` runs `serialized_tests` on 5 shards while PR verification runs the same suite on 9 shards. Expanding `serialized_tests` to 9 shards matches PR CI shard balance and shortens the non-oversized serialized shards on post-merge verification. ## Summary - Expand the `serialized_tests` matrix in `.github/workflows/release-verify.yml` from 5 shards (`shard_index` `0..4`, `shard_count: 5`) to 9 shards (`shard_index` `0..8`, `shard_count: 9`), matching PR verification. - Tighten the workflow unit test in `scripts/__tests__/release-verify-workflow.test.mjs` so it scopes its check specifically to the `serialized_tests` job block and asserts every `(shard_index, shard_count, shard_label)` entry from `0..8`. ## Verification - `node --test scripts/__tests__/release-verify-workflow.test.mjs .github/scripts/tests/cloud-readiness.test.mjs` (76/76 passed). ## Model Used Gemini 3.1 Pro --------- Co-authored-by: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
3b3c6e4f5f
commit
1f56bfb690
2 files changed
+32
-13
No files matched your search
@@ -552,9 +552,16 @@ test("release verify workflow covers the same split test surface as stable PR ve
|
||||
assert.deepEqual(rows.map((row) => [Number(row[1]), Number(row[2])]),
|
||||
Array.from({ length: count }, (_, index) => [index, count]));
|
||||
}
|
||||
for (const shardIndex of [0, 1, 2, 3, 4]) {
|
||||
assert.match(verifyWorkflow, new RegExp(`shard_index: ${shardIndex}[\\s\\S]*?shard_count: 5`));
|
||||
}
|
||||
const serializedJob = verifyWorkflow.match(/ serialized_tests:\n[\s\S]*?(?=\n [A-Za-z0-9_-]+:|$)/)?.[0] ?? "";
|
||||
const serializedRows = [
|
||||
...serializedJob.matchAll(
|
||||
/shard_index: (\d+)\n\s+shard_count: (\d+)\n\s+shard_label: ([^\n]+)/g,
|
||||
),
|
||||
];
|
||||
assert.deepEqual(
|
||||
serializedRows.map((row) => [Number(row[1]), Number(row[2]), row[3].trim()]),
|
||||
Array.from({ length: 9 }, (_, index) => [index, 9, `${index + 1}/9`]),
|
||||
);
|
||||
|
||||
// workspaces-a splits with Vitest native --shard in pr.yml; release
|
||||
// verification must keep the same two-shard coverage.
|
||||
|
||||
Reference in new issue
Block a user