integration-cli: fix swarm tests flakiness#39531
Conversation
|
|
Codecov Report
@@ Coverage Diff @@
## master #39531 +/- ##
=========================================
Coverage ? 37.31%
=========================================
Files ? 609
Lines ? 45234
Branches ? 0
=========================================
Hits ? 16881
Misses ? 26062
Partials ? 2291 |
|
Pushed updates for: For when it tries to remove a service. |
|
In experimental If I understand correctly this is a completely internal error in swarm that causes the state change to be ignored with no way to control or get an error from the client. All of these are covered in https://gist.github.com/tonistiigi/849f6551003fff2da43cbe0e21172e23 |
|
Opened a PR to fix the |
|
Reverted memberlist change to check if it has an effect on tests or can be worked on separately. |
c2ebe91 to
fc74a0b
Compare
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
fc74a0b to
096a7af
Compare
andrewhsu
left a comment
There was a problem hiding this comment.
LGTM w.r.t. reducing the flakiness of tests
|
LGTM |
…3 branch) full diff: moby/swarmkit@4fb9e96...bbe3418 changes included: - moby/swarmkit#2889 [19.03 backport] Fix update out of sequence and increase max recv gRPC message size for nodes and secrets Which relates to - moby#39531 integration-cli: fix swarm tests flakiness - docker-archive#345 [19.03 backport] integration-cli: fix swarm tests flakiness And includes backports of - moby/swarmkit#2808 Fix flaky tests - moby/swarmkit#2866 Swap gometalinter for golangci-lint - moby/swarmkit#2869 Increase max recv gRPC message size to initialize connection broker - related / similar to moby#38103 / docker-archive#102 cluster: set bigger grpc limit for array requests - related / similar to moby#39306 Increase max recv gRPC message size for nodes and secrets - fixes moby/swarmkit#2733 Error generated when messages size is too big - moby/swarmkit#2870 Fix update out of sequence Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
…3 branch) full diff: moby/swarmkit@4fb9e96...bbe3418 changes included: - moby/swarmkit#2889 [19.03 backport] Fix update out of sequence and increase max recv gRPC message size for nodes and secrets Which relates to - moby/moby#39531 integration-cli: fix swarm tests flakiness - docker-archive/engine#345 [19.03 backport] integration-cli: fix swarm tests flakiness And includes backports of - moby/swarmkit#2808 Fix flaky tests - moby/swarmkit#2866 Swap gometalinter for golangci-lint - moby/swarmkit#2869 Increase max recv gRPC message size to initialize connection broker - related / similar to moby/moby#38103 / docker-archive/engine#102 cluster: set bigger grpc limit for array requests - related / similar to moby/moby#39306 Increase max recv gRPC message size for nodes and secrets - fixes moby/swarmkit#2733 Error generated when messages size is too big - moby/swarmkit#2870 Fix update out of sequence Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: f7dbee3eeaa1dd218116f85b8f60361acbd5b214 Component: engine
| for _, d := range nodes { | ||
| if d.GetNode(c, d.NodeID()).ManagerStatus.Leader { | ||
| n := d.GetNode(c, d.NodeID(), func(err error) bool { | ||
| if strings.Contains(errors.Cause(err).Error(), context.DeadlineExceeded.Error()) || strings.Contains(err.Error(), "swarm does not have a leader") { |
There was a problem hiding this comment.
Perhaps we should update this to take the same approach as #39168
relates to / addresses:
SwarmKit bump:
full diff: moby/swarmkit@fb584e7...7dded76
includes: