Skip to content

Commit b323410

Browse files
committed
ci(test-shards): cut the CLI into 4 slices, re-derived by pin 3c on the 2026-10-26 refresh
The refreshed dataset measures @objectstack/cli at 2697.45s. At 3 slices one slice is 899s, past 1.3x the heaviest other serial task (@objectstack/metadata-protocol, 670.12s, so 871s), and pin 3c refuses the refresh. At 4 a slice is 674s and meets; 3 does not, so 4 is the smallest. PREVIOUS_FILE_SHARDED_PACKAGES carries the outgoing {cli: 3}, so the refresh lane still decodes the 3-slice summaries retained from before this change. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NPH84ZP1jWcst3tpRwfrJL
1 parent b389ba0 commit b323410

1 file changed

Lines changed: 23 additions & 6 deletions

File tree

‎scripts/partition-test-shards.mjs‎

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ const TIMINGS_PATH = path.join(REPO_ROOT, 'scripts', 'test-shard-timings.json');
162162
// them by that same wall model (WHOLE_LEG_PARALLELISM), so a slice shard no
163163
// longer carries a whole-package leg ahead of its slice; on the committed
164164
// dataset's full list the predicted steps move from 1277s on the three slice
165-
// shards (643s elsewhere) to 966s on the slice shards and 830s elsewhere.
165+
// shards (643s elsewhere) to 966s on the slice shards and 830s elsewhere. On
166+
// the 2026-10-26 refresh, with the CLI cut into 4 slices (pin 3c, below), all
167+
// eight read ~738s.
166168
export const SHARD_COUNT = 8;
167169

168170
// The acceptance bound #10472 set: the slowest shard within ~1.3x the mean.
@@ -360,10 +362,23 @@ export function timingModeNote(event) {
360362
// n = 2 869.44s 1.52x still the floor
361363
// n = 3 579.63s 1.01x meets -- spec's task is the floor
362364
//
363-
// So n = 3, and pin 3c holds it there. Slices are placed at their PLAIN weight
364-
// (partition() is unchanged), so every bin keeps the density the whole-package
365+
// So n = 3, and pin 3c held it there. Slices were placed at their PLAIN weight
366+
// (partition() unchanged), so every bin kept the density the whole-package
365367
// split had -- see densityCap() for the hard limit on that and its pin.
366368
//
369+
// RE-DERIVED AT 4 (#25870), on the 14-run refresh of 2026-10-26 (newest run
370+
// 40272142430): the CLI at 2697.45s. `@objectstack/spec` (1168.98s) and
371+
// `@objectstack/runtime` (793.70s) each run as two tasks, so the heaviest
372+
// other serial task is `@objectstack/metadata-protocol`'s 670.12s, and a slice
373+
// must sit within 1.3 x 670.12 = 871.16s.
374+
//
375+
// n = 3 899.15s 1.34x still the floor -- pin 3c refused 3
376+
// n = 4 674.36s 1.01x meets -- metadata-protocol is the floor
377+
//
378+
// Since #25870 partition() places a slice at its wall share rather than its
379+
// plain weight (WHOLE_LEG_PARALLELISM); `total`, and so the density cap, still
380+
// reads plain sums.
381+
//
367382
// ⛔ THE COUNT IS CONFIGURED; WHETHER A RUN SLICES IS DECIDED BY THAT RUN. A
368383
// pull_request or merge_group run splits its own affected set, so planShards()
369384
// asks, of the run's own list, whether a configured package is that run's
@@ -384,7 +399,7 @@ export function timingModeNote(event) {
384399
// a change to what that generator can DECODE, which is why the map it replaced
385400
// is kept below.
386401
export const FILE_SHARDED_PACKAGES = Object.freeze({
387-
'@objectstack/cli': 3,
402+
'@objectstack/cli': 4,
388403
});
389404

390405
// THE MAP AS IT STOOD BEFORE ITS LAST CHANGE, read only by the generator's
@@ -412,8 +427,10 @@ export const FILE_SHARDED_PACKAGES = Object.freeze({
412427
// `test-core-run-summary-*`, #25771), so four days after that PR lands no
413428
// retained summary predates the change and this map decodes nothing.
414429
// The outgoing map of #22075's third round was empty -- the runs before it
415-
// carried no slice -- so this one is empty too.
416-
export const PREVIOUS_FILE_SHARDED_PACKAGES = Object.freeze({});
430+
// carried no slice. #25870 raised the CLI from 3 slices to 4, so this holds 3.
431+
export const PREVIOUS_FILE_SHARDED_PACKAGES = Object.freeze({
432+
'@objectstack/cli': 3,
433+
});
417434

418435
// The item grammar. A shard item is a package (`@objectstack/cli`) or a SLICE
419436
// of one (`@objectstack/cli 1/2`), and this pair of functions is the only place

0 commit comments

Comments
 (0)