Description
Seen here
=== Failed
=== FAIL: provisionersdk TestAgentScript/Invalid (10.02s)
agent_test.go:126:
Error Trace: /home/runner/work/coder/coder/provisionersdk/agent_test.go:126
Error: Received unexpected error:
os: process already finished
Test: TestAgentScript/Invalid
=== FAIL: provisionersdk TestAgentScript (0.00s)
And here
=== Failed
=== FAIL: provisionersdk TestAgentScript/Invalid (10.01s)
agent_test.go:128: unable to cancel the command, see logs:
+ trap waitonexit EXIT
+ mktemp -d -t coder.XXXXXX
+ BINARY_DIR=/tmp/coder.kHVqDU
+ BINARY_NAME=coder
+ BINARY_URL=http://127.0.0.1:32787/bin/coder-linux-amd64
+ cd /tmp/coder.kHVqDU
+ :
+ status=
+ command -v curl
+ curl -fsSL --compressed http://127.0.0.1:32787/bin/coder-linux-amd64 -o coder
+ break
+ chmod +x coder
+ [ -n ]
+ export CODER_AGENT_AUTH=token
+ export CODER_AGENT_URL=http://127.0.0.1:32787/
+ ./coder --version
+ head -n1
+ output=this is not the agent you are looking for
+ grep -q Coder
+ echo this is not the agent you are looking for
+ echo ERROR: Downloaded agent binary returned unexpected version output
ERROR: Downloaded agent binary returned unexpected version output
+ echo coder --version output: "this is not the agent you are looking for"
coder --version output: "this is not the agent you are looking for"
+ exit 2
+ waitonexit
+ echo === Agent script exited with non-zero code (2). Sleeping 24h to preserve logs...
=== Agent script exited with non-zero code (2). Sleeping 24h to preserve logs...
+ sleep 86400
testing.go:1398: race detected during execution of test