#17215 closed Bug (fixed)
runtests doesn't clean up all temp files all the time
Reported by: | Karen Tracey | Owned by: | nobody |
---|---|---|---|
Component: | Testing framework | Version: | |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
http://ci.djangoproject.com/job/Django/ builds started failing yesterday due to too many files in /tmp:
http://ci.djangoproject.com/job/Django/461/database=sqlite3,python=python2.5/console
There were nearly 300 /tmp/django_<random> directories that had accumulated, and looking at my own machine's tmp directory I see a bunch of other /tmp/tmp<random> directories that have accumulated in just the last day.
Change History (14)
follow-up: 2 comment:1 by , 13 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 13 years ago
Replying to aaugustin:
I cleaned /tmp on the CI server, but that bug should be fixed nonetheless.
Thanks! And oh yes we should fix the tests to not require periodic /tmp cleanup.
It seems a clean test run leaves behind 47 (!) /tmp/tmp<random> directories. 47*15 configs on the ci server is 705 directories accumulating per commit. That means less than 50 commits before we again hit the 32,000 file in the directory limit....
comment:3 by , 13 years ago
Owner: | changed from | to
---|
comment:5 by , 13 years ago
Owner: | changed from | to
---|
r17094 was a quick way to get rid of the leftover tmp dirs from a clean test run; if anyone has a better approach/idea please speak up.
There were also some leftover django<random> dirs -- these I think come from runs that don't complete successfully. I'm not sure how to approach cleaning them up.
comment:12 by , 11 years ago
We shouldn't get any more leaking temporary directories from the test suite (running without failures or soft-interrupted by Ctrl-C), but this needs to be confirmed. And of course, testing that any failure in one of the ~7000 current tests don't leak directories is quite impossible.
comment:13 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
/tmp
on the CI servers has stayed clean for some time.
comment:14 by , 9 years ago
I should have closed this bug with 934400759de817471ff37d736686201d7ae34e82.
I cleaned /tmp on the CI server, but that bug should be fixed nonetheless.