Skip to content

flake: TestGetWorkspaceConn_StatusCheck (CacheHitHealthyAgent) #1522

@flake-investigator

Description

@flake-investigator

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

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions