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 tmp files/directories during/after building #287

Closed
manuelm opened this issue Sep 15, 2015 · 10 comments
Closed

Clean up tmp files/directories during/after building #287

manuelm opened this issue Sep 15, 2015 · 10 comments
Labels

Comments

@manuelm
Copy link
Contributor

manuelm commented Sep 15, 2015

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

@manuelm manuelm added the build label Sep 15, 2015
@markus2330
Copy link
Contributor

You are right. They also should all start with elektra-.

@markus2330
Copy link
Contributor

#284 is already a step in this direction.

markus2330 pushed a commit that referenced this issue Sep 16, 2015
@markus2330
Copy link
Contributor

You mention some other folders and /tmp/jna--* seems also to be from Elektra

@markus2330
Copy link
Contributor

shell recorder should do cleanup, too

@markus2330
Copy link
Contributor

A trap for cleanup after signals would be great, too.

@markus2330 markus2330 added this to the 0.8.19 milestone Sep 20, 2016
@markus2330
Copy link
Contributor

What about changing TMPDIR and clean up the whole directory? Seems easier than to track down every single tmpfile in every test case.

@markus2330
Copy link
Contributor

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.)

markus2330 pushed a commit that referenced this issue May 12, 2018
@markus2330 markus2330 mentioned this issue May 12, 2018
7 tasks
@markus2330
Copy link
Contributor

markus2330 commented May 12, 2018

@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?

@sanssecours
Copy link
Member

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.

markus2330 pushed a commit that referenced this issue May 13, 2018
@markus2330
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants