[CI] Fix rerun-test suite detection to skip commented registrations (#21753)

This commit is contained in:
Ke Bao
2026-03-31 18:00:53 +08:00
committed by GitHub
parent 6c03ae6fe2
commit acd37d8701
+3 -1
View File
@@ -485,7 +485,9 @@ def detect_cuda_suite(file_path_from_test):
content = f.read()
match = re.search(
r'register_cuda_ci\([^)]*suite\s*=\s*["\']([^"\']+)["\']', content
r'^[^#\n]*register_cuda_ci\([^)]*suite\s*=\s*["\']([^"\']+)["\']',
content,
re.MULTILINE,
)
if not match:
return (