Repository navigation
Conversation
`hooks/opencode/rtk.test.mjs` was merged with rtk-ai#4187 but nothing executed it. The plugin is a TypeScript file shipped into the user's config directory, not a cargo artifact, so `cargo test --all` cannot reach it and no other job claimed it. Ten tests covering PATH discovery, the `hook opencode --help` probe, argv construction and the registered hooks ran nowhere. Added to the existing `test` job rather than a new one so it runs on all three matrix platforms, which is the point: the plugin's failures were cross-platform by nature — `which` missing on Windows, no Bun `$` shell on Desktop. Node 22.18+ strips the types without a loader, so no `tsc` step and no `node_modules` are needed, and the test mocks `rtk` rather than requiring a build.
📊 Automated PR Analysis
SummaryAdds a step to the existing CI Review Checklist
Analyzed automatically by wshm · This is an automated analysis, not a human review. |
amnesiaof
force-pushed
the
ci/opencode-plugin-tests
branch
from
October 12, 2026 08:20
9fde4e6 to
e10337a
Compare
hooks/opencode/rtk.test.mjs was merged with rtk-ai#4187 but nothing executed it. The plugin is a TypeScript file shipped into the user's config directory, not a cargo artifact, so 'cargo test --all' cannot reach it and no other job claimed it. Ten tests covering PATH discovery, the 'hook opencode --help' probe, argv construction and the registered hooks ran nowhere. Added to the existing 'test' job rather than a new one so it runs on all three matrix platforms, which is the point: the plugin's failures were cross-platform by nature -- 'which' missing on Windows, no Bun shell on Desktop. Node 24 strips the types without a loader, so no tsc step and no node_modules are needed, and the test mocks rtk rather than requiring a build. setup-node is pinned to v7, the major actions/checkout and setup-go already use here.
amnesiaof
force-pushed
the
ci/opencode-plugin-tests
branch
from
October 12, 2026 09:02
e10337a to
d548298
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hooks/opencode/rtk.test.mjslanded in the tree with #4187, and nothing runs it.The plugin is a TypeScript file that gets copied into the user's config directory. It is not a cargo artifact, so
cargo test --allcannot reach it, and no other job inci.ymlclaimed it. Ten tests were sitting in the repo executing nowhere: PATH discovery, thehook opencode --helpprobe, argv construction, the registered hooks, and the failure paths.Seven lines, added to the existing
testjob so they run on all three matrix platforms. That placement is the whole point — the plugin's reported failures were cross-platform by nature (whichmissing on Windows, no Bun$shell on Desktop), and a single-platform job would have hidden the class of bug that actually kept happening.No build step and no
node_modules: Node 22.18+ strips the types without a loader, and the test mocksrtkrather than needing one built.Not done here, worth its own issue: the test only covers the TypeScript half. The Rust side is covered by
cargo test --all, but nothing checks that the two stay in step — a change to thehook opencodecontract that the plugin does not use yet would pass CI on both halves while breaking in the product.Opened from a fork;
amnesiaof/rtkstill has read-only access to this repo. Branch isamnesiaof:ci/opencode-plugin-tests, one commit ondevelop.