You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=== Failed
=== FAIL: cli/cliui TestAgent/Error_during_fetch (0.02s)
clitest.go:246: command "" exited with error: running command "": fetch:
github.com/coder/coder/v2/cli/cliui.Agent
/home/runner/actions-runner/_work/coder/coder/cli/cliui/agent.go:81
- fetch workspace agent:
github.com/coder/coder/v2/cli/cliui.Agent.func2
/home/runner/actions-runner/_work/coder/coder/cli/cliui/agent.go:59
- bad:
github.com/coder/coder/v2/cli/cliui_test.TestAgent.func17
/home/runner/actions-runner/_work/coder/coder/cli/cliui/agent_test.go:281
agent_test.go:383:
Error Trace: /home/runner/actions-runner/_work/coder/coder/cli/cliui/agent_test.go:383
Error: missing lines: ⧗ Waiting for the workspace agent to connect
Test: TestAgent/Error_during_fetch
=== FAIL: cli/cliui TestAgent/Disconnected (0.02s)
clitest.go:246: command "" exited with error: <nil>
agent_test.go:383:
Error Trace: /home/runner/actions-runner/_work/coder/coder/cli/cliui/agent_test.go:383
Error: missing lines: ⧗ The workspace agent lost connection, Wait for it to reconnect or restart your workspace., For more information and troubleshooting, see, ✔ The workspace agent lost connection
Test: TestAgent/Disconnected
The text was updated successfully, but these errors were encountered:
For the Error_during_fetch case, the race is that the agent retries fetching on a separate goroutine, on a timer, so there isn't a controlled number of fetch attempts before the primary agent go routine gets the result.
The test is designed to give different fetch results by reading them off a list, so if there are multiple fetch attempts, it screws up the test.
In order to avoid the race, I think the test has to be redesigned to wait for the logs it's looking for before triggering the different stages of the test.
Seen here: https://github.com/coder/coder/actions/runs/6662837992/job/18107813676?pr=10350
Logs:
The text was updated successfully, but these errors were encountered: