CI Run: https://github.com/coder/coder/actions/runs/25007375454
Failing Job: test-go-pg-17
Commit: 33ffedf411b858df81adb91043dca9157f0049a8 (Jeremy Ruppel)
Failure:
coderd/x/chatd TestOpenAIResponsesNoStaleWebSearchReplay
- Error: expected 2 OpenAI requests but recorded 1.
- Log snippet:
=== FAIL: coderd/x/chatd TestOpenAIResponsesNoStaleWebSearchReplay (0.39s)
integration_responses_test.go:97:
Error: "[{[map[content:You are the Coder agent — ... [map[text:search for the latest Coder docs type:input_text]] role:user]] ...}]" should have 2 item(s), but has 1
- Context around failure shows chat interrupted during processing:
chatdebug: failed to load runtime admin chat debug logging setting error="context canceled"
processor: chat interrupted chat_id=f548844e-6e33-46e1-96a6-638cf0f05bb7
Root Cause Assessment:
- Likely flaky chatd integration test where the follow-up message does not trigger a second OpenAI request (chat interrupted / context canceled), leaving only the initial request recorded.
- No data race warnings, panics, or OOM indicators observed in logs.
Assignment Analysis:
- Failing test location:
coderd/x/chatd/integration_responses_test.go lines ~23-80.
github_list_commits for this file shows the most recent meaningful change is commit 62e9752acd3212991de1c4a5da3d43bdf6da1fb9 by @ibetitsmike ("fix: prevent malformed OpenAI Responses continuations"), which introduced/updated these OpenAI Responses replay tests.
- Assigning to @ibetitsmike based on most recent test-file changes in this area.
Related Issues:
- None found in
coder/internal (searched for TestOpenAIResponsesNoStaleWebSearchReplay, integration_responses_test.go, and OpenAI Responses chatd flakes).
Reproduction:
go test ./coderd/x/chatd -run TestOpenAIResponsesNoStaleWebSearchReplay -count=1
CI Run: https://github.com/coder/coder/actions/runs/25007375454
Failing Job:
test-go-pg-17Commit: 33ffedf411b858df81adb91043dca9157f0049a8 (Jeremy Ruppel)
Failure:
coderd/x/chatd TestOpenAIResponsesNoStaleWebSearchReplayRoot Cause Assessment:
Assignment Analysis:
coderd/x/chatd/integration_responses_test.golines ~23-80.github_list_commitsfor this file shows the most recent meaningful change is commit 62e9752acd3212991de1c4a5da3d43bdf6da1fb9 by @ibetitsmike ("fix: prevent malformed OpenAI Responses continuations"), which introduced/updated these OpenAI Responses replay tests.Related Issues:
coder/internal(searched forTestOpenAIResponsesNoStaleWebSearchReplay,integration_responses_test.go, and OpenAI Responses chatd flakes).Reproduction:
go test ./coderd/x/chatd -run TestOpenAIResponsesNoStaleWebSearchReplay -count=1