Skip to content

flake: TestPromoteQueuedWhileRequiresActionMixedTools #1523

@flake-investigator

Description

@flake-investigator

CI Run

Commit

  • SHA: ef0151601e4a282190516b2c064b3ca3c73fbd0c
  • Author: Ethan

Failure

=== FAIL: coderd/x/chatd TestPromoteQueuedWhileRequiresActionMixedTools (29.80s)
    chatd_test.go:9119:
        Error:      Received unexpected error:
                    context deadline exceeded
        Messages:   Eventually timed out
    chatd_test.go:9144:
        Error:      Received unexpected error:
                    context deadline exceeded

Log context preceding the timeout:

processor: tool returned error result ... tool_error="workspace agent connector is not configured"

Error Analysis

  • testutil.Eventually assertions in TestPromoteQueuedWhileRequiresActionMixedTools timed out while waiting for queued message promotion state in a requires_action chat.
  • The test observed tool execution errors (workspace agent connector is not configured) during the run, and the expected promotion state was never reached before the deadline.
  • No panic/OOM indicators found in the job logs. No data race warnings observed.

Root Cause Assessment

Likely flaky timing in the queued-message promotion path for mixed tool results under Windows CI. The requires_action promotion flow did not converge before the test deadline.

Assignment Analysis

Intended blame command:

  • git blame -L 8977,9160 coderd/x/chatd/chatd_test.go

Proxy via history (available tooling):

  • git log --oneline -10 --follow coderd/x/chatd/chatd_test.go
    • Most recent substantive change: 6b0518d fix: state-aware queued message promotion (Mathias Fredriksson)

Assigning to @mafredri as the most recent modifier touching the promotion logic + test.

Related Issues

Searched in coder/internal:

  • TestPromoteQueuedWhileRequiresActionMixedTools
  • PromoteQueuedWhileRequiresAction
  • RequiresActionMixedTools

No existing issues found.

Reproduction

go test ./coderd/x/chatd -run TestPromoteQueuedWhileRequiresActionMixedTools -count=1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions