CI Run
Commit
- SHA: ef0151601e4a282190516b2c064b3ca3c73fbd0c
- Author: Ethan
Failure
=== FAIL: coderd/x/chatd TestGetWorkspaceConn_StatusCheck/CacheHitHealthyAgent (0.00s)
chatd_internal_test.go:4371:
Error: Received unexpected error:
workspace agent is disconnected and cannot execute tools.
Error Analysis
- The
CacheHitHealthyAgent subtest expects the cached agent connection to be reused for a healthy agent, but getWorkspaceConn returned errChatAgentDisconnected instead.
- This indicates the cache-hit status check path classified a healthy agent as disconnected.
- No panic/OOM indicators found in the job logs. No data race warnings observed.
Root Cause Assessment
Likely flaky timing in the cache-hit status check: the health check path occasionally marks a recently connected agent as disconnected under Windows CI load.
Assignment Analysis
Intended blame command:
git blame -L 4221,4325 coderd/x/chatd/chatd_internal_test.go
Proxy via history (available tooling):
git log --oneline -10 --follow coderd/x/chatd/chatd_internal_test.go
- Most recent substantive changes in this file include
0bfb9f6 feat: show agent turn summary in agents sidebar (Michael Suchacz).
Assigning to @ibetitsmike as the most recent owner of this test file. (Line-level blame unavailable in current tooling.)
Related Issues
Searched in coder/internal:
TestGetWorkspaceConn_StatusCheck
GetWorkspaceConn
CacheHitHealthyAgent
workspace agent is disconnected
No existing issues found.
Reproduction
go test ./coderd/x/chatd -run TestGetWorkspaceConn_StatusCheck -count=1
CI Run
test-go-pg (windows-2022)(https://github.com/coder/coder/actions/runs/25477222206/job/74753187290)Commit
Failure
Error Analysis
CacheHitHealthyAgentsubtest expects the cached agent connection to be reused for a healthy agent, butgetWorkspaceConnreturnederrChatAgentDisconnectedinstead.Root Cause Assessment
Likely flaky timing in the cache-hit status check: the health check path occasionally marks a recently connected agent as disconnected under Windows CI load.
Assignment Analysis
Intended blame command:
git blame -L 4221,4325 coderd/x/chatd/chatd_internal_test.goProxy via history (available tooling):
git log --oneline -10 --follow coderd/x/chatd/chatd_internal_test.go0bfb9f6 feat: show agent turn summary in agents sidebar(Michael Suchacz).Assigning to @ibetitsmike as the most recent owner of this test file. (Line-level blame unavailable in current tooling.)
Related Issues
Searched in
coder/internal:TestGetWorkspaceConn_StatusCheckGetWorkspaceConnCacheHitHealthyAgentworkspace agent is disconnectedNo existing issues found.
Reproduction