From: Alan Maguire <almagui@kernel.org>
To: dwarves@vger.kernel.org
Cc: Alan Maguire <almagui@kernel.org>
Subject: [PATCH dwarves 3/6] CI: Scope workflow concurrency groups to the branch for push runs
Date: Mon, 16 Nov 2026 11:20:40 +0000 [thread overview]
Message-ID: <20261116112043.3831978-4-almagui@kernel.org> (raw)
In-Reply-To: <20261116112043.3831978-1-almagui@kernel.org>
test.yml and build.yml use ci-{test,build}-${{ github.head_ref }} as
their concurrency group with cancel-in-progress. github.head_ref is
only set for pull_request events, so for push and scheduled runs the
group is just "ci-test-"/"ci-build-": a push to any branch, or the
daily scheduled run, cancels in-progress push runs on every other
branch.
Fall back to github.ref when head_ref is empty so that only runs for
the same PR or branch cancel each other.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Alan Maguire <almagui@kernel.org>
---
.github/workflows/build.yml | 2 +-
.github/workflows/test.yml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 25a395f..d45b05a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -7,7 +7,7 @@ on:
- cron: '0 18 * * *'
concurrency:
- group: ci-build-${{ github.head_ref }}
+ group: ci-build-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 940dab1..8bff4e4 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -7,7 +7,7 @@ on:
- cron: '0 18 * * *'
concurrency:
- group: ci-test-${{ github.head_ref }}
+ group: ci-test-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
--
2.56.0
next prev parent reply other threads:[~2026-11-16 11:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 11:20 [PATCH dwarves 0/6] Add support for LTO kernel builds, other CI fixes Alan Maguire
2026-11-16 11:20 ` [PATCH dwarves 1/6] CI: Make kernel source fetch tolerant of git host failures Alan Maguire
2026-11-16 11:20 ` [PATCH dwarves 2/6] tests: Match BTF and DWARF functions with set operations in btf_functions.sh Alan Maguire
2026-11-16 11:20 ` Alan Maguire [this message]
2026-11-16 11:20 ` [PATCH dwarves 4/6] tests: Expect no DWARF loader threads in reproducible_build.sh when CUs are merged Alan Maguire
2026-11-16 11:20 ` [PATCH dwarves 5/6] CI: Fix ondemand workflow inputs and LLVM version in function comparison Alan Maguire
2026-11-16 11:20 ` [PATCH dwarves 6/6] CI: Add clang ThinLTO kernel build to test matrix Alan Maguire
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261116112043.3831978-4-almagui@kernel.org \
--to=almagui@kernel.org \
--cc=dwarves@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.