-
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
system tests: safer container-stop signaling #18323
system tests: safer container-stop signaling #18323
Conversation
98bcb99
to
911e55f
Compare
Having a container spin-wait on a /stop file, then exit, is unsafe: 'podman exec $ctr touch /stop' can get sucked into container cleanup before the exec terminates, resulting in the podman-exec failing and hence the test failing. Most existing instances of this pattern are unnecessary. Replace those with just 'podman rm -f'. When necessary, use a variety of safer alternatives. Re-Closes: containers#10825 (already closed; this addresses remaining cases) Signed-off-by: Ed Santiago <[email protected]>
911e55f
to
faeed14
Compare
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.
LGTM
I am curious. Do some of the fixed tests show up in your flake data, @edsantiago ?
@Luap99 PTAL
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: edsantiago, vrothberg 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 |
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.
/lgtm
This one is too infrequent: most logs have cycled away, and my reports from 2021-22 are worthless: they do not include excerpts nor test names. (I have since improved my reporting habits). Since I still have text logs archived on my laptop I could conceivably run a multi-line |
Thanks, @edsantiago! Please don't waste time pursuing this further. I was mostly wondering if there are some ripple effects of this PR that would allow closing a number of flakes at once. |
Having a container spin-wait on a /stop file, then exit, is
unsafe: 'podman exec $ctr touch /stop' can get sucked into
container cleanup before the exec terminates, resulting in
the podman-exec failing and hence the test failing.
Most existing instances of this pattern are unnecessary.
Replace those with just 'podman rm -f'.
When necessary, use a variety of safer alternatives.
Re-Closes: #10825 (already closed; this addresses remaining cases)
Signed-off-by: Ed Santiago [email protected]