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

Clean up pytest files in /tmp after test runs #489

Open
jvperrin opened this issue Apr 2, 2019 · 1 comment
Open

Clean up pytest files in /tmp after test runs #489

jvperrin opened this issue Apr 2, 2019 · 1 comment

Comments

@jvperrin
Copy link
Member

jvperrin commented Apr 2, 2019

Currently, tests (using pytest) can leave files around in /tmp (~ 800 MiB per pytest directory) which can then lead to /tmp completely running out of space since it is only 4 GiB in total:

jvperrin@supernova:~$ sudo du -sh /tmp/* | sort -h | tail -n 2
872M	/tmp/pytest-of-gleeb
2.6G	/tmp/pytest-of-dkessler

This has happened several times before, but we should have a better solution than just temporarily cleaning out space again (for instance running a rm of the relevant directory in the Makefile after running tests, or running tmpreaper on these directories periodically).

Additionally, increasing the size of /tmp on supernova would help, but given the size of these pytest outputs (~ 800 MiB per directory), that wouldn't help that much.

@BernardZhao
Copy link
Member

Any hints as where to look to start fixing this? I tried running make-test myself a few times, and then looking in tmp for pytest-of-bernardzhao, only to find that it was full of empty directories. I am wondering what kind of strange situations could have caused the tmp to grow so big, and if they are even strictly related with only ocfweb.

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

No branches or pull requests

2 participants