Uh oh!
There was an error while loading. Please reload this page.
Fix flaky TestServiceWithDefaultAddressPoolInit - #39671
Conversation
7146630 to
c186d46Compare608d40e to
5d50ffaCompare34b90f4 to
fafea21Comparearkodg
commented
Aug 6, 2019
@thaJeztah any idea why the test case is failing ? |
fafea21 to
53b8069Comparearkodg
commented
Aug 6, 2019
and changing the order of the operation breaks the next test |
thaJeztah
commented
Aug 6, 2019
is there a manager that failed to stop perhaps? |
53b8069 to
c763936Comparekolyshkin
commented
Aug 6, 2019
Means someone is already listening on this port. Not sure what it means in this exact context. |
c76e7bb to
9114ccaCompareUh oh!
There was an error while loading. Please reload this page.
thaJeztah
left a comment
There was a problem hiding this comment.
overall looks good; could you have a look at my comments, and move the function back to its old position (which makes it easier to double-check I didn't miss anything)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
2549161 to
952d643Comparearkodg
commented
Aug 13, 2019
Derek add label: rebuild/windowsRS1 |
arkodg
commented
Aug 14, 2019
Derek add label: rebuild/windowsRS1 |
1.This commit replaces serviceRunningCount with swarm.RunningTasksCount to accurately check if the service is running with the accurate number of instances or not. serviceRunningCount was only checking the ServiceList and was not checking if the tasks were running or not This adds a safe barrier to execute docker network inspect commands for overlay networks which get created asynchronously via Swarm 2. Make sure client connections are closed 3. Make sure every service and network name is unique 4. Make sure services and networks are cleaned up Signed-off-by: Arko Dasgupta <arko.dasgupta@docker.com>
952d643 to
f3a3ea0CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: Arko Dasgupta <arko.dasgupta@docker.com>
arkodg
commented
Aug 16, 2019
PTAL @kolyshkin |
thaJeztah
commented
Aug 16, 2019
@tiborvass PTAL |
thaJeztah
commented
Aug 27, 2019
ping @tiborvass@kolyshkin PTAL 🤗 |
| poll.WaitOn(t, swarm.NoTasks(ctx, c), swarm.ServicePoll) | ||
| err = c.NetworkRemove(ctx, overlayID) | ||
| assert.NilError(t, err) | ||
| c.Close() |
There was a problem hiding this comment.
I see one potential problem with all the assert statements here. Once any assert fails, the text execution is cancelled, meaning the above cleanup code (remove/close/etc) won't be run.
Perhaps we need to change those assert. calls to check. ones. The difference is check. won't abort test execution immediately (but still mark the test as failed).
If it's not possible to use check. everywhere, maybe we need to do cleanup in a defer.
There was a problem hiding this comment.
Yes, but AFAIK the RootDir will be cleaned up so it won't affect another PR, as for the current PR, this test failed so the reason for the assert failure should be addressed before moving to the next test
fixes#38514 Flaky test: TestServiceWithDefaultAddressPoolInit
This commit replaces serviceRunningCount with
swarm.RunningTasksCount to accurately check if the
service is running with the accurate number of instances
or not. serviceRunningCount was only checking the ServiceList
and was not checking if the tasks were running or not
This adds a safe barrier to execute docker network inspect
commands for overlay networks which get created
asynchronously via swarmkit
Signed-off-by: Arko Dasgupta arko.dasgupta@docker.com