Flaky test: TestSupervisor_SpawnFailure
running into this flaky test
https://gitlab.com/gitlab-org/gitaly/-/jobs/1797728708
--- PASS: TestSupervisor_SpawnFailure (2.05s)
PASS
panic: goroutines running: found unexpected goroutines:
[Goroutine 100 in state select, with io.(*pipe).Read on top of the stack:
goroutine 100 [select]:
io.(*pipe).Read(0xc00030b380, {0xc0005f1000, 0x1000, 0x482372})
/usr/local/go/src/io/pipe.go:57 +0x154
io.(*PipeReader).Read(0xc00010e4b0, {0xc0005f1000, 0x1000, 0x1000})
/usr/local/go/src/io/pipe.go:134 +0x65
bufio.(*Scanner).Scan(0xc0002e3f10)
/usr/local/go/src/bufio/scan.go:215 +0x13d6
github.com/sirupsen/logrus.(*Entry).writerScanner(0x0, 0xc00010e4b0, 0xc000544e10)
/root/go/pkg/mod/github.com/sirupsen/logrus@v1.8.1/writer.go:59 +0xd1
created by github.com/sirupsen/logrus.(*Entry).WriterLevel
/root/go/pkg/mod/github.com/sirupsen/logrus@v1.8.1/writer.go:51 +0x753
Goroutine 101 in state select, with io.(*pipe).Read on top of the stack:
goroutine 101 [select]:
io.(*pipe).Read(0xc00030b3e0, {0xc00043c000, 0x1000, 0x482372})
/usr/local/go/src/io/pipe.go:57 +0x154
io.(*PipeReader).Read(0xc00010e4c0, {0xc00043c000, 0x1000, 0x1000})
/usr/local/go/src/io/pipe.go:134 +0x65
bufio.(*Scanner).Scan(0xc0002e4f10)
/usr/local/go/src/bufio/scan.go:215 +0x13d6
github.com/sirupsen/logrus.(*Entry).writerScanner(0x0, 0xc00010e4c0, 0xc000544e20)
/root/go/pkg/mod/github.com/sirupsen/logrus@v1.8.1/writer.go:59 +0xd1
created by github.com/sirupsen/logrus.(*Entry).WriterLevel
/root/go/pkg/mod/github.com/sirupsen/logrus@v1.8.1/writer.go:51 +0x753
]
goroutine 1 [running]:
gitlab.com/gitlab-org/gitaly/v14/internal/testhelper.mustHaveNoGoroutines()
/builds/gitlab-org/gitaly/internal/testhelper/leakage.go:36 +0x5cf
gitlab.com/gitlab-org/gitaly/v14/internal/testhelper.Run.func1({0x0, 0x0, 0x2238480}, 0xc000116d00)
/builds/gitlab-org/gitaly/internal/testhelper/configure.go:75 +0x381
gitlab.com/gitlab-org/gitaly/v14/internal/testhelper.Run(0x400, {0x0, 0x0, 0x0})
/builds/gitlab-org/gitaly/internal/testhelper/configure.go:76 +0x5b
gitlab.com/gitlab-org/gitaly/v14/internal/supervisor.TestMain(...)
/builds/gitlab-org/gitaly/internal/supervisor/supervisor_test.go:21
main.main()
_testmain.go:51 +0x269
FAIL gitlab.com/gitlab-org/gitaly/v14/internal/supervisor 3.509s