Repository navigation
Commit 4b71a82
ci(test-shards): carry the 2026-11-02 shard-timings refresh and slice the CLI in 2 (#29856)
<!-- claude-projects-attribution: {"github_login":"marchtian"} -->
_Requested by **田騏** · [project
thread](https://claude.ai/code/project/chan_01VmuUhXU9SSUzqJYyXSmYSi?thread=cmsg_01VmuUhXU9SSUzqJYyXSmYSi9paTx1Lu8ENYwwssthfK3h)_
Part of #29777 (its second slice; the card closed on the first, PR
#29838). Replaces PR #28978.
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 改了什么:带入 2026-11-02 的分片计时刷新数据(与 PR #28978 逐字节相同),并把 CLI 的文件级切片从 4 改为
2,旧映射 {cli: 4} 移入 PREVIOUS_FILE_SHARDED_PACKAGES。
- 为什么改:新数据里 CLI 降到 1432 秒,自检的切片数推导(pin 3c)只接受 2 片(716 秒 ≤ 736.45
秒);数据与映射必须同一 PR 落地(#26186 形状),#29838 已让上限接受带声明片的切法。
- 风险与回滚:只动两个仓根脚本/数据文件,不发布任何包。回滚即 revert 本 PR,回到 4 片与旧数据。pin 3c 余量仅 20
秒,另见 finding #29826。
- 先看:`scripts/partition-test-shards.mjs` 里 FILE_SHARDED_PACKAGES
上方新增的「RE-DERIVED AT 2」推导表与两处映射。
- 两分钟验证:`node scripts/partition-test-shards.mjs --self-test`,应见
`self-test OK` 且 `file-level slices: @objectstack/cli x2`,最密分片
1553.36s,在 1455.81s 上限加 111.86s 闭包分摊之内。
- 需要你做的:无,席位落地后关闭 #28978。
## What changes
Implements the second slice of maintainer ruling record 6596963071
(option B) on #29777.
- **`scripts/test-shard-timings.json`**: the generated refresh of
2026-11-02 (72 run summaries), byte-identical to PR #28978 head
`b5b4b790` (`git diff b5b4b79 HEAD --
scripts/test-shard-timings.json` is empty). Not hand-edited.
- **`scripts/partition-test-shards.mjs`**:
- `FILE_SHARDED_PACKAGES` changes `@objectstack/cli` from 4 to 2. Pin 3c
derives it: the CLI is 1432.04 s, and the heaviest other serial task is
metadata-protocol at 566.50 s, so a slice must be within 1.3 × 566.50 =
736.45 s. At n = 1 the CLI is 1432.04 s (2.53x); at n = 2 each slice is
716.02 s (1.26x), which meets the target. The derivation table sits
above the map.
- `PREVIOUS_FILE_SHARDED_PACKAGES` = `{cli: 4}`, the outgoing map, so
the refresh lane still decodes the 4-slice summaries it keeps.
Not changed, as ruled: `ci.yml`'s `DTS_READER_SLICE` and the CLI vitest
config's `DECLARATION_READER_SLICE`.
## Verification
- `node scripts/partition-test-shards.mjs --self-test` exits 0. The bins
are 1551.96/1551.44/1553.29/1552.46/1552.43/1553.22/1551.01/1553.36 s,
within the 1455.81 s density cap plus its 111.86 s declaration-closure
allowance. The whole legs stay within 1868 s, and the CLI is cut x2.
- `dispatch-gates --commands`: 33 derived, 33 run, all exit 0. `--ran`
reads 0 NOT-MEASURED (a derived zero).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent 2a1be29 commit 4b71a82
2 files changed
Lines changed: 278 additions & 408 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
382 | 395 | | |
383 | 396 | | |
384 | 397 | | |
| |||
399 | 412 | | |
400 | 413 | | |
401 | 414 | | |
402 | | - | |
| 415 | + | |
403 | 416 | | |
404 | 417 | | |
405 | 418 | | |
| |||
427 | 440 | | |
428 | 441 | | |
429 | 442 | | |
430 | | - | |
| 443 | + | |
| 444 | + | |
431 | 445 | | |
432 | | - | |
| 446 | + | |
433 | 447 | | |
434 | 448 | | |
435 | 449 | | |
| |||
0 commit comments