Repository navigation
ci(test): 分片器补路径与去重用例,耗时表不再记 0,改正分片数与重试的过时说明 - #2463
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
October 28, 2026 03:08
Owner
Author
This was referenced Oct 28, 2026
|
🚀 Released in v3.55.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#2452 评审里提出的非阻断项(首审 2 条、交叉复审 4 条),合入后一并收尾。
改了什么
scripts/update-shard-timings.mjs):耗时 < 5ms 的文件四舍五入成 0,而分片器把 0 当「未记录」、改按中位数估。写入时下限钳到 0.01s;提交的表里原有的 5 个 0 值条目同步改成 0.01。影响原本 < 0.2s,改的是语义上的不一致。test/duration-shards.test.ts):CONTRIBUTING.md还写着「CI 分 3 片」;scripts/run-unit-shard.mjs与ci.yml里关于「teardown 偶发时整片重跑一次」的注释:分片均衡后每片在 vitest 里已花 10–12 分钟,整片重跑放不进 20 分钟时限,这个偶发如果再出现,重试会以 job 超时收场,而不是重跑转绿。结果与不重试相同(都是红),不算回归;注释如实写明这一点,并说明它需要根治而不是靠这层重试。行为没改。影响面
只动测试、脚本注释、文档和耗时表里 5 个值;分片计划只在那 5 个文件的权重上有 0.0x 秒的差别。
src/零改动。验证
test/duration-shards.test.ts+ci-unit-shards+run-unit-shard+test-hygiene:vitest 43 例全绿;bun test跑duration-shards14 例全绿。moduleId查表 → 新的路径用例红;planShards的去重 → 重复路径用例红;🤖 Generated with Claude Code