CI Failure Details
CI Run: https://github.com/coder/coder/actions/runs/29421426708
Failed Job: https://github.com/coder/coder/actions/runs/29421426708/job/87372654994 (test-go-pg ubuntu-latest)
Commit: f958727887f406cd0720b583b2913c00394cc4f6 (Cian Johnston)
Failure Date: 2026-07-15
Failure Output
=== FAIL: codersdk/workspacesdk TestAgentConnRejectsCrossAgentRedirects/post_307 (0.15s)
agentconn_test.go:246:
Error Trace: /home/runner/work/coder/coder/codersdk/workspacesdk/agentconn_test.go:246
/home/runner/work/coder/coder/codersdk/workspacesdk/agentconn_test.go:252
/home/runner/work/coder/coder/tailnet/node.go:81
Error: Received unexpected error:
connection closed:
github.com/coder/coder/v2/tailnet.init
<autogenerated>:1
--- FAIL: TestAgentConnRejectsCrossAgentRedirects/post_307 (0.15s)
Logs also reported DONE 27779 tests, 61 skipped, 2 failures in 388.806s, but only the above failure appears in the job log output.
Error Analysis
TestAgentConnRejectsCrossAgentRedirects/post_307 failed with connection closed originating from tailnet.node.go:81 while the test was exercising tailnet connectivity across multiple peers. This looks like an intermittent tailnet connectivity teardown during the redirect scenario rather than a deterministic assertion failure.
No WARNING: DATA RACE, panic, OOM, or process crash indicators were found in the job logs around the failure.
Root Cause Assessment
Likely flaky test / intermittent tailnet connection closure during TestAgentConnRejectsCrossAgentRedirects (tailnet-backed agent HTTP tests).
Assignment Analysis
Intended blame command:
git blame -L 60,130 codersdk/workspacesdk/agentconn_test.go
Proxy via history (available tooling):
git log --oneline -10 --follow codersdk/workspacesdk/agentconn_test.go
- Most recent meaningful change to this test file:
eeb26245 ("fix: pin workspace agent API client to intended agent (#26600)") by Ethan.
Assigning to @ethanndickson as the most recent modifier of the failing test area.
Related Issues
Reproduction
go test ./codersdk/workspacesdk -run TestAgentConnRejectsCrossAgentRedirects/post_307 -count=1
CI Failure Details
CI Run: https://github.com/coder/coder/actions/runs/29421426708
Failed Job: https://github.com/coder/coder/actions/runs/29421426708/job/87372654994 (test-go-pg ubuntu-latest)
Commit: f958727887f406cd0720b583b2913c00394cc4f6 (Cian Johnston)
Failure Date: 2026-07-15
Failure Output
Logs also reported
DONE 27779 tests, 61 skipped, 2 failures in 388.806s, but only the above failure appears in the job log output.Error Analysis
TestAgentConnRejectsCrossAgentRedirects/post_307failed withconnection closedoriginating fromtailnet.node.go:81while the test was exercising tailnet connectivity across multiple peers. This looks like an intermittent tailnet connectivity teardown during the redirect scenario rather than a deterministic assertion failure.No
WARNING: DATA RACE, panic, OOM, or process crash indicators were found in the job logs around the failure.Root Cause Assessment
Likely flaky test / intermittent tailnet connection closure during
TestAgentConnRejectsCrossAgentRedirects(tailnet-backed agent HTTP tests).Assignment Analysis
Intended blame command:
git blame -L 60,130 codersdk/workspacesdk/agentconn_test.goProxy via history (available tooling):
git log --oneline -10 --follow codersdk/workspacesdk/agentconn_test.goeeb26245("fix: pin workspace agent API client to intended agent (#26600)") by Ethan.Assigning to @ethanndickson as the most recent modifier of the failing test area.
Related Issues
Reproduction