From 34ddde39c4fd2cf0cbd2aa901c2bb1af51544d41 Mon Sep 17 00:00:00 2001 From: MarcZX10 <67475268+MarcZX10@users.noreply.github.com> Date: Sat, 31 Oct 2026 22:40:37 +0000 Subject: [PATCH] test(tools): require the Windows pull request gate to list the build-wide inputs The test reads the mingwHostTests gate of build.yml and checks that it lists core/CMakeLists.txt, cmake/, 3rdparty/, .gitmodules, tools/select_tests.py and tools/configure_seed.py. Against the previous gate it fails all six. --- tools/tests/test_mingw_host_only_test_targets.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/tests/test_mingw_host_only_test_targets.py b/tools/tests/test_mingw_host_only_test_targets.py index 673308d9d1..41079604bd 100644 --- a/tools/tests/test_mingw_host_only_test_targets.py +++ b/tools/tests/test_mingw_host_only_test_targets.py @@ -255,5 +255,15 @@ class HostOnlyTargets(unittest.TestCase): self.assert_exact_file_argument_links_product("-Wl,-l:libproduct_lib.a") +class WindowsPullRequestGateTests(unittest.TestCase): + def test_build_wide_inputs_start_the_windows_pull_request_job(self): + workflow = (Path(__file__).resolve().parents[2] / ".github/workflows/build.yml").read_text(encoding="utf-8") + gate = workflow.split("mingwHostTests: ", 1)[1].split("),", 1)[0] + for item in ("'core/CMakeLists.txt'", "'cmake/'", "'3rdparty/'", "'.gitmodules'", + "'tools/select_tests.py'", "'tools/configure_seed.py'"): + with self.subTest(item=item): + self.assertIn(item, gate) + + if __name__ == "__main__": unittest.main()