From 69af063c85e6c5761e8933056c4c38bb5b9355f4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Feb 2026 21:27:49 +0000 Subject: [PATCH 1/2] Initial plan From 7baaadfa757ba8111497ba5569ce147059ab39d4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Feb 2026 21:36:35 +0000 Subject: [PATCH 2/2] Extend isolated_cache_directory fixture to cover maxage-marked tests Co-authored-by: shaypal5 <917954+shaypal5@users.noreply.github.com> --- tests/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index dce44dc7..d138449e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -101,11 +101,11 @@ def worker_id(request): def isolated_cache_directory(tmp_path, monkeypatch, request, worker_id): """Ensure each test gets an isolated cache directory. - This is especially important for pickle tests when running in parallel. Each pytest-xdist worker gets its own cache - directory to avoid conflicts. + This is especially important for pickle and maxage tests when running in parallel. Each pytest-xdist worker gets its + own cache directory to avoid conflicts. """ - if "pickle" in request.node.keywords: + if "pickle" in request.node.keywords or "maxage" in request.node.keywords: # Create a unique cache directory for this test cache_dir = tmp_path / "cachier_cache" if worker_id == "master" else tmp_path / f"cachier_cache_{worker_id}"