finch
finch copied to clipboard
`BeforeEach` of `login` sometimes fails in CI
Describe the bug
BeforeEach of login sometimes fails in CI.
Steps to reproduce
It's flaky. Sometimes it passes, while sometimes it fails.
Expected behavior
It should always pass.
Screenshots or logs
https://github.com/runfinch/finch/actions/runs/3537401635/jobs/5937342920:
time="2022-11-24T03:26:51Z" level=fatal msg="failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: time=\"2022-11-24T03:26:51Z\" level=fatal msg=\"listen tcp 0.0.0.0:52086: bind: address already in use\"\nFailed to write to log, write /home/ec2-user.linux/.local/share/nerdctl/1935db59/containers/finch/cf16f87c4026e285e41a856a4364e8ca81c312fd7e5da5fe7d0ec1179e98f6c0/oci-hook.createRuntime.log: file already closed: unknown"
time="2022-11-24T03:26:51Z" level=fatal msg="exit status 1"
[FAILED] in [BeforeEach] - /Users/ec2-user/go/pkg/mod/github.com/runfinch/[email protected]/command/command.go:122 @ 11/24/22 03:26:51.812