Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestUpdaterRollback test failures in CI #2559

Open
cyli opened this issue Mar 14, 2018 · 8 comments
Open

TestUpdaterRollback test failures in CI #2559

cyli opened this issue Mar 14, 2018 · 8 comments

Comments

@cyli
Copy link
Contributor

cyli commented Mar 14, 2018

I've been seeing this test failure more often in CI:

time="2018-03-14T22:31:27Z" level=error msg="update failed" error="task 68j7zmft3c0krlt6zv1h5zb31 was already shut down when reached by updater" task.id=g4bhodvfo543x1xe3fwp28k4t 
--- FAIL: TestUpdaterRollback (4.47s)
    --- FAIL: TestUpdaterRollback/pause/monitor_set/spec_version_unset (1.60s)
	Error Trace:	testutils.go:26
			update_test.go:287
			update_test.go:19
	Error:		no task creation
    		

FAIL
@cyli
Copy link
Contributor Author

cyli commented May 2, 2018

Also seeing:

--- FAIL: TestUpdaterRollback (4.44s)
    --- FAIL: TestUpdaterRollback/pause/monitor_set/spec_version_set (1.60s)
	Error Trace:	testutils.go:26
			update_test.go:287
			update_test.go:20
	Error:		no task creation
    		

FAIL
coverage: 86.5% of statements
FAIL	github.com/docker/swarmkit/manager/orchestrator/replicated	7.765s

@cyli
Copy link
Contributor Author

cyli commented Jun 7, 2018

These aren't new, but I had saved additional failures from a while ago as something to look into:

https://circleci.com/gh/docker/swarmkit/7887:

time="2017-08-17T06:01:50Z" level=error msg="update failed" error="task g3ktlgigd8v6pzzzysieyjl6u was already shut down when reached by updater" task.id=lm1qzx2e9fz8lik7ghgj0shmf 
time="2017-08-17T06:01:51Z" level=error msg="update failed" error="task zr1jjr4bjcgqrk7vf3f5120he was already shut down when reached by updater" task.id=o3igf120bdt2e5t9zl8uhyuq6 
--- FAIL: TestUpdaterRollback (4.00s)
    --- FAIL: TestUpdaterRollback/continue/spec_version_unset (1.67s)
	Error Trace:	update_test.go:281
			update_test.go:24
	Error:		Not equal: "image2" (expected)
    			        != "image1" (actual)
    		

https://circleci.com/gh/docker/swarmkit/7875

--- FAIL: TestUpdaterRollback (4.42s)
    --- FAIL: TestUpdaterRollback/pause/monitor_set/spec_version_unset (1.59s)
	Error Trace:	testutils.go:26
			update_test.go:287
			update_test.go:19
	Error:		no task creation
    		

FAIL
coverage: 86.7% of statements
FAIL	github.com/docker/swarmkit/manager/orchestrator/replicated	6.996s

@olljanat
Copy link
Contributor

@thaJeztah @cyli #2762 is merged and this should not happen anymore.

@thaJeztah
Copy link
Member

closing; per the above; thanks!

@olljanat
Copy link
Contributor

olljanat commented Oct 30, 2018

@thaJeztah FYI this one still happened on #2738 so probably it need to be re-opened.

EDIT: Difference before and after #2762 is that earlier this error happened after ~1,5 second and now after ~2,5 second.

Maybe we should follow this for a while and see if timeout value should be even higher?

@thaJeztah
Copy link
Member

Let me reopen

ping @dperny @anshulpundir FYI ^^ the above may indicate that there's a regression in performance?

@thaJeztah thaJeztah reopened this Oct 30, 2018
@olljanat
Copy link
Contributor

Some more log from recent CI build on master

ok  	github.com/docker/swarmkit/manager/orchestrator/replicated	6.338s	coverage: 85.1% of statements
--- FAIL: TestUpdaterRollback (5.41s)
    --- FAIL: TestUpdaterRollback/pause/monitor_set/spec_version_unset (2.59s)
	Error Trace:	testutils.go:26
			update_test.go:285
			update_test.go:19
	Error:		no task creation
            

FAIL
coverage: 85.1% of statements
FAIL	github.com/docker/swarmkit/manager/orchestrator/replicated	7.331s
make: *** [coverage] Error 1
Exited with code 2

@olljanat
Copy link
Contributor

olljanat commented Jan 10, 2019

I find out that this can be easily replicated with command:
go test -v -race -count 100 -run TestUpdaterRollback github.com/docker/swarmkit/manager/orchestrator/replicated

Interesting detail is that if I remove -race switch tests will pass just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants