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

Let tests themselves intentionally leak temp dir #1320

Merged
merged 2 commits into from
Dec 8, 2023

Conversation

Ericson2314
Copy link
Member

By default Yath will clean up temporary files, so the result is the same. But --keep-dirs can be passed to yath test telling Yath to not clean them up instead. This is very useful for debugging.

By default Yath will clean up temporary files, so the result is the
same. But `--keep-dirs` can be passed to `yath test` telling Yath to
*not* clean them up instead. This is very useful for debugging.
@SuperSandro2000
Copy link
Member

When building in a nix derivation er seine News to worry to clean up. It's building outside of that a thing? And if so, do we need to worry about quickly flooding people's disks?

@Ericson2314
Copy link
Member Author

@SuperSandro2000 the title is a bit misleading --- the tests themselves no longer clean up, but the test harness does (unless one opts out), so even in nix-shell by default one will not leak temp stuff.

@SuperSandro2000
Copy link
Member

Noise then this sounds like a no brainer, LGTM

t/lib/HydraTestContext.pm Outdated Show resolved Hide resolved
Copy link
Contributor

@tomberek tomberek left a comment

Choose a reason for hiding this comment

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

modulo small nits

@Ericson2314 Ericson2314 enabled auto-merge (squash) December 8, 2023 16:26
@Ericson2314 Ericson2314 merged commit 411e4d0 into NixOS:master Dec 8, 2023
1 check 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.

4 participants