You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FAIL: docker_api_swarm_service_test.go:540: DockerSwarmSuite.TestAPISwarmServicesStateReporting
16:11:24
16:11:24 Creating a new daemon
16:11:24 [d0cc352ef387b] waiting for daemon to start
16:11:24 [d0cc352ef387b] waiting for daemon to start
16:11:24 [d0cc352ef387b] daemon started
16:11:24
16:11:24 Creating a new daemon
16:11:24 [d453b2e97f137] waiting for daemon to start
16:11:24 [d453b2e97f137] waiting for daemon to start
16:11:24 [d453b2e97f137] daemon started
16:11:24
16:11:24 Creating a new daemon
16:11:24 [ddd7f396bf6a6] waiting for daemon to start
16:11:24 [ddd7f396bf6a6] waiting for daemon to start
16:11:24 [ddd7f396bf6a6] daemon started
16:11:24
16:11:24 waited for 2.039413398s (out of 30s)
16:11:24 waited for 850.587076ms (out of 30s)
16:11:24 waited for 29.740902ms (out of 30s)
16:11:24 assertion failed: expression is false: containers2[i] == nil
Sleeping for 1s might not be a reliable way to make sure all daemons are up
That sleep should be fine. The error appears later. Seems that after stopping container we still get that container in the active containers list. If we were to add a sleep then one place would be before
. Currently, this check might not work because it is intended to check that new task was created but in this case probably just has not seen the stopped task to leave yet.
For the actual issue on why we get the bad status report, I wonder if this is
where it sets the container as stopped(releasing the /stop afaics) before updating the snapshot. It also does possibly slow things like cleanup in between. @cpuguy83@thaJeztah
thaJeztah
changed the title
DockerSwarmSuite.TestAPISwarmServicesStateReporting is flaky
Flaky test: DockerSwarmSuite.TestAPISwarmServicesStateReporting
Jul 28, 2020
Recently while raising a PR, noticed that this test case
DockerSwarmSuite.TestAPISwarmServicesStateReporting
is failing in #39562Logs are at - https://jenkins.dockerproject.org/job/Docker-PRs-experimental/46036/console
Sleeping for 1s might not be a reliable way to make sure all daemons are up
moby/integration-cli/docker_api_swarm_service_test.go
Line 548 in b4058a6
The text was updated successfully, but these errors were encountered: