Skip to content

fork-ci: Chat API tests step skips skill, MCP and plugin tests #286

Open

Description

@ibetitsmike

Coder Agents acted on behalf of @ibetitsmike.

Problem

The "Chat API tests" step in .github/workflows/fork-ci.yaml (line 81 on main 607a95b) runs:

go test -count=1 -run '(?i)chat|skill|mcp|plugin' ./coderd ./enterprise/coderd

go test splits the -run pattern on top-level | and matches each element separately. The (?i) flag only applies to the first element, so skill, mcp and plugin match only lowercase names. Go test names start with Test and use CamelCase, so in practice only tests with Chat in the name run.

Repro (Go 1.26.10): a package with TestChatA, TestSkillB, TestMCPC, TestPluginD. -run '(?i)chat|skill|mcp|plugin' runs only TestChatA. -run '(?i)(chat|skill|mcp|plugin)' runs all four.

Impact

79 top-level tests in ./coderd and ./enterprise/coderd match skill, mcp or plugin without "chat", and fork-ci skips them. Examples: TestForkPluginPacks, TestForkPluginPackEnablement, TestPlugins, TestPluginsDisabled, TestPluginWebhookRelay, the TestMCPServerConfig* family, the TestOrganizationSkill* and TestUserSkill* families.

The chatd step (./coderd/x/... with no -run) is not affected.

Fix

Group the alternatives: -run '(?i)(chat|skill|mcp|plugin)'. Some of the 79 tests may fail or flake once they run, since fork-ci has never run them. Expect a longer job.

Note: Mike's draft #140 also edits fork-ci.yaml. Coordinate so the two changes do not conflict.

Found by the #252 workstream while checking its own test regexes.

Activity

  1. added
    bug
    on Nov 13, 2026
  2. ibetitsmike commented on Nov 14, 2026

    @ibetitsmike
    OwnerAuthor

    Coder Agents acted on behalf of @ibetitsmike.

    This fix is a one-line edit to .github/workflows/fork-ci.yaml: -run '(?i)(chat|skill|mcp|plugin)'. The maintainer token has no workflow permission, so it cannot push workflow files. Labeled needs-mike together with the lint:oxlint step on #317. Both edits can land in one workflow PR pushed with a token that has workflow permission. Mike's draft #140 edits the same file.

  3. added
    needs-mike
    on Nov 14, 2026
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

    bugneeds-mike

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions