CI Run
Commit
- SHA: cee504e8a0f253a1111712a7d6e8d3d172f1085a
- Author: Rowan Smith
Failure
=== FAIL: coderd/x/chatd TestPromoteQueuedWhileRequiresAction (25.15s)
chatd_test.go:8900:
Error: Received unexpected error:
context deadline exceeded
Messages: Eventually timed out
chatd_test.go:8922:
Error: "1" is not less than "0"
Messages: synthetic tool-result must be published before the promoted user message
Error Analysis
TestPromoteQueuedWhileRequiresAction timed out waiting for synthetic tool-result publication and then observed the promoted user message before the synthetic tool-result.
- This indicates the queued-message promotion ordering for
requires_action did not converge within the test deadline, and the publish order expectation failed.
- No
WARNING: DATA RACE, panic/OOM, or crash indicators were found in the logs.
Root Cause Assessment
Likely flaky timing in the queued-message promotion path for requires_action: the synthetic tool-result publish is delayed or missed, causing the eventual timeout and ordering assertion failure.
Assignment Analysis
Intended blame command:
git blame -L 8780,8935 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 affecting queued-message promotion tests:
6b0518d fix: state-aware queued message promotion (Mathias Fredriksson)
Assigning to @mafredri as the most recent modifier touching the promotion logic + test area.
Related Issues
Reproduction
go test ./coderd/x/chatd -run TestPromoteQueuedWhileRequiresAction -count=1
CI Run
test-go-pg (ubuntu-latest)(https://github.com/coder/coder/actions/runs/25649576060/job/75285061676)Commit
Failure
Error Analysis
TestPromoteQueuedWhileRequiresActiontimed out waiting for synthetic tool-result publication and then observed the promoted user message before the synthetic tool-result.requires_actiondid not converge within the test deadline, and the publish order expectation failed.WARNING: DATA RACE, panic/OOM, or crash indicators were found in the logs.Root Cause Assessment
Likely flaky timing in the queued-message promotion path for
requires_action: the synthetic tool-result publish is delayed or missed, causing the eventual timeout and ordering assertion failure.Assignment Analysis
Intended blame command:
git blame -L 8780,8935 coderd/x/chatd/chatd_test.goProxy via history (available tooling):
git log --oneline -10 --follow coderd/x/chatd/chatd_test.go6b0518d fix: state-aware queued message promotion(Mathias Fredriksson)Assigning to @mafredri as the most recent modifier touching the promotion logic + test area.
Related Issues
Reproduction