From 5d6ec8ee1f1df0393c3451e329dfd82729b73ad1 Mon Sep 17 00:00:00 2001 From: Dextroid17 <217507631+Dextroid17@users.noreply.github.com> Date: Wed, 7 Oct 2026 16:20:27 -0400 Subject: [PATCH] fix(ci): read only linked executables out of the build graph The Windows job failed the check with two names that are not test executables. `libhost_thread_local_test_library` is a support library whose RUNTIME_OUTPUT_DIRECTORY puts it in the test directory; on Linux its output is a library artifact and never lands there, which is why the Linux job stayed green. `windows_exception_tests` is a MINGW-only test executable that no `add_test` registers. Ninja prints the rule beside each target, and CMake links an executable with `CXX_EXECUTABLE_LINKER___` and a shared library with `CXX_SHARED_LIBRARY_LINKER__...`, on every platform. Requiring EXECUTABLE in the rule leaves the library out and keeps the Linux count at 362. `windows_exception_tests` is a real instance of the class this check looks for, so record it beside the other five rather than fail the job that found it. --- tools/check_test_registration.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/check_test_registration.py b/tools/check_test_registration.py index 8d8011efa..d720292e1 100644 --- a/tools/check_test_registration.py +++ b/tools/check_test_registration.py @@ -11,6 +11,7 @@ KNOWN_UNRUN = { "agc_driver_recorder_tests", "guest_formatting_tests", "video_out_flip_tests", + "windows_exception_tests", } @@ -19,7 +20,10 @@ def built(build): capture_output=True, text=True, check=True).stdout names = set() for line in listed.splitlines(): - found = re.match(rf"^{TEST_OUTPUT}([A-Za-z0-9_.]+)", line) + path, _, rule = line.partition(": ") + if "EXECUTABLE" not in rule: + continue + found = re.match(rf"^{TEST_OUTPUT}([A-Za-z0-9_.]+)$", path) if not found: continue name = found.group(1).rstrip(".")