-
Notifications
You must be signed in to change notification settings - Fork 346
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
youki exec should not clean up on error #1818
Conversation
Signed-off-by: yihuaf <yihuaf@unkies.org>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1818 +/- ##
==========================================
- Coverage 68.64% 68.62% -0.03%
==========================================
Files 121 121
Lines 13325 13327 +2
==========================================
- Hits 9147 9145 -2
- Misses 4178 4182 +4 |
Hey @yihuaf , what are your thoughts on moving the if-check inside match, instead of using it as a match guard ? There is no particular benefit to doing one instead of other, but I feel that it might more sense to move it inside like : Ok(pid)=>...
Err(outer)=>{
if matches!(....){
// cleanup, if that errors , return outer.context(inner)
}
Err(outer)
} I don't know if this will be better, so giving lgtm, because looks good 👍 |
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 👍
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.
May I ask you to write the integration test for this case?
Yes I was thinking about the same. |
Signed-off-by: yihuaf <yihuaf@unkies.org>
Merge this PR as is. I created #1819 to track the integration test. We have a few related bugs in this areas, so I want to go over the container life cycle tests with a new PR. |
@yihuaf 👍 |
Fix #1810