You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fork-ci.yaml does not run the swagger annotation tests, so a broken @Router comment block passes fork CI and only shows up later as a dropped route in coderd/apidoc/swagger.json.
Found on #36 (head de74d221a8): a const and its doc comment sit between the swagger block of watchChatTodos and the func. Go joins them into one comment group, so assertGoCommentFirst in coderd/coderdtest/swaggerparser.go fails TestEndpointsDocumented, and swag loses the route on the next make gen. fork-ci was green because no job runs ./coderd/coderdtest.
Proposed fix: in the chat-tests job (it already starts Postgres), run
go test -count=1 -run 'TestEndpointsDocumented|TestSwagger' ./coderd/coderdtest ./enterprise/coderd/coderdenttest
Acceptance:
The tests pass on current main (if they fail, fix the annotation drift in the same PR or file it separately).
Opened #41: the chat-tests job runs the swagger annotation tests. The pattern is EndpointsDocumented|TestSwagger so it also matches TestEnterpriseEndpointsDocumented, and the #36 layout fails it locally.
Activity
ibetitsmike commentedon Nov 9, 2026
Opened #41: the
chat-testsjob runs the swagger annotation tests. The pattern isEndpointsDocumented|TestSwaggerso it also matchesTestEnterpriseEndpointsDocumented, and the #36 layout fails it locally.ibetitsmike commentedon Nov 9, 2026
PR #41 is ready at
3be41b4457: fork-ci passed (https://github.com/ibetitsmike/coder/actions/runs/42595153982, the new chat-tests step ran both packages), Codex is clean on this head, and there are no open review threads.