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: 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
The text was updated successfully, but these errors were encountered:
Fixescoder/internal#93
`bytes.Buffer` is not concurrency-safe.
`cmd` could write to the buffer concurrently while we're reading the
buffer in
```
require.Eventually(t, func() bool {
return bytes.Contains(output.Bytes(), []byte("ERROR: Downloaded agent binary returned unexpected version output"))
}, testutil.WaitShort, testutil.IntervalSlow)
```
Not sure about the `os: process already finished` flake, though.
---------
Signed-off-by: Danny Kopping <danny@coder.com>
Fixescoder/internal#93
`bytes.Buffer` is not concurrency-safe.
`cmd` could write to the buffer concurrently while we're reading the
buffer in
```
require.Eventually(t, func() bool {
return bytes.Contains(output.Bytes(), []byte("ERROR: Downloaded agent binary returned unexpected version output"))
}, testutil.WaitShort, testutil.IntervalSlow)
```
Not sure about the `os: process already finished` flake, though.
---------
Signed-off-by: Danny Kopping <danny@coder.com>
Seen here
And here
The text was updated successfully, but these errors were encountered: