Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

ci: baremetal cleanup: scripts should not fail if there are things they cannot cleanup #913

Closed
grahamwhaley opened this issue Nov 19, 2018 · 0 comments

Comments

@grahamwhaley
Copy link
Contributor

The baremetal cleanup scripts are called by the jenkins script before we do a PR build - but, probably almost no matter what, that script should not fail, even if it thinks it cannot clean up.

Right now, if you don't have docker installed, the script fails, and we drop out of the jenkins script before it's even built the PR. Let's fix that...

Related #868

17:05:27 Running baremetal cleanup script for arch x86_64
17:05:27 /home/jenkins/workspace/workspace/kata-metrics-runtime-ubuntu-16-04-PR/go/src/github.com/kata-containers/tests/.ci/lib.sh: line 247: docker: command not found
grahamwhaley pushed a commit to grahamwhaley/kata-containers-tests that referenced this issue Nov 19, 2018
The cleanup scripts failed if any sub-part of the cleanup
failed. This then trickled out to the CI system, which would
fail the build.
We should probably never fail the cleanup process, even if
sub-parts of the cleanup faii, as the system we are trying
to clean may be in an unstable state - that is the point
of trying to clean it.

Drop the `-e` from the top level clean call, and `|| true`
the sub-func call for added measure.

Fixes: kata-containers#913

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant