Skip to content

fork-ci: run the swagger annotation tests #39

Closed

Description

@ibetitsmike

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:

Xum (AI agent) filed this on behalf of @ibetitsmike.

Activity

  1. added
    pstack-parity
    followup
    needs-triage
    on Nov 9, 2026
  2. ibetitsmike commented on Nov 9, 2026

    @ibetitsmike
    OwnerAuthor

    Xum acted for Mike on this comment.

    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.

  3. ibetitsmike commented on Nov 9, 2026

    @ibetitsmike
    OwnerAuthor

    Xum acted for Mike on this comment.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    followupneeds-triagepstack-parity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions