Skip to content

flake: TestAdvisorHappyPath_RootChat #1548

@flake-investigator

Description

@flake-investigator

CI Run Link: https://github.com/coder/coder/actions/runs/26492817796
Failing Job: https://github.com/coder/coder/actions/runs/26492817796/job/78014053269 (test-go-pg (macos-latest))
Failure time: 2026-05-27T05:49:50Z (same window as Slack alert)

Commit Info:

Failure evidence:

=== FAIL: coderd/x/chatd TestAdvisorHappyPath_RootChat (1.45s)
    chatd_test.go:10035:
        Error:       Not equal:
            expected: []string{"break the problem ", "into smaller pieces first"}
            actual  : []string(nil)
        Test:        TestAdvisorHappyPath_RootChat
        Messages:    advisor nested text deltas must stream into the parent tool card
DONE 24437 tests, 90 skipped, 1 failure in 902.622s

Root cause assessment:

  • Likely flaky test / timing in advisor streaming: the live collector did not capture the expected nested text deltas, resulting in nil vs expected advisorDeltas. This suggests a race between advisor stream emission and the live collector consumption.

Data race / panic / OOM checks:

  • Searched logs for WARNING: DATA RACE, panic:, out of memory, signal: killed — none found.

Precise assignment analysis:

  • Test function location: coderd/x/chatd/chatd_test.go around TestAdvisorHappyPath_RootChat (lines ~9856–10035).
  • git log --oneline -10 --follow coderd/x/chatd/chatd_test.go shows the most recent substantive change touching this file is:
    • 8b1705e “feat: route chatd provider traffic through aibridge (#25629)” (Michael Suchacz / @ibetitsmike)
  • Unable to isolate a narrower line-level blame in this environment; assigning to the most recent meaningful modifier of the chatd test file.

Assignment:

Related issues:

  • No existing coder/internal issues found for TestAdvisorHappyPath_RootChat or the error message.

Reproduction (best effort):

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