Repository navigation
ci(workflow): test 分片 job 超时上限由 30 上调到 45 分钟 - #3853
Merged
Merged
Conversation
用例规模增长后,四个分片计划负载已完全均衡(各约 3251s),瓶颈 不再是分片不均,而是计划墙钟叠加 runner ±15% 冷热/争用方差后贴近 30 分钟上限。近期两个 PR 在不同分片、零断言失败的情况下被 job 超时 step-cancel:run 45630149613 shard 1/4(30m17s)与 run 45672387709 shard 4/4(30m14s),详见 #3849。 - 仅上调 test 分片 job 的 timeout-minutes 30→45,吸收 runner 方差 同时仍能约束真正挂死的分片;分片数维持 4,不增加 runner 排队压力 - bun-test 分片实测 13–21 分钟,远未到边界,30 分钟上限保持不变 - 同步更新注释,记录 20→25→30→45 的演进与本次证据 Co-Authored-By: Claude Fable 5 <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
November 25, 2026 21:01
deepcoldy
commented
Nov 25, 2026
deepcoldy
left a comment
Owner
Author
There was a problem hiding this comment.
PR #3853 复审结论:配置层面通过,无阻断项
远端 head ac9952f73204bdca90c35da072d653e467ee25ac,base 8ed85990f91a65fffe32d7d94913c460cdd2c112;单提交、单文件 .github/workflows/ci.yml(+14/-4)。
实际核验
- 行为改动只有
jobs.test.timeout-minutes: 30 → 45;其余 diff 均为注释更新。 - YAML 解析成功。将 head 的该值改回 30 后,解析出的整份 workflow 与 base 深度相等,排除隐藏结构变化。
- 四个分片仍为
[1,2,3,4],fail-fast: false、runner、测试命令及全部 test steps 与 base 一致。 - 其它时限保持:build 15、bun-test-shards 30、bun-test 聚合 10、bun-binary 30、musl 25、darwin 30。
- 触发器、权限、concurrency、test 聚合门禁均未改变;现有 CI 测试没有钉住旧 30 分钟值。
git diff --check通过;评审工作树未修改。
45 分钟仍给真正挂死的分片保留有界上限,同时不增加分片/排队规模;配置风险与本次目的匹配。
历史超时 run 的 REST 回读遇到 API 限流,本次没有把首审的日志描述当成独立验证。运行层面的修复效果仍以当前 head 的 CI 首跑为准:发布时 assign 与 darwin binary 已通过,其余 build/test/bun-test 等尚未全部完成,因此 squash 仍须等待 CI 全绿。
deepcoldy
pushed a commit
that referenced
this pull request
Nov 25, 2026
deepcoldy
pushed a commit
that referenced
this pull request
Nov 25, 2026
deepcoldy
pushed a commit
to Han-wangyu/botmux
that referenced
this pull request
Nov 25, 2026
This was referenced Nov 25, 2026
deepcoldy
pushed a commit
to Han-wangyu/botmux
that referenced
this pull request
Nov 26, 2026
|
🚀 Released in v3.59.34 |
This was referenced Nov 30, 2026
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.
背景
test分片 job 的超时上限经历过 20→25→30 分钟的演进(见 ci.yml 注释、#2986)。随着用例规模继续增长,四个分片的计划负载已完全均衡(planShards实测各约 3251s),瓶颈从分片不均变成整体墙钟叠加 runner 方差后贴近 30 分钟上限。近期两个 PR 在不同分片、零测试断言失败的情况下被 30 分钟 job 超时 step-cancel(跟踪 issue #3849):
test (1/4)30m17s 取消,同 run 其余分片 16–27 分钟全过test (4/4)30m14s 取消,同 run(1/4)19m32s、(2/4)21m21s、(3/4)26m43s 全过两次注解均为
The job has exceeded the maximum execution time of 30m0s/The operation was canceled.,前置 checkout/setup/install/build 步骤全部成功。改动
test分片 job 的timeout-minutes由 30 上调到 45,吸收 runner 冷热/PTY 争用带来的 ±15% 墙钟方差,同时仍能拦住真正挂死的分片bun-test-shards实测 13–21 分钟,远未到边界,30 分钟上限保持不变影响面与验证
.github/workflows/ci.yml,不碰任何源码、测试、依赖;无行为变更,仅放宽单 job 的时间预算关联
🤖 Generated with Claude Code