Skip to content

flake: TestAutoPromoteQueuedMessageFallsBackForInvalidQueuedModelConfigID #1500

@flake-investigator

Description

@flake-investigator

CI Run: https://github.com/coder/coder/actions/runs/24908244568
Failed Job: test-go-pg (ubuntu-latest) (https://github.com/coder/coder/actions/runs/24908244568/job/72945194923)
Commit: a497d934db7e0a78eccbec24d5d304380ac0e86b (author: blinkagent[bot])

Failure:

=== FAIL: coderd/x/chatd TestAutoPromoteQueuedMessageFallsBackForInvalidQueuedModelConfigID (25.23s)
    chatd_test.go:2872:
        Error:       Condition never satisfied

Log snippet:

=== FAIL: coderd/x/chatd TestAutoPromoteQueuedMessageFallsBackForInvalidQueuedModelConfigID (25.23s)
    t.go:111: 2026-04-24 19:55:26.467 [info]  processor: chat interrupted  chat_id=51e62152-186e-4019-b522-dfb1d5e4b10b
    chatd_test.go:2872:
        Error:       Condition never satisfied
        Test:       TestAutoPromoteQueuedMessageFallsBackForInvalidQueuedModelConfigID

Error analysis:

  • Single test failure in coderd/x/chatd/chatd_test.go.
  • The failing assertion is require.Eventually waiting for requestCount.Load() >= 2 in testAutoPromoteQueuedMessageFallback (line 2872). This indicates the fallback auto-promotion path never triggered a second streaming request within the timeout.
  • No panic/OOM indicators or data race warnings observed in the job logs.

Root cause classification: Flaky test (timing-sensitive auto-promotion fallback path).

Assignment analysis:

  • git blame -L 2816,2878 coderd/x/chatd/chatd_test.go
  • git log --oneline -10 --follow coderd/x/chatd/chatd_test.go
    Both point to c7cac9de (“fix: persist per-turn model on chats and queued messages”) by Michael Suchacz, which introduced/modified the auto-promote queued fallback tests.

Assignee: @ibetitsmike

Related issues search (coder/internal):

Reproduction (if needed):

go test ./coderd/x/chatd -run TestAutoPromoteQueuedMessageFallsBackForInvalidQueuedModelConfigID -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