CI Run: https://github.com/coder/coder/actions/runs/24667944922
Jobs:
Failure summary:
- TestPatchChat/Title/TrimsWhitespace failed in test-go-pg with HTTP 409 from UpdateChat.
- TestPatchChat/Title/Rename failed in test-go-pg-17 with the same HTTP 409.
Error excerpts:
exp_chats_test.go:4188:
Error: Received unexpected error:
PATCH http://127.0.0.1:42913/api/experimental/chats/f04e10f3-d8b5-4b6d-a387-de5a3399bc8f: unexpected status code 409: Title regeneration already in progress for this chat.
Test: TestPatchChat/Title/TrimsWhitespace
exp_chats_test.go:4169:
Error: Received unexpected error:
PATCH http://127.0.0.1:46303/api/experimental/chats/a17211e9-622c-45e3-92ec-792bbc425c5c: unexpected status code 409: Title regeneration already in progress for this chat.
Test: TestPatchChat/Title/Rename
Root cause assessment:
- Flaky test / backend race: UpdateChat rejects title updates while a background title regeneration is in progress. The tests update title immediately after chat creation and can collide with asynchronous regeneration.
- No data race warnings, panics, or OOM indicators found in logs.
Assignment analysis:
- Intended blame command:
git blame -L 4135,4195 coderd/exp_chats_test.go (Title subtests).
- File history:
git log --oneline -10 --follow coderd/exp_chats_test.go shows the latest substantive changes for these subtests in commit 410f9a5 ("feat: allow renaming of agent chat title") by @jaaydenh.
- Assigning to @jaaydenh as the most recent meaningful modifier of this test section.
Related issues searched:
- "TestPatchChat", "TestPatchChat/Title", "Title regeneration already in progress", "exp_chats_test.go" — no matches in coder/internal.
Reproduction (if needed):
go test ./coderd -run TestPatchChat/Title -count=1
CI Run: https://github.com/coder/coder/actions/runs/24667944922
Jobs:
Commit: 410f9a5e19fedf5f37ea3d6307cfbe4dd3a190e2 (Jaayden Halko) coder/coder@410f9a5
Failure summary:
Error excerpts:
Root cause assessment:
Assignment analysis:
git blame -L 4135,4195 coderd/exp_chats_test.go(Title subtests).git log --oneline -10 --follow coderd/exp_chats_test.goshows the latest substantive changes for these subtests in commit 410f9a5 ("feat: allow renaming of agent chat title") by @jaaydenh.Related issues searched:
Reproduction (if needed):