Skip to content

[WIP RFC] agent/reconcileTaskState: wait for closeManager#2906

Closed
kolyshkin wants to merge 1 commit intomoby:masterfrom
kolyshkin:close-manager-wait
Closed

[WIP RFC] agent/reconcileTaskState: wait for closeManager#2906
kolyshkin wants to merge 1 commit intomoby:masterfrom
kolyshkin:close-manager-wait

Conversation

@kolyshkin
Copy link
Contributor

Since PR #2880 the test suite always panics:

panic: Log in goroutine after TestWorkerUpdate has completed

goroutine 1175 [running]:
testing.(*common).logDepth(0xc00019a100, 0xc0000396a0, 0x1d, 0x3)
/usr/local/go/src/testing/testing.go:634 +0x51a
testing.(*common).log(...)
/usr/local/go/src/testing/testing.go:614
testing.(*common).Log(0xc00019a100, 0xc00006fb00, 0x1, 0x1)
/usr/local/go/src/testing/testing.go:642 +0x79
github.com/docker/swarmkit/agent.(*mockTaskController).Remove(0xc00020a780, 0x13b6f40, 0xc0000b4010, 0x13b6f40, 0xc0000b4010)
/home/circleci/.go_workspace/src/github.com/docker/swarmkit/agent/worker_test.go:604 +0x8e
github.com/docker/swarmkit/agent.reconcileTaskState.func1(0xc0004dac60)
/home/circleci/.go_workspace/src/github.com/docker/swarmkit/agent/worker.go:270 +0x137
created by github.com/docker/swarmkit/agent.reconcileTaskState
/home/circleci/.go_workspace/src/github.com/docker/swarmkit/agent/worker.go:313 +0x1a6f
FAIL github.com/docker/swarmkit/agent 4.244s

This is an attempt to fix this.

Since commit be528e8 ("Bump Golang 1.12.9") test suite panics:

> panic: Log in goroutine after TestWorkerUpdate has completed
>
> goroutine 1175 [running]:
> testing.(*common).logDepth(0xc00019a100, 0xc0000396a0, 0x1d, 0x3)
> 	/usr/local/go/src/testing/testing.go:634 +0x51a
> testing.(*common).log(...)
> 	/usr/local/go/src/testing/testing.go:614
> testing.(*common).Log(0xc00019a100, 0xc00006fb00, 0x1, 0x1)
> 	/usr/local/go/src/testing/testing.go:642 +0x79
> github.com/docker/swarmkit/agent.(*mockTaskController).Remove(0xc00020a780, 0x13b6f40, 0xc0000b4010, 0x13b6f40, 0xc0000b4010)
> 	/home/circleci/.go_workspace/src/github.com/docker/swarmkit/agent/worker_test.go:604 +0x8e
> github.com/docker/swarmkit/agent.reconcileTaskState.func1(0xc0004dac60)
> 	/home/circleci/.go_workspace/src/github.com/docker/swarmkit/agent/worker.go:270 +0x137
> created by github.com/docker/swarmkit/agent.reconcileTaskState
> 	/home/circleci/.go_workspace/src/github.com/docker/swarmkit/agent/worker.go:313 +0x1a6f
> FAIL	github.com/docker/swarmkit/agent	4.244s
>

This is an attempt to fix this.

Signed-off-by: Kir Kolyshkin <[email protected]>
@kolyshkin
Copy link
Contributor Author

I don't remember where I was going with this, so closing

@kolyshkin kolyshkin closed this Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant