From 8ce51ce629bacd5e10d44fc100960e5e1374eb55 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 17 Nov 2026 19:41:15 -0800 Subject: [PATCH] release notes: let files under test/ decide only test-only PRs A PR with no title prefix that changes one S3 file and two Python tests under test/s3 was filed under Tests and CI. Co-Authored-By: Claude Opus 5.5 --- .github/scripts/release_notes_by_component.py | 2 +- .github/scripts/test_release_notes_by_component.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/scripts/release_notes_by_component.py b/.github/scripts/release_notes_by_component.py index 6faf420cbe..968be0b550 100644 --- a/.github/scripts/release_notes_by_component.py +++ b/.github/scripts/release_notes_by_component.py @@ -175,7 +175,7 @@ def section_by_scope(scope): def section_by_paths(paths): votes = {} - code = [p for p in paths if not p.endswith("_test.go") and not p.endswith("_test.rs")] + code = [p for p in paths if not p.endswith(("_test.go", "_test.rs")) and not p.startswith("test/")] for p in code or paths: if p.endswith(".md"): section = "Documentation" diff --git a/.github/scripts/test_release_notes_by_component.py b/.github/scripts/test_release_notes_by_component.py index 057e1f5e98..a433dc01b5 100644 --- a/.github/scripts/test_release_notes_by_component.py +++ b/.github/scripts/test_release_notes_by_component.py @@ -92,6 +92,9 @@ class ClassifyTest(unittest.TestCase): def test_test_files_count_only_when_alone(self): self.check("Make it faster", "Mount", files=["weed/mount/weedfs.go", "test/fuse/a_test.go", "test/fuse/b_test.go"]) + self.check("Make it right", "S3 API", + files=["weed/s3api/auth.go", "test/s3/iam/test_a.py", "test/s3/iam/test_b.py"]) + self.check("Cover more", "Tests and CI", files=["test/s3/iam/test_a.py"]) NOTES = """## What's Changed