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