diff --git a/tests/unit/infra/test_code_deployment.py b/tests/unit/infra/test_code_deployment.py index ba1276ccf4..f97ba18f7d 100644 --- a/tests/unit/infra/test_code_deployment.py +++ b/tests/unit/infra/test_code_deployment.py @@ -1018,6 +1018,7 @@ def _run_cancellation_rollback( sleeps = [int(line.removeprefix("sleep:")) for line in result.stderr.splitlines() if line.startswith("sleep:")] return result, calls, sleeps + @unittest.skipIf(os.name == "nt", "POSIX signal handling is not reliable in Git Bash on Windows") def test_cancellation_keeps_public_access_disabled_until_connection_removal(self) -> None: for signal, exit_code in (("TERM", 143), ("INT", 130)): with self.subTest(signal=signal): @@ -1032,6 +1033,7 @@ def test_cancellation_keeps_public_access_disabled_until_connection_removal(self assert result.stdout.count("Waiting for ACA private endpoint connection removal") == 1 assert sleeps == [15] + @unittest.skipIf(os.name == "nt", "POSIX signal handling is not reliable in Git Bash on Windows") def test_cancellation_rolls_back_only_infrastructure_after_connection_removal(self) -> None: for signal, exit_code in (("TERM", 143), ("INT", 130)): with self.subTest(signal=signal): diff --git a/tests/unit/infra/test_docker_ci.py b/tests/unit/infra/test_docker_ci.py index 55cf582281..4879643803 100644 --- a/tests/unit/infra/test_docker_ci.py +++ b/tests/unit/infra/test_docker_ci.py @@ -491,7 +491,12 @@ def test_readiness_is_bounded_and_requires_http_200(*, bash_path: str, tmp_path: "frontend-http-failure", "missing-frontend", "diagnostics-failure", - "signal", + pytest.param( + "signal", + marks=pytest.mark.skipif( + os.name == "nt", reason="POSIX signal handling is not reliable in Git Bash on Windows" + ), + ), ], ) def test_smoke_failures_dump_diagnostics_and_remove_container(*, bash_path: str, tmp_path: Path, case: str) -> None: @@ -513,6 +518,7 @@ def test_smoke_failures_dump_diagnostics_and_remove_container(*, bash_path: str, assert result.returncode == 143 +@pytest.mark.skipif(os.name == "nt", reason="POSIX signal handling is not reliable in Git Bash on Windows") @pytest.mark.parametrize("cleanup_stage", ["logs", "rm"]) @pytest.mark.parametrize("cleanup_signal", ["INT", "TERM"]) @pytest.mark.parametrize(