From 5f43015c4f6b0fd8a11faca7617d55523a174946 Mon Sep 17 00:00:00 2001 From: Wenl4ng <15861868579@163.com> Date: Thu, 26 Nov 2026 17:22:00 +0800 Subject: [PATCH 1/2] fix(sync): move concurrency from workflow level to per-src job level --- .github/workflows/sync-images.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sync-images.yml b/.github/workflows/sync-images.yml index c32bf95..da98d08 100644 --- a/.github/workflows/sync-images.yml +++ b/.github/workflows/sync-images.yml @@ -5,10 +5,6 @@ on: schedule: - cron: "23 * * * *" -concurrency: - group: sync-images-${{ github.ref }} - cancel-in-progress: false - jobs: prepare: name: Prepare sync matrix @@ -26,6 +22,12 @@ jobs: name: Sync ${{ matrix.src }} needs: prepare runs-on: ubuntu-latest + # 并发控制在 job 级按 src 分组:某个慢源(如 verl/vllm-ascend 同步 2h+)只会延迟 + # 它自己的下一次同步,不会把整个 run 拖住、连坐其他镜像的同步节奏。 + # 不要提升回 workflow 级——那会让所有 src 一起等最慢的那个。 + concurrency: + group: sync-images-${{ matrix.src }}-${{ github.ref }} + cancel-in-progress: false container: image: quay.io/skopeo/stable:latest strategy: From b8059f5413625154370e0a50eda6ffad33f0fce9 Mon Sep 17 00:00:00 2001 From: Wenl4ng <15861868579@163.com> Date: Thu, 26 Nov 2026 17:27:41 +0800 Subject: [PATCH 2/2] fix(sync): drop github.ref from per-src concurrency group for hard cross-ref guarantee --- .github/workflows/sync-images.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-images.yml b/.github/workflows/sync-images.yml index da98d08..1fa8d7c 100644 --- a/.github/workflows/sync-images.yml +++ b/.github/workflows/sync-images.yml @@ -25,8 +25,13 @@ jobs: # 并发控制在 job 级按 src 分组:某个慢源(如 verl/vllm-ascend 同步 2h+)只会延迟 # 它自己的下一次同步,不会把整个 run 拖住、连坐其他镜像的同步节奏。 # 不要提升回 workflow 级——那会让所有 src 一起等最慢的那个。 + # 组 key 故意不带 github.ref:任何 ref 写的都是同一批 dest registry,跨 ref 的同 + # src 同样必须互斥,否则「同 src 不并发」在分支手动 dispatch 时会被绕过; + # 代价是在分支上手动跑同一 src 时要排队等 main 的 job 结束。 + # 另外注意:默认 queue: single 下,被更新的 pending 顶掉的 job 会以 cancelled 收场 + # (正常替换,非失败);若对 cancelled run 有告警,需排除这类情况以免误报。 concurrency: - group: sync-images-${{ matrix.src }}-${{ github.ref }} + group: sync-images-${{ matrix.src }} cancel-in-progress: false container: image: quay.io/skopeo/stable:latest