Skip to content

ci: master 上的 CI 不再被下一次合入取消 - #2636

Merged
deepcoldy merged 4 commits into
masterfrom
ci/master-no-cancel
Oct 31, 2026
Merged

deepcoldy merged 4 commits into
masterfrom
ci/master-no-cancel

Conversation

@deepcoldy

Copy link
Copy Markdown
Owner

问题

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' }}:

  • PR:推新提交照旧取消旧 head 的运行,省 runner。
  • master push:正在跑的那次跑完;同组排队的只保留最新一次(GitHub concurrency 的默认行为),不会每个合入都排一次全量。

验证

  • YAML 能正常解析;on 只有 pull_request 和 master 的 push,表达式只在这两种事件下求值。
  • 行为要合入后看 master 上第一次合入是否不再取消前一次运行来确认。

对老用户

只改 CI 调度,不碰 botmux 运行时。

🤖 Generated with Claude Code

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]>
DeepCold review and others added 3 commits November 1, 2026 03:29
#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
deepcoldy merged commit 0cbabc8 into master Oct 31, 2026
14 checks passed
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

@deepcoldy 合入 master 后的 Midscene E2E 失败:Feishu live Midscene 失败。

这次运行覆盖 0cbabc8…1a2adea67(5 个提交),同批合入的还有 #2646 #2653 #2651 #2640,失败不一定由本 PR 引起。

用例 跑道 状态 失败信息
Codex prompt submission feishu-core-codex failed Node "feishu.waitForBotResponse" timed out after 300000ms.
Follow-up in the same topic keeps context feishu-core-conversation failed Reply "ACK-e2e-turn1-1793488872963 RECALL ACK-e2e-turn1-1793488872963" appeared 0 time(s) within 240000ms, expected 1 (clicked 直接开启会话 1×; re-opened 1×; repo card buttons 0 visible / 0 total, anchor m…

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

🚀 Released in v3.56.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant