Docker command tests fail on Windows CI
Docker tests pass on local Vagrant environment, but fail on Windows CI, including:
TestDockerCommandSuccessRun
TestDockerCommandMultistepBuild/Successful_build_with_release_and_after_script_step
TestDockerCommandSuccessRunRawVariable
See log at https://gitlab.com/gitlab-org/gitlab-runner/-/jobs/595057135#L1875
=== RUN TestDockerCommandSuccessRun
Running with gitlab-runner development version (HEAD)
on 59bd9a4f
Preparing the "docker-windows" executor
Using Docker executor with image mcr.microsoft.com/windows/servercore:1809 ...
Pulling docker image gitlab/gitlab-runner-helper:x86_64-latest-servercore1809 ...
Using docker image sha256:528a5fb201d35ba08a4ae7e3ea8909e8ba961d9747f55742f2c2683231f5fc00 for gitlab/gitlab-runner-helper:x86_64-latest-servercore1809 ...
Pulling docker image mcr.microsoft.com/windows/servercore:1809 ...
Using docker image sha256:36aed4b73b9cc01b6a2291ffc9ab3e4d42fb23e7bc48c79836fbe7c410439213 for mcr.microsoft.com/windows/servercore:1809 ...
Preparing environment
panic: test timed out after 10m0s
goroutine 1502 [running]:
testing.(*M).startAlarm.func1()
C:/Go/src/testing/testing.go:1377 +0xe6
created by time.goFunc
C:/Go/src/time/sleep.go:168 +0x4b
goroutine 1 [chan receive, 9 minutes]:
testing.(*T).Run(0xc0000d2d00, 0xf6eef2, 0x1b, 0xfc8768, 0x4d1801)
C:/Go/src/testing/testing.go:961 +0x37e
testing.runTests.func1(0xc0000d3a00)
C:/Go/src/testing/testing.go:1202 +0x7f
testing.tRunner(0xc0000d3a00, 0xc000207d80)
C:/Go/src/testing/testing.go:909 +0xd0
testing.runTests(0xc00034c5e0, 0x175c600, 0x4d, 0x4d, 0xc00002e8a0)
C:/Go/src/testing/testing.go:1200 +0x2ae
testing.(*M).Run(0xc0002eea00, 0x0)
C:/Go/src/testing/testing.go:1117 +0x17d
gitlab.com/gitlab-org/gitlab-runner/executors/docker.TestMain(0xc0002eea00)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/src/gitlab.com/gitlab-org/gitlab-runner/executors/docker/docker_test.go:43 +0xef
main.main()
_testmain.go:196 +0x13c
goroutine 6 [chan receive]:
k8s.io/klog.(*loggingT).flushDaemon(0x17655c0)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/pkg/mod/k8s.io/klog@v1.0.0/klog.go:1010 +0x92
created by k8s.io/klog.init.0
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/pkg/mod/k8s.io/klog@v1.0.0/klog.go:411 +0xdd
goroutine 8 [syscall, 9 minutes]:
os/signal.signal_recv(0x460796)
C:/Go/src/runtime/sigqueue.go:147 +0xa3
os/signal.loop()
C:/Go/src/os/signal/signal_unix.go:23 +0x29
created by os/signal.init.0
C:/Go/src/os/signal/signal_unix.go:29 +0x48
goroutine 1489 [select]:
gitlab.com/gitlab-org/gitlab-runner/common.(*Build).run(0xc000063180, 0x10d84c0, 0xc000386f60, 0x10e3640, 0xc0006e2000, 0x0, 0x0)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/src/gitlab.com/gitlab-org/gitlab-runner/common/build.go:533 +0x38a
gitlab.com/gitlab-org/gitlab-runner/common.(*Build).Run(0xc000063180, 0xc000953b88, 0x10e35e0, 0xc007371b40, 0x0, 0x0)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/src/gitlab.com/gitlab-org/gitlab-runner/common/build.go:743 +0x888
gitlab.com/gitlab-org/gitlab-runner/executors/docker_test.TestDockerCommandSuccessRun(0xc0000d2d00)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/src/gitlab.com/gitlab-org/gitlab-runner/executors/docker/docker_command_test.go:77 +0x1b8
testing.tRunner(0xc0000d2d00, 0xfc8768)
C:/Go/src/testing/testing.go:909 +0xd0
created by testing.(*T).Run
C:/Go/src/testing/testing.go:960 +0x357
goroutine 1495 [IO wait, 9 minutes]:
internal/poll.runtime_pollWait(0x19d4ec8, 0x72, 0x10baae0)
C:/Go/src/runtime/netpoll.go:184 +0x5c
internal/poll.(*pollDesc).wait(0xc000342e48, 0x72, 0x16fc500, 0x0, 0x0)
C:/Go/src/internal/poll/fd_poll_runtime.go:87 +0x4c
internal/poll.(*ioSrv).ExecIO(0x1760b60, 0xc000342c98, 0xc007370000, 0x1, 0x0, 0x2cc)
C:/Go/src/internal/poll/fd_windows.go:228 +0x121
internal/poll.(*FD).acceptOne(0xc000342c80, 0x2cc, 0xc0005fe000, 0x2, 0x2, 0xc000342c98, 0xc, 0x474ee68, 0x0, 0xc0001cbbc0)
C:/Go/src/internal/poll/fd_windows.go:896 +0xa9
internal/poll.(*FD).Accept(0xc000342c80, 0xc0001cbd20, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
C:/Go/src/internal/poll/fd_windows.go:930 +0x17a
net.(*netFD).accept(0xc000342c80, 0xc0099de088, 0x802c00, 0x8)
C:/Go/src/net/fd_windows.go:193 +0x7b
net.(*TCPListener).accept(0xc007247d00, 0xc00006ea64, 0xc00006ea20, 0x0)
C:/Go/src/net/tcpsock_posix.go:139 +0x39
net.(*TCPListener).Accept(0xc007247d00, 0xc0001cbe08, 0x18, 0xc000074c00, 0x802165)
C:/Go/src/net/tcpsock.go:261 +0x4e
net/http.(*Server).Serve(0xc000124000, 0x10d4a00, 0xc007247d00, 0x0, 0x0)
C:/Go/src/net/http/server.go:2896 +0x28d
net/http/httptest.(*Server).goServe.func1(0xc00006ea20)
C:/Go/src/net/http/httptest/server.go:298 +0x82
created by net/http/httptest.(*Server).goServe
C:/Go/src/net/http/httptest/server.go:296 +0x63
goroutine 35 [syscall, locked to thread]:
syscall.Syscall6(0x7ff8ef4b6b90, 0x5, 0x1f0, 0xc00031ff9c, 0xc00031ffa0, 0xc00031ffa8, 0xffffffff, 0x0, 0x0, 0x0, ...)
C:/Go/src/runtime/syscall_windows.go:197 +0xfa
github.com/Microsoft/go-winio.getQueuedCompletionStatus(0x1f0, 0xc00031ff9c, 0xc00031ffa0, 0xc00031ffa8, 0xffffffff, 0x10baae0, 0xc0004772f8)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/pkg/mod/github.com/!microsoft/go-winio@v0.4.12/zsyscall_windows.go:100 +0xb6
github.com/Microsoft/go-winio.ioCompletionProcessor(0x1f0)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/pkg/mod/github.com/!microsoft/go-winio@v0.4.12/file.go:159 +0xb6
created by github.com/Microsoft/go-winio.initIo
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/pkg/mod/github.com/!microsoft/go-winio@v0.4.12/file.go:72 +0x7d
goroutine 1500 [select]:
github.com/Microsoft/go-winio.(*win32File).asyncIo(0xc00018c140, 0xc000181cb0, 0xc00018c170, 0x0, 0x10baae0, 0x16fc5c8, 0x10baae0, 0x16fc5c8, 0x4dbe3c)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/pkg/mod/github.com/!microsoft/go-winio@v0.4.12/file.go:186 +0x14b
github.com/Microsoft/go-winio.(*win32File).Read(0xc00018c140, 0xc000230000, 0x8009, 0x8009, 0x0, 0x0, 0x0)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/pkg/mod/github.com/!microsoft/go-winio@v0.4.12/file.go:224 +0x168
github.com/Microsoft/go-winio.(*win32MessageBytePipe).Read(0xc000138ee0, 0xc000230000, 0x8009, 0x8009, 0x446b83, 0xa000, 0xdd3da0)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/pkg/mod/github.com/!microsoft/go-winio@v0.4.12/pipe.go:115 +0x61
bufio.(*Reader).Read(0xc000386960, 0xc000230000, 0x8009, 0x8009, 0x50, 0xc0000c8870, 0x0)
C:/Go/src/bufio/bufio.go:212 +0x15a
github.com/docker/docker/pkg/stdcopy.StdCopy(0x199c2e0, 0xc007371b40, 0x199c2e0, 0xc007371b40, 0x10b8340, 0xc000386960, 0x10b9701, 0xc0000c8870, 0x19d4ff8)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/pkg/mod/github.com/docker/engine@v1.4.2-0.20190822180741-9552f2b2fdde/pkg/stdcopy/stdcopy.go:108 +0xf3
gitlab.com/gitlab-org/gitlab-runner/executors/docker.(*executor).watchContainer.func1(0xc0006e2000, 0xc000138e80, 0xc000039b00)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/src/gitlab.com/gitlab-org/gitlab-runner/executors/docker/docker.go:748 +0xe7
created by gitlab.com/gitlab-org/gitlab-runner/executors/docker.(*executor).watchContainer
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/src/gitlab.com/gitlab-org/gitlab-runner/executors/docker/docker.go:747 +0x398
goroutine 1498 [select]:
gitlab.com/gitlab-org/gitlab-runner/executors/docker.(*executor).watchContainer(0xc0006e2000, 0x10d8440, 0xc00023a180, 0xc000033580, 0x40, 0x10b8380, 0xc00032f200, 0x0, 0x0)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/src/gitlab.com/gitlab-org/gitlab-runner/executors/docker/docker.go:767 +0x4fe
gitlab.com/gitlab-org/gitlab-runner/executors/docker.(*commandExecutor).Run(0xc0006e2000, 0xc000038840, 0x5f, 0xf61b49, 0xe, 0x1, 0x10d8440, 0xc00023a180, 0x0, 0x2030000)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/src/gitlab.com/gitlab-org/gitlab-runner/executors/docker/docker_command.go:117 +0x3ba
gitlab.com/gitlab-org/gitlab-runner/common.(*Build).executeStage.func1(0xc0000a1840, 0xf6c419)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/src/gitlab.com/gitlab-org/gitlab-runner/common/build.go:313 +0x21a
gitlab.com/gitlab-org/gitlab-runner/helpers.(*BuildSection).Execute(0xc0000a1998, 0x10b9160, 0xc000063448, 0x0, 0x0)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/src/gitlab.com/gitlab-org/gitlab-runner/helpers/build_section.go:48 +0xd2
gitlab.com/gitlab-org/gitlab-runner/common.(*Build).executeStage(0xc000063180, 0x10d8440, 0xc00023a180, 0xf61b49, 0xe, 0x10e3640, 0xc0006e2000, 0xc000039980, 0x0)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/src/gitlab.com/gitlab-org/gitlab-runner/common/build.go:317 +0x736
gitlab.com/gitlab-org/gitlab-runner/common.(*Build).executeScript(0xc000063180, 0x10d8440, 0xc00023a180, 0x10e3640, 0xc0006e2000, 0x0, 0x0)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/src/gitlab.com/gitlab-org/gitlab-runner/common/build.go:376 +0xf4
gitlab.com/gitlab-org/gitlab-runner/common.(*Build).run.func1(0xc0003860c0, 0xc000063180, 0x10d8440, 0xc00023a180, 0x10e3640, 0xc0006e2000)
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/src/gitlab.com/gitlab-org/gitlab-runner/common/build.go:528 +0x5d
created by gitlab.com/gitlab-org/gitlab-runner/common.(*Build).run
C:/GitLab-Runner/builds/gitlab-org/gitlab-runner/.gopath/src/gitlab.com/gitlab-org/gitlab-runner/common/build.go:527 +0x21b
FAIL gitlab.com/gitlab-org/gitlab-runner/executors/docker 601.622s
FAIL