Skip to content

Extend isolated_cache_directory fixture to cover maxage-marked tests#354

Merged
shaypal5 merged 2 commits intotesting-improvementsfrom
copilot/sub-pr-349
Feb 28, 2026
Merged

Extend isolated_cache_directory fixture to cover maxage-marked tests#354
shaypal5 merged 2 commits intotesting-improvementsfrom
copilot/sub-pr-349

Conversation

Copy link
Contributor

Copilot AI commented Feb 28, 2026

maxage tests use @cachier.cachier() with the default pickle backend and no explicit cache_dir, making them susceptible to the same parallel-execution cache conflicts as pickle-marked tests — but the isolated_cache_directory autouse fixture only guarded the latter.

Changes

  • tests/conftest.py: Extend isolated_cache_directory fixture activation condition to include maxage-marked tests alongside pickle-marked tests:
# Before
if "pickle" in request.node.keywords:

# After
if "pickle" in request.node.keywords or "maxage" in request.node.keywords:

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: shaypal5 <917954+shaypal5@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix precommit-ci errors in parallel testing Extend isolated_cache_directory fixture to cover maxage-marked tests Feb 28, 2026
@shaypal5 shaypal5 marked this pull request as ready for review February 28, 2026 21:40
@shaypal5 shaypal5 self-requested a review as a code owner February 28, 2026 21:40
@shaypal5 shaypal5 merged commit 7d74632 into testing-improvements Feb 28, 2026
1 check passed
@shaypal5 shaypal5 deleted the copilot/sub-pr-349 branch February 28, 2026 21:40
shaypal5 added a commit that referenced this pull request Mar 1, 2026
…354)

* Initial plan

* Extend isolated_cache_directory fixture to cover maxage-marked tests

Co-authored-by: shaypal5 <917954+shaypal5@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: shaypal5 <917954+shaypal5@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants