-
Notifications
You must be signed in to change notification settings - Fork 196
Clean: clean up stale files under /tmp #2211
Conversation
Found tons of stale files under /tmp, and now it will bring errors in bare-metal CI, like AArch64. See jenkins.katacontainers.io/job/kata-containers-runtime-ARM-18.04-PR/1414/console Fixes: kata-containers#2210 Signed-off-by: Penny Zheng <penny.zheng@arm.com>
/test-arm |
@@ -11,3 +11,6 @@ lib_script="${GOPATH}/src/${tests_repo}/.ci/lib.sh" | |||
source "${lib_script}" | |||
|
|||
gen_clean_arch || info "Arch cleanup scripts failed" | |||
|
|||
info "clean up /tmp" | |||
sudo sh -c 'rm -rf /tmp/*' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, that feels a bit too 'hard' to me - the system may have other tmp files down there it is using (given this is a baremetal server). I fear you will corrupt the server long term.
Also, have we identified which bit of the ci/test scripts is leaving the rubbish in /tmp
? Some time ago I spent some time making sure the test framework did not do that - if we can identify the 'dirty tests' and clean them up, that would be better :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @Pennyzct , I agree with @grahamwhaley - remove all file in /tmp
is prone to break something
Hi~ guys
Lately. I've been investigating which code is leading to those stale files and will try my best to clean them up from the source. ;). Updates: |
thanks @Pennyzct - I think last time I did this I used the trick of setting |
Description of problem
Stale dir
/tmp/virtc/ocibundle/
has caused recent ARM CI failure.http://jenkins.katacontainers.io/job/kata-containers-runtime-ARM-18.04-PR/1414/
Related PR: kata-containers/runtime#2387
BTW, almost ten thousand😖 stale file/dir have been accumulated on ARM CI.
We need to clean up
/tmp
on all bare-metal CI. ;)