ci: cancel superseded runs on non-default branches #15

Closed
layue13 wants to merge 1 commits from ci/cancel-in-progress into main
pull from: ci/cancel-in-progress
Owner

把 concurrency.cancel-in-progress 从 false 改为非默认分支取消旧 run。

为什么:false 会让同一分支的新 run 排队等待上一个跑完,而不是取消它。实测(10,999 条 run 记录)中位排队:false 为 8.9 分钟,已成 true 的为 0.1 分钟(差 90 倍);当前 54% 的 run 等待超过 5 分钟。

为什么用表达式:默认分支有 10 种(master 158 / main 79 / 1.7.10 10 …),硬编码会误伤发布路径。该表达式只取消非默认分支的旧 run,默认分支仍保留串行。

已验证:在 TDLM/CustomSkinLoader-1710 上实测——push 后旧 run 立即变为 cancelled,新 run 正常接管,构建成功(PR #5)。

改动仅 1 行,不涉及构建逻辑。

把 `concurrency.cancel-in-progress` 从 `false` 改为非默认分支取消旧 run。 **为什么**:`false` 会让同一分支的新 run **排队等待**上一个跑完,而不是取消它。实测(10,999 条 run 记录)中位排队:`false` 为 8.9 分钟,已成 `true` 的为 0.1 分钟(差 90 倍);当前 54% 的 run 等待超过 5 分钟。 **为什么用表达式**:默认分支有 10 种(master 158 / main 79 / 1.7.10 10 …),硬编码会误伤发布路径。该表达式只取消非默认分支的旧 run,默认分支仍保留串行。 **已验证**:在 `TDLM/CustomSkinLoader-1710` 上实测——push 后旧 run 立即变为 `cancelled`,新 run 正常接管,构建成功(PR #5)。 改动仅 1 行,不涉及构建逻辑。
layue13 added 1 commit 2026-11-03 18:47:55 +00:00
layue13 closed this pull request 2026-11-03 19:57:59 +00:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TDLM/thaumicadditions#15