-
Notifications
You must be signed in to change notification settings - Fork 123
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 tmp files/directories during/after building #287
Comments
You are right. They also should all start with elektra-. |
#284 is already a step in this direction. |
You mention some other folders and /tmp/jna--* seems also to be from Elektra |
shell recorder should do cleanup, too |
A trap for cleanup after signals would be great, too. |
What about changing TMPDIR and clean up the whole directory? Seems easier than to track down every single tmpfile in every test case. |
There are still plenty of such cases, including /tmp/elektra-test and elektraenv.XXXXXXXXX. shellrecorder could help for cleanup, and finally fixing TMPDIR, see #1973 @ingwinlu Can the build server check which leftovers the testcases have? (So that we at least not increase the number of leaking test cases.) |
@sanssecours Is it a good idea to keep the Protocol File of the shell recorder? We already print it, so they can be removed, can't they? |
Makes sense, I opened pull request #1979 which updates the behavior of the Shell Recorder accordingly. |
Is this now fixed with #2056? Or do we need cleanup for other test suites (like gtest), too? Can we add a check in our build server which checks if we leave /tmp in the state as before? |
The /tmp directory of my build containers have a LOT of tmp files and directories which get created during the build process. We should either clean all of them at the end or during the build.
tmp.XXXXXXXXX files in /tmp: 1541
elektraenv.XXXXXXXXX directories in /tmp: 12
elektra-test.XXXXXX directories in /tmp: 7
getenv-XXXXXX.ii files in /tmp: 6
cpp11_benchmark_thread-XXXXXX.ii files in /tmp: 1
The text was updated successfully, but these errors were encountered: