From 3c7a1418c14934787c37f4a5a6dfc50c5fc5c0c1 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 10 May 2026 16:34:54 +0200 Subject: [PATCH] github: separate concurrency group per event for kernel and packages Manual workflow_dispatch and push share the same ref on main, so they previously landed in the same concurrency group 'Build Kernel-refs/heads/main' (and the equivalent for the packages workflow). With cancel-in-progress: false for non-PR events, only one run can be pending per group: a newer queued run cancels the older pending one. That made the manual trigger unreliable in both directions. A push landing while a dispatch was queued displaced the dispatch (so the ccache reseed never ran), and dispatching while a push was queued displaced the push (so the legitimate per-commit build was lost). Adding github.event_name to the concurrency group puts pushes, dispatches, and pull_requests in separate buckets on the same ref, so they no longer compete with each other. Co-Authored-By: Claude Opus 4.7 (1M context) Signed-off-by: Hauke Mehrtens Link: https://github.com/openwrt/openwrt/pull/23283 Signed-off-by: Christian Marangi --- .github/workflows/kernel.yml | 2 +- .github/workflows/packages.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/kernel.yml b/.github/workflows/kernel.yml index d45ed6f0fc..c57b0e470a 100644 --- a/.github/workflows/kernel.yml +++ b/.github/workflows/kernel.yml @@ -25,7 +25,7 @@ permissions: contents: read concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index f26b0ee94e..6ceb3e46cc 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -25,7 +25,7 @@ permissions: contents: read concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: