Repository navigation
perf(ci): Bun 测试四分片并采集文件耗时 - #3500
Merged
deepcoldy merged 6 commits intoNov 17, 2026
Merged
Conversation
Co-authored-by: TRAE CLI <[email protected]>
fangyeqing
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
November 16, 2026 03:16
- 空分片(片数多于文件数)此前无测试:摘掉 runner 的空片拒绝守卫后会 exit 0 且报告 complete=true、打印 0/0 files green,属假绿形状;新增 真实 runner 用例钉住 exit 1 且报告保持不完整。 - PR 描述列出的「截断 JSON」场景此前无对应用例;新增 merge CLI 用例, 确认截断报告让合并失败且不写出合并产物。 Co-Authored-By: Claude Fable 5 <[email protected]>
Owner
|
首审代修(仅测试,src/ 零改动),追加 commit 23417a1: 变异验证发现一处测试缺口—— 本次补两个真实 runner / CLI 用例:
双腿(vitest/Node 与 bun test)各 16/16、6/6 通过,typecheck 通过;空分片用例经反向变异确认会咬红。以上为自动评审的初步意见,最终以维护者审阅为准。 |
Co-authored-by: TRAE CLI <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>
Co-authored-by: TRAE CLI <[email protected]>
Owner
|
评审进展同步(自动评审的初步意见,最终以维护者审阅为准):
后续:新 head CI 首跑全绿并经第二道评审复核增量后即可合入。 |
This was referenced Nov 17, 2026
Owner
|
已合入 master(52a6e812a),感谢贡献!四分片把 Bun 全量测试的墙钟从约 50 分钟压到最慢一片 17 分钟左右,汇总侧的同运行/同提交/文件集合指纹校验也把「分片漏跑或重复跑」的假绿路径封死了。 后续跟进(不影响本次合入):
欢迎继续贡献。 |
deepcoldy
pushed a commit
to xushulong-solo/botmux
that referenced
this pull request
Nov 17, 2026
合入 master 的 deepcoldy#3528/deepcoldy#3515/deepcoldy#3526/deepcoldy#3500/deepcoldy#3534;与本 PR 的 worker.ts、 dashboard.ts 改动区段非相邻,merge-tree 无冲突。合并树 tsc/build、 vitest 20 文件 746 项、bun 18 文件 474 项全绿。 Co-Authored-By: Claude Fable 5 <[email protected]>
|
🚀 Released in v3.59.19 |
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.
Bun 全量测试原先在一个 runner 上逐文件启动进程,耗时约 46–51 分钟。将同一测试集合分到四个独立 runner,保留每文件一个进程的隔离,并采集实际文件耗时供后续校准。
bun-test。汇总要求四片全部成功,再核对运行/提交身份、文件集合、实际执行数及没有遗漏或重复;上传独立耗时表并展示最慢十个文件。影响范围为 CI、测试 runner、网络重试工具及测试夹具;对比当前 master 的运行时源码没有修改。文档覆盖单片复现与通过普通评审更新 Bun 耗时表的流程。
撤回前提交
19f38027a的验证记录:19f38027的 完整 CI 全绿,用时 25分01秒,14 项检查全部成功。bun run build通过。CI 重试/二进制/分片回归 92/92 通过,重试工具在 Bun 上 66/66 通过;六个启动确认场景在 Node 与 Bun 上都通过。本次追加提交
55a80b520仅撤销启动确认测试中新增的 10 行等待,目标文件恢复到该修复前的版本。统一的两个启动用例计时修复由独立 PR #3522 处理。Bun 分片、耗时采集和 Docker 下载重试保留。本次撤回验证:
bun run build(含 typecheck)通过;Node/Vitest 与 Bun 1.4.4 的启动确认集成测试各 1/1 通过,每次覆盖原有六个场景;git diff --check通过,单文件删除 10 行。当前提交的完整 CI 以新 head 的首次运行结果为准。