fix unless-stopped unexpected behavior#35355
Conversation
boaz0
left a comment
There was a problem hiding this comment.
We are not writing new tests to integration-cli.
|
@ripcurld0 where should I add tests to? |
|
in your repository there is the I guess you can look at cc @dnephin and @vdemeester |
|
Is there maybe already a test case for this behaviour that can be fixed to catch the problem? This is a one line fix, so I wonder if it really needs an entirely new integration test case. |
|
@dnephin yes, I can add this test to |
|
Yes, adding another container there sounds good |
|
Test case would fail occasionally, need some deep dig :( |
a1f17f6 to
e347aa8
Compare
|
@x1022as whats the status on this one? Is this ready for review again? |
|
@thaJeztah sorry for late response. |
e347aa8 to
87d185b
Compare
daemon/start.go
Outdated
There was a problem hiding this comment.
What's the reasoning behind changing this?
There was a problem hiding this comment.
we don't know which one of kill and 'libcontainerd.ExitEvent' comes first.
containerStart() in exitEvent should not overwrite HasBeenManuallyStopped in such case
Codecov Report
@@ Coverage Diff @@
## master #35355 +/- ##
=========================================
Coverage ? 36.62%
=========================================
Files ? 610
Lines ? 45238
Branches ? 0
=========================================
Hits ? 16569
Misses ? 26390
Partials ? 2279 |
fix moby#35304. Signed-off-by: dengguangxing <[email protected]>
fix #35304
restart=unless-stoppednot working as expectedSigned-off-by: Deng Guangxing [email protected]
- What I did
- How I did it
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)