Repository navigation
ci: master 上的 CI 不再被下一次合入取消 - #2636
Merged
Merged
Conversation
concurrency 的 cancel-in-progress 对所有事件都是 true,master 每合入一次就取消上一次 正在跑的 CI,10-30 02:25 起连续一整天没有一次跑完。改成只对 pull_request 取消:PR 推新提交照旧替换旧 head 的运行;master 上正在跑的跑完,排队的只留最新一次。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
October 31, 2026 14:23
#2636 把 cancel-in-progress 改成按事件求值后,没有机器校验能防止将来被 改回常量 true(master run 又会被每次合入取消、整天没有一次全绿)或给 on: 加 merge_group 而取到错误默认值。按 GitHub Actions 表达式语义逐触发器求值: pull_request→true、push→false;group 用各事件真实 ref 插值后断言 PR 与 master 不同组;on: 的键集合必须与已登记集合完全一致,新触发器必须显式表态。 变异:常量 true(bun/vitest 双腿红)、加 merge_group(键集红)、条件写反 (两条 per-trigger 红)。 Co-Authored-By: Claude Code <[email protected]>
|
@deepcoldy 合入 master 后的 Midscene E2E 失败:Feishu live Midscene 失败。 这次运行覆盖 0cbabc8…1a2adea67(5 个提交),同批合入的还有 #2646 #2653 #2651 #2640,失败不一定由本 PR 引起。
|
This was referenced Nov 1, 2026
|
🚀 Released in v3.56.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.
问题
ci.yml的concurrency.cancel-in-progress: true对所有事件生效,master 每合入一次就把上一次还在跑的 CI 取消。10-30 02:25(0345cc5f1)之后连续一天没有一次 master CI 跑完,合入后的最终树一直没有完整 CI 兜底,部署也没法以「master 全绿」为准。改动
cancel-in-progress: ${{ github.event_name == 'pull_request' }}:验证
on只有pull_request和 master 的push,表达式只在这两种事件下求值。对老用户
只改 CI 调度,不碰 botmux 运行时。
🤖 Generated with Claude Code