Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve isolation of build artefacts of test runs #4112

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

fendor
Copy link
Collaborator

@fendor fendor commented Mar 2, 2024

Even though we copy test files into temporary directories, we used to reuse the same cache directory for build artefacts, hiedb and compilation artefacts. While there is practially no chance this causes any issues for the test runs themselves, it litters the cache directory with a lot of files. So, we create one main directory in the temporary directory, and generate all caches and in there. This makes it trivial to delete all test caches, without risking deleting the cache that is still used.

hls-test-utils/hls-test-utils.cabal Show resolved Hide resolved
hls-test-utils/src/Test/Hls.hs Outdated Show resolved Hide resolved
@fendor fendor force-pushed the feature/more-test-isolation branch from 71632ce to c5260af Compare March 2, 2024 17:23
@fendor fendor requested a review from jhrcek March 2, 2024 17:23
Copy link
Collaborator

@jhrcek jhrcek left a comment

Choose a reason for hiding this comment

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

LGTM

@fendor fendor force-pushed the feature/more-test-isolation branch from cb2f2a9 to eb95556 Compare March 4, 2024 11:27
@fendor fendor enabled auto-merge (squash) March 4, 2024 12:20
Even though we copy test files into temporary directories, we used to
reuse the same cache directory for build artefacts, hiedb and
compilation artefacts. While there is practially no chance this causes
any issues for the test runs themselves, it litters the cache directory
with a lot of files. So, we create one main directory in the temporary
directory, and generate all caches and in there. This makes it trivial
to delete all test caches, without risking deleting the cache that is
still used.
@fendor fendor force-pushed the feature/more-test-isolation branch from eb95556 to 487c115 Compare March 4, 2024 17:39
@fendor fendor merged commit 79e36f5 into haskell:master Mar 5, 2024
38 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.

None yet

3 participants