summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-08-22 23:10:14 +0700
committerhathach <[email protected]>2026-08-22 23:10:14 +0700
commit050595d64f9f130783853a2342eb1114d32199e8 (patch)
tree4f4e06b386205185ea49e9af9586b6c7206c625a /tools
parent6ff0ef97702c0e6b6d17b7a8fe856b31164efe57 (diff)
ci_select: address Copilot review - anchor _META_RE, cover rule 12b
Anchor the .github file alternatives. FUNDING.yml, labeler.yml and membrowse_pr_message.j2 sat inside a group whose only `$` belonged to the workflows/ branch, so they matched as prefixes: .github/labeler.yml.bak and .github/FUNDING.yml.old were classified as metadata and would have selected nothing. No such file exists today - the workflows/ alternative was already anchored and ISSUE_TEMPLATE/ is a directory prefix on purpose. Rule 12b had no test of its own: TestNoTrackedFileIsUnclassified only proved src/typec no longer reaches rule 17, not that the answer is right. TestTypecRule pins it - non-full, every selected example under typec/, all four src/typec files answering alike, no rig board, and the set derived from CFG_TUC_ENABLED rather than hardcoded, so it follows a new typec example on its own. Verified all four fail with rule 12b removed.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ci_select.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ci_select.py b/tools/ci_select.py
index cf5a0da5b..89a0d214c 100755
--- a/tools/ci_select.py
+++ b/tools/ci_select.py
@@ -75,7 +75,7 @@ _META_RE = re.compile(
r'.*/[0-9]+-tinyusb[^/]*\.rules$|tools/usb_drivers/|tools/codespell/|'
r'test/(fuzz|unit-test)/|'
# .github, minus the build machinery named in _FULL_RE
- r'\.github/(FUNDING\.yml|labeler\.yml|membrowse_pr_message\.j2|ISSUE_TEMPLATE/|'
+ r'\.github/(FUNDING\.yml$|labeler\.yml$|membrowse_pr_message\.j2$|ISSUE_TEMPLATE/|'
r'workflows/(cifuzz|claude|claude-code-review|labeler|membrowse-comment|'
r'membrowse-onboard|pr_comment|pre-commit|static_analysis|trigger)\.yml$)|'
# tools/ scripts no build invokes (tools/build*.py and metrics are handled above)