Skip to content

CI does not run the plugin test suites that live outside cargo #4588

Open

Description

@KuSh

Four test suites ship with the agent plugins and are run by no workflow in .github/workflows/:

  • hooks/hermes/tests/ (Python unittest, 18 tests including an installed-flow test that runs cargo run -- init --agent hermes)
  • hooks/opencode/rtk.test.mjs (node)
  • hooks/claude/test-rtk-rewrite.sh
  • hooks/copilot/test-rtk-rewrite.sh

grep -rn "unittest\|hooks/hermes\|rtk.test.mjs\|test-rtk-rewrite.sh\|node --test" .github/workflows matches nothing on develop f16becacd. A change to one of these plugins can pass every CI check while breaking its own tests. On #3833, for instance, the Hermes suite pins each new decision (14 mutations, all caught locally), but no CI job would catch a regression.

A job per suite (Python is already on the runners; node is one setup step) would close this. The installed-flow test needs cargo on PATH and otherwise skips itself.

Activity

  1. added
    bug
    help wanted
    on Oct 15, 2026
  2. rtk-wshm-sync-bot commented on Oct 15, 2026

    @rtk-wshm-sync-bot

    wshm · Automated triage by AI

    🔍 Automated Triage

    🐛 Category bug
    🟡 Priority medium
    🎯 Confidence 82%

    Summary

    Four non-cargo plugin test suites (Hermes, OpenCode, Claude, Copilot rtk-rewrite) have no CI job, so regressions in them pass CI undetected.

    📁 Relevant files
    • .github/workflows/
    • hooks/hermes/tests/
    • hooks/opencode/rtk.test.mjs
    • hooks/claude/test-rtk-rewrite.sh
    • hooks/copilot/test-rtk-rewrite.sh

    Suggested Actions

    1. Add CI jobs per suite: python unittest (hermes), node --test (opencode), shell (claude/copilot)
    2. Ensure cargo is on PATH for the installed-flow test in hooks/hermes/tests/, or confirm its self-skip works
    3. Reference the fix(hermes): close the rewrite's stdin and make its timeout configurable #3833 case (14 caught mutations) as motivating evidence in the PR description
    4. Follow the pattern from PR fix(tests): keep the test suite and the developer's environment apart #3758 (fix(tests): keep the test suite and the developer's environment apart)

    Triaged automatically by wshm · This is an automated analysis, not a human review.

  3. KuSh commented on Nov 28, 2026

    @KuSh
    CollaboratorAuthor

    Another instance: #5133 changed the argv the Hermes plugin passes (["rtk", "rewrite", "--", command]). Three tests in hooks/hermes/tests/ went red (test_rewrite_updates_payload_without_returning_a_directive for exits 0 and 3, and test_cargo_init_installs_importable_plugin_that_rewrites_with_fake_rtk), and every CI job stayed green. The PR's fixup updates the tests.

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

    area:ciarea:testingbughelp wantedpriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions