From 961b821ea33a4f4e871eabd1005a1f81bc6801e1 Mon Sep 17 00:00:00 2001 From: Sykez <276981287+Sykezzz@users.noreply.github.com> Date: Thu, 13 Aug 2026 17:41:28 -0500 Subject: [PATCH 1/2] test(setup): account for native provider startup --- tests/test_build_profiles.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_build_profiles.py b/tests/test_build_profiles.py index 7f48387..c817032 100644 --- a/tests/test_build_profiles.py +++ b/tests/test_build_profiles.py @@ -195,7 +195,12 @@ def test_windows_signer_preflight_terminates_a_stalled_provider(tmp_path): ) assert result.returncode == 2 - assert time.monotonic() - started < 8 + # Native Windows PowerShell may need roughly two seconds to initialize its + # 64-bit certificate-provider view before the one-second inspection and + # bounded process-tree cleanup run. Keep this assertion below the outer + # ten-second hard timeout without constraining normal provider startup to + # the older in-process timing envelope. + assert time.monotonic() - started < 9.5 def test_windows_setup_builder_pins_compiler_and_emits_unsigned_receipts(): From e2911c61c8322c21da4a7f32139c368cfda8f967 Mon Sep 17 00:00:00 2001 From: Sykez <276981287+Sykezzz@users.noreply.github.com> Date: Thu, 13 Aug 2026 17:50:38 -0500 Subject: [PATCH 2/2] test(setup): leave timeout harness headroom --- tests/test_build_profiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_build_profiles.py b/tests/test_build_profiles.py index c817032..671a733 100644 --- a/tests/test_build_profiles.py +++ b/tests/test_build_profiles.py @@ -191,14 +191,14 @@ def test_windows_signer_preflight_terminates_a_stalled_provider(tmp_path): "1", ], check=False, - timeout=10, + timeout=15, ) assert result.returncode == 2 # Native Windows PowerShell may need roughly two seconds to initialize its # 64-bit certificate-provider view before the one-second inspection and # bounded process-tree cleanup run. Keep this assertion below the outer - # ten-second hard timeout without constraining normal provider startup to + # outer harness timeout without constraining normal provider startup to # the older in-process timing envelope. assert time.monotonic() - started < 9.5