From acd37d8701a26787da8770c0fb482aae7da80451 Mon Sep 17 00:00:00 2001 From: Ke Bao Date: Tue, 31 Mar 2026 18:00:53 +0800 Subject: [PATCH] [CI] Fix rerun-test suite detection to skip commented registrations (#21753) --- scripts/ci/utils/slash_command_handler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/ci/utils/slash_command_handler.py b/scripts/ci/utils/slash_command_handler.py index a62139494..69d479921 100644 --- a/scripts/ci/utils/slash_command_handler.py +++ b/scripts/ci/utils/slash_command_handler.py @@ -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 (