.github/workflows: reduce check-labels triggering#22241
Merged
crasbe merged 2 commits intoRIOT-OS:masterfrom May 5, 2026
Merged
.github/workflows: reduce check-labels triggering#22241crasbe merged 2 commits intoRIOT-OS:masterfrom
crasbe merged 2 commits intoRIOT-OS:masterfrom
Conversation
Contributor
Author
|
Okay, this can't be tested in RIOT-OS/RIOT, because the test run from on the Therefore I tested it in my local fork crasbe#1 and it works as expected. You can see that the label test was not run after adding the last commit:
|
maribu
approved these changes
May 5, 2026
Member
|
Could you try sneaking in this change: diff --git a/dist/tools/ci/can_fast_ci_run.py b/dist/tools/ci/can_fast_ci_run.py
index 8880314ef8..9f319c50b6 100755
--- a/dist/tools/ci/can_fast_ci_run.py
+++ b/dist/tools/ci/can_fast_ci_run.py
@@ -22,7 +22,7 @@ OTHER_CLASSIFIERS = [
[re.compile(r"^(drivers\/include\/.*|sys\/include\/.*)$"), "public-headers"],
[re.compile(r"^(Kconfig|kconfigs\/.*|pkg\/Kconfig|sys\/Kconfig|drivers\/Kconfig)$"), "kconfig"],
[re.compile(r"^(.*\.cff|doc\/.*|.*\.md|.*\.txt)$"), "doc"],
- [re.compile(r"^(CODEOWNERS|\.mailmap|\.gitignore|\.github|\.gitattributes)$"), "git"],
+ [re.compile(r"^(CODEOWNERS|\.mailmap|\.gitignore|\.github.*|\.gitattributes)$"), "git"],
[re.compile(r"^(\.murdock|dist\/ls\/.*|\.drone.yml)$"), "ci-murdock"],
[re.compile(r"^(\.bandit|\.drone.yml)$"), "ci-other"],
[re.compile(r"^(dist\/.*|Vagrantfile|\.clang-format|\.clang-tidy)$"), "tools"],That way it would directly test if the fixed regex would no match |
Member
|
Or maybe even diff --git a/dist/tools/ci/can_fast_ci_run.py b/dist/tools/ci/can_fast_ci_run.py
index 8880314ef8..77d66754e3 100755
--- a/dist/tools/ci/can_fast_ci_run.py
+++ b/dist/tools/ci/can_fast_ci_run.py
@@ -22,7 +22,8 @@ OTHER_CLASSIFIERS = [
[re.compile(r"^(drivers\/include\/.*|sys\/include\/.*)$"), "public-headers"],
[re.compile(r"^(Kconfig|kconfigs\/.*|pkg\/Kconfig|sys\/Kconfig|drivers\/Kconfig)$"), "kconfig"],
[re.compile(r"^(.*\.cff|doc\/.*|.*\.md|.*\.txt)$"), "doc"],
- [re.compile(r"^(CODEOWNERS|\.mailmap|\.gitignore|\.github|\.gitattributes)$"), "git"],
+ [re.compile(r"^(CODEOWNERS|\.mailmap|\.gitignore|\.gitattributes)$"), "git"],
+ [re.compile(r"^\.github/.*$"), "github"],
[re.compile(r"^(\.murdock|dist\/ls\/.*|\.drone.yml)$"), "ci-murdock"],
[re.compile(r"^(\.bandit|\.drone.yml)$"), "ci-other"],
[re.compile(r"^(dist\/.*|Vagrantfile|\.clang-format|\.clang-tidy)$"), "tools"],? |
Co-authored-by: Marian Buschsieweke <maribu@users.noreply.github.com>
Member
|
Locally it does work:
|
Contributor
Author
|
Yes, seems to work as intended 👍 |
maribu
approved these changes
May 5, 2026
Contributor
Author
|
Thanks and thanks for the quick fix too! :) |
Contributor
Author
|
Just tested this with #22240 and hitting auto merge indeed does trigger the |
Contributor
|
many Thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Contribution description
Currently the
check-labelstest creates a lot of noise as it is triggered with every push when a label is present that prevents the test from succeeding.This can be annoying for
coredevelopment, when theneeds >1 ACKlabel is present.The proposed change removes the
synchronizetrigger. This might lead to side effects where thecheck-labelstest is not executed and therefore prevents a merge, that's why I addedauto-merge-enabledas a trigger. That might affect @maribu who likes to enable Auto Merge when opening a PR :DPerhaps one of you has a better idea of what to use additionally? https://docs.github.com/de/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target
enqueuedwon't help because it can't be queued without the check.Testing procedure
I'll play around with it in this PR.Trust me, bro.
Issues/PRs references
Fixes #21099.
Declaration of AI-Tools / LLMs usage:
AI-Tools / LLMs that were used are: