-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Delete all containers and pods between tests #9699
Conversation
New tearDown() deletes all pods and containers between tests Signed-off-by: Jhon Honce <[email protected]>
LGTM |
@jwhonce something is not making the test system very happy.... |
Okay! Well! That's my signal to take PTO on Friday 😄 (I restarted the failed tests, appeared like Google-storage or network flakes, strangely enough) |
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 for this, it LGTM, and I actually think I understand it 😁 Note: I didn't spend any time looking at the re-formatting changes, I'm assuming those are all kosher, and if not you understand how to fix them 😄
sys.stdout.write("\nRun Stdout:\n" + e.stdout.decode("utf-8")) | ||
if e.stderr: | ||
sys.stderr.write("\nRun Stderr:\n" + e.stderr.decode("utf-8")) | ||
raise |
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.
Oh yeah that will be helpful, thanks!
super().tearDown() | ||
|
||
TestApi.podman.run("pod", "rm", "--all", "--force", check=True) | ||
TestApi.podman.run("rm", "--all", "--force", check=True) |
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.
Yeah, this is totally fine. Crap can get left behind for any number of reasons, not all should cause test failures. The time spent doing this will more than outweigh the aggravation and time of re-running the test b/c of flakes.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cevich, jwhonce The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
/hold cancel |
New tearDown() deletes all pods and containers between tests
Signed-off-by: Jhon Honce [email protected]