-
Notifications
You must be signed in to change notification settings - Fork 679
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
cargo test
eventually fills up /tmp
and fails
#4779
Comments
do you have a partition for |
My Even if it doesn't run out of space, it's still consuming a lot of RAM unnecessarily. I have 32GB here, and old files from I know most of our devs use MacBooks, and I have no idea how OS X handles this and if it's a problem for them |
FWIW, neither Debian nor Alpine use a RAM filesystem for /tmp. They use tmpfs, or nothing at all (it's just part of root). |
Am I the only one having an issue with this? |
Right; you could conceivably deal with this problem by increasing your swap space. These distros'
Maybe? My
The oldest file in this computer's |
You're using Debian, right? Debian by default doesn't use Even if others aren't getting to the point where they are seeing actual test failures, I still think we should do something about it, because taking up extra RAM or disk space is never a good thing Proposed SolutionsUsed Fixed NamesInstead of using random file/directory names for each invocation of Implement
|
We deliberately keep things on disk so we can inspect them on failed test runs, so that's probably not going to change. The value it provides for debugging is immense. Why can't you just alter your |
I understand this. Is it useful to keep all of the data indefinitely, of can we only keep data from the most recent |
i think you have a few options here, but the easiest solutions are platform
specific.
you may increase that tmpfs size if you want to keep more test data, mount
a new partition backed by disk, or delete older temp folders (possibly via
makefile).
there is also another option to keep the data out of your tmpfs filesystem:
have you tried setting TMPDIR env var before running the tests?
ultimately this seems platform specific, so I'm not sure it should be
addressed with a change to the repo (possibly a note in the contributing
file that this may occur).
…On Mon, May 13, 2024 at 12:44 Jeff Bencin ***@***.***> wrote:
We deliberately keep things on disk so we can inspect them on failed test
runs, so that's probably not going to change. The value it provides for
debugging is immense.
I understand this. Is it useful to keep all of the data indefinitely, of
can we only keep data from the most recent cargo test run?
—
Reply to this email directly, view it on GitHub
<#4779 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVXIHGDMAG6NHB7BWPU7R3ZCEJ2DAVCNFSM6AAAAABHRIEZYCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBYGY3DQMRRGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Describe the bug
If you run
cargo test
repeatedly,/tmp
fills up and you start getting errors like this:Steps To Reproduce
Run
cargo test
orcargo nextest run
repeatedlyExpected behavior
Tests should clean up after themselves, or re-use data from previous tests
Environment (please complete the following information):
4afa9ef71
The text was updated successfully, but these errors were encountered: