[llvm] [infra] Exclude libc config files from RISC-V label (PR #205407)

Sam Elliott via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 23 17:55:47 PDT 2026


https://github.com/lenary updated https://github.com/llvm/llvm-project/pull/205407

>From d38c6909e96026604db10307dbb097efa4de1330 Mon Sep 17 00:00:00 2001
From: Sam Elliott <aelliott at qti.qualcomm.com>
Date: Tue, 23 Jun 2026 12:09:47 -0700
Subject: [PATCH 1/2] [infra] Exclude libc config files from RISC-V label

Currently, almost every single new function in libc is tagged with
`backend:RISC-V` because the configurations in `libc/config/**/riscv`
are changed when adding a function.

The intention of this PR is to exclude only changes to `libc/config`
which touch `riscv` paths from being tagged. There are other
files/directories in libc which contain risc-v specific code, which
should continue to be tagged with `backend:RISC-V`.

I'm not 100% sure of the syntax here, but I based this PR on this
example in the labeller readme:
https://github.com/actions/labeler/blob/f612d9ad188e81643862c2de70f57fbb1d17abd1/README.md?plain=1#L141-L145
---
 .github/new-prs-labeler.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.github/new-prs-labeler.yml b/.github/new-prs-labeler.yml
index b51d2c197c762..2f6d5b4b9390a 100644
--- a/.github/new-prs-labeler.yml
+++ b/.github/new-prs-labeler.yml
@@ -1082,12 +1082,16 @@ backend:MIPS:
       - '**/*Mips*/**'
 
 backend:RISC-V:
+- all:
   - changed-files:
     - any-glob-to-any-file:
       - '**/*riscv*'
       - '**/*RISCV*'
       - '**/*riscv*/**'
       - '**/*RISCV*/**'
+    # Exclude tagging libc config changes
+    - all-globs-to-all-files:
+      - '!libc/config/**'
 
 backend:Xtensa:
   - changed-files:

>From 2f73fadac3313998dff001d6933255a3aafd791b Mon Sep 17 00:00:00 2001
From: Sam Elliott <aelliott at qti.qualcomm.com>
Date: Tue, 23 Jun 2026 17:55:29 -0700
Subject: [PATCH 2/2] Update to use all-globs-to-any-file

---
 .github/new-prs-labeler.yml | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/.github/new-prs-labeler.yml b/.github/new-prs-labeler.yml
index 2f6d5b4b9390a..ddf0f604bbcfa 100644
--- a/.github/new-prs-labeler.yml
+++ b/.github/new-prs-labeler.yml
@@ -1082,15 +1082,9 @@ backend:MIPS:
       - '**/*Mips*/**'
 
 backend:RISC-V:
-- all:
   - changed-files:
-    - any-glob-to-any-file:
-      - '**/*riscv*'
-      - '**/*RISCV*'
-      - '**/*riscv*/**'
-      - '**/*RISCV*/**'
-    # Exclude tagging libc config changes
-    - all-globs-to-all-files:
+    - all-globs-to-any-file:
+      - '{**/*riscv**,**/*RISCV**,**/*riscv*/**,**/*RISCV*/**}'
       - '!libc/config/**'
 
 backend:Xtensa:



More information about the llvm-commits mailing list