From e2734000aeb41b46a24042f39bca1c25f1b0cebb Mon Sep 17 00:00:00 2001 From: John Sirois Date: Sat, 1 Mar 2025 06:22:11 -0800 Subject: [PATCH] Skip test_cache_prune on Windows. This buys time for mainline CI while the lock hang is investigated. --- tests/integration/cli/commands/test_cache_prune.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/integration/cli/commands/test_cache_prune.py b/tests/integration/cli/commands/test_cache_prune.py index 2ba2fbe03..48618d80f 100644 --- a/tests/integration/cli/commands/test_cache_prune.py +++ b/tests/integration/cli/commands/test_cache_prune.py @@ -27,6 +27,7 @@ ) from pex.cli.commands.cache.du import DiskUsage from pex.common import environment_as, safe_open +from pex.os import WINDOWS from pex.pep_503 import ProjectName from pex.pex_info import PexInfo from pex.pip.version import PipVersion, PipVersionValue @@ -40,6 +41,15 @@ from typing import Iterable, Iterator, Optional +pytestmark = pytest.mark.skipif( + WINDOWS, + reason=( + "These tests (in particular `test_nothing_prunable`) currently hang on Windows in CI " + "regularly." + ), +) + + @pytest.fixture(autouse=True) def pex_root(tmpdir): # type: (Tempdir) -> Iterator[str]