-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[27.1 backport] attach: wait for exit code from ContainerWait
#5302
Conversation
a3f618a
to
0cec554
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 27.x #5302 +/- ##
=======================================
Coverage 61.50% 61.50%
=======================================
Files 299 299
Lines 20866 20867 +1
=======================================
+ Hits 12834 12835 +1
Misses 7116 7116
Partials 916 916 |
|
Failures seem related to: #5229 (comment) It added the "exit status " message, but wasn't backported to the 27.0 branch |
|
I'm still unsure if we should have that message at all 😅 I think we still haven't decided if this is the expected behavior or not. |
ContainerWaitContainerWait
ContainerWaitContainerWait
|
Oh! Good one; yes, I was considering if we need an explicit option on err := foo()
if errdefs.IsNotFound(err) {
// wrap the error with a atatus-code (and message?)
} For this branch I would update the tests to not check for the error-message if that works while we work out some of that. |
Such as with `docker run`, if a user CTRL-Cs while attached to a container, we should forward the signal and wait for the exit from `ContainerWait`, instead of just returning. Signed-off-by: Laura Brehm <laurabrehm@hey.com> (cherry picked from commit 7b46bfc) Signed-off-by: Laura Brehm <laurabrehm@hey.com>
0cec554
to
1cf3637
Compare
Updated. |
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


backport #5297
- Description for the changelog