migrate service update integration tests from integration-cli to integration/service package#37564
Conversation
|
CI failed on |
|
Thank you for the reviews, I will look into failures. |
|
@adshmh needs a rebase though 👼 |
|
@yongtang thank you for the review. I think 2 of the tests are flaky and it is not clear why yet, so I am looking into the cause. So far the test failures have not happened on my local builds over several re-runs. |
|
@adshmh this one needs to be rebased |
|
Conflict is due to 83363fb#diff-dc96b4992b77c3e1cd181b2fd9162b5eR17 (#37635) which made changes to |
…rvice_update_test.go to integration/service Signed-off-by: Arash Deshmeh <[email protected]> Signed-off-by: Sebastiaan van Stijn <[email protected]>
2d0e475 to
be151a7
Compare
Codecov Report
@@ Coverage Diff @@
## master #37564 +/- ##
=========================================
Coverage ? 35.62%
=========================================
Files ? 610
Lines ? 44896
Branches ? 0
=========================================
Hits ? 15992
Misses ? 26697
Partials ? 2207 |
thaJeztah
left a comment
There was a problem hiding this comment.
rebased; changes LGTM
let's merge on green 👍
|
z looks to be failed to: which I have not seen earlier but let's see if rebuild helps |
|
Same failure again; odd 🤔 |
|
Sorry for the delay in response. The service update tests still seem flaky, even though I have added a polling function to check on the status of the service. This time, Currently looking at the service update command on docker CLI repo, as well as swarmkit repo, to find out if there are any other conditions to check after a service update API call before issuing the next one. |
|
These have not been flaky earlier. Maybe some temporary issue on server. Let's try once more... |
|
ready to merge? |
|
@AkihiroSuda afaik, yes.
|
This is a follow up PR on #37492 (closed and reverted due to 2 flaky tests). This PR attempts to fix that by polling the update state of the service.
- What I did
Refactored and moved service update integration tests from the
integration-clipackage tointegration/service- How I did it
Removed the integration test file
integration-cli//docker_cli_service_update_test.goand added new test fileintegration/service/update_test.gowith corresponding tests.- How to verify it
- Description for the changelog
Service update integration tests have been moved from integration-cli to integration/service package.
- A picture of a cute animal (not mandatory but encouraged)