Repository navigation
test(mcpx/runner): Resolve(auto) stub-PATH cases — #1911 collision 11 (subset) - #2570
Conversation
…none (#1911 collision 11)
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 58 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…anwall chore: bump opencode fork pin to bbc2f7a (plan-wall bench, fork #2570)
What this lands (subset of #1911, recorded as such)
Collision 11's missing test:
Resolve("auto", …)— the current name for the issue'srunner.Detect— now has the four stub-PATH cases the decision calls for, inpkgs/mcpx/internal/runner/runtimes_test.go:deno→ picks denobun→ picks bunnode→ picks nodescript.runtimeOrder(Setup.Order) overrides itStub executables only (
fakeRuntimes); no real runtime is executed. Permissions areallso no profile refusal can skew the pick. The node--experimental-transform-typesbehaviour from #263 is not touched.Verified already on main (packet evidence was against an older snapshot)
ExecOptionsalready carries the check setting:execsvc.Options.TypeCheck(internal/execsvc/execsvc.go), applied at the service and sent by the remote CLI path (internal/cli/exec.go) — the remote-run drop the issue describes forscript.typecheckno longer reproduces in that form.runEnvelope:"runtime": res.Runtime).Remainder — explicitly NOT in this PR, recorded on #1911
script.checksetting (off|syntax|types|strict, default syntax), a general registryPathAliasescapability, andscript.typecheckas a declared alias with the off→off / on→types / strict→strict value map across config, env (MCPX_SCRIPT_TYPECHECK) and flag spellings, with one-time old-spelling reporting.script.checkOnError,script.checkOnUnsupported,script.compile,script.checkJs, and the preflight/diagnose wiring.script.check(blocked on the rename above).docs/configuration.mdnote for the rename.Tests
go test ./internal/runner/— pass (new test: all subtests pass)go test ./internal/execsvc/— passgo test ./internal/settings/— FAIL, pre-existing on clean origin/main (verified by stashing this change and re-running:TestTheEnvironmentDocIsCurrentand related doc-currency tests fail identically without this PR's diff, which touches only a runner test file)Refs #1911. Queue task 3170 (subset landing per the packet's own subset-and-record-remainder acceptance clause for the policy settings; remainder recorded on the issue, not dropped).
Need help on this PR? Tag
@codesmith-botwith what you need.