integration: wait for service update to be completed#38474
integration: wait for service update to be completed#38474thaJeztah wants to merge 3 commits intomoby:masterfrom
Conversation
|
/cc @adshmh @kolyshkin @vdemeester I couldn't find a reference why |
c0c0dca to
75624b9
Compare
Codecov Report
@@ Coverage Diff @@
## master #38474 +/- ##
=========================================
Coverage ? 36.63%
=========================================
Files ? 608
Lines ? 45174
Branches ? 0
=========================================
Hits ? 16550
Misses ? 26336
Partials ? 2288 |
|
ok, that doesn't seem to work indeed; |
|
Looking at the failure Maybe, |
@vdemeester Yes, that's what I was thinking as well. I'd have to check with the SwarmKit people; I think that may be troublesome if for some updates we have to wait for it to reach (Without having dug into it); wondering if the flakiness in the
|
|
ping @aaronlehmann @dperny @anshulpundir could you have a look at this? Wondering if you know if my suspicion above could be right 🤗 |
|
@thaJeztah afaik, updating only service specs does no actually generate update tasks. Another thing which I was thinking that how much of these tests actually should be on here and how much on Swarmkit side? |
|
Perhaps the issue is that ServiceCreate is asynchronous, so will return immediately, however, the service's tasks are not yet running/converged. Once they converge, the Do we need something like is done on the CLI; https://github.com/docker/cli/blob/ae1618713f83e7da07317d579d0675f578de22fa/cli/command/service/progress/progress.go#L75-L205 and https://github.com/docker/cli/blob/ae1618713f83e7da07317d579d0675f578de22fa/cli/command/service/progress/progress.go#L273-L330 ? |
That's a good question; I do think we need some integration tests here (as this is the integration point of swarmkit into docker); not sure we need all of them |
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
75624b9 to
dc70637
Compare
Signed-off-by: Sebastiaan van Stijn <[email protected]>
376f2dc to
c207f60
Compare
|
Closing as #38499 got merged |
Wondering if this is the cause for
TestServiceUpdateConfigsto be flaky; this code was added as part of #37564, and appeared to be flaky on the PR itself #37564 (comment)relates to #37547