Skip to content

Isolate per-test caches via explicit args instead of XDG_CACHE_HOME#5018

Merged
crtschin merged 2 commits into
haskell:masterfrom
crtschin:crtschin/test-cache-isolation
Jul 19, 2026
Merged

Isolate per-test caches via explicit args instead of XDG_CACHE_HOME#5018
crtschin merged 2 commits into
haskell:masterfrom
crtschin:crtschin/test-cache-isolation

Conversation

@crtschin

@crtschin crtschin commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Split off from: #4977. Makes the following changes:

  • Adds getCacheDirsIn and getHieDbLocIn that allows using different cache directories than XDG_CACHE_HOME.
  • Gives each test its own cache directory and removes the need for lockForTempDirs.

Contains no user-visible change.

@crtschin crtschin changed the title Isolate per-test caches via explicit args instead of XDG_CACHE_HOME WIP: Isolate per-test caches via explicit args instead of XDG_CACHE_HOME Jul 18, 2026
@crtschin crtschin changed the title WIP: Isolate per-test caches via explicit args instead of XDG_CACHE_HOME Isolate per-test caches via explicit args instead of XDG_CACHE_HOME Jul 18, 2026
@crtschin
crtschin marked this pull request as ready for review July 18, 2026 12:48
@crtschin
crtschin requested review from fendor and wz1000 as code owners July 18, 2026 12:49

@fendor fendor left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one nitpick and then good to go imo.

Comment thread ghcide/session-loader/Development/IDE/Session/Ghc.hs Outdated
@crtschin
crtschin enabled auto-merge (squash) July 19, 2026 19:06
@crtschin
crtschin force-pushed the crtschin/test-cache-isolation branch from b812bd3 to 0539804 Compare July 19, 2026 22:25
@crtschin
crtschin merged commit be99b71 into haskell:master Jul 19, 2026
42 checks passed
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