Skip to content

test(mcpx): probe script.runtime, runtimeOrder, permissions, profiles and runtimes - #11862

Merged
dezren39 merged 1 commit into
mainfrom
test/mcpx-script-runtime-probes
Nov 18, 2026
Merged

dezren39 merged 1 commit into
mainfrom
test/mcpx-script-runtime-probes

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Before: script.runtime, script.runtimeOrder, script.permissions, script.profiles and script.runtimes were exempt from the settings effect check, under the launcher-pipeline reason.

After: five node-backed e2e probes.

  • MCPX_SCRIPT_RUNTIME=node and MCPX_SCRIPT_RUNTIME_ORDER=node,bun each move the run from bun to node.
  • MCPX_SCRIPT_PERMISSIONS=readnet makes node refuse a write that succeeds at the default.
  • MCPX_SCRIPT_PROFILES defining ro turns --permissions ro from an unknown profile into one node enforces.
  • MCPX_SCRIPT_RUNTIMES turns --runtime engine from unknown into a declared node runtime.

Each probe uses testsupport.RequireBinary(t, "node"), like the existing node permission tests. Those five exemptions are removed and EffectExemptionPin drops from 130 to 125.

Unrelated, seen while testing: TestScriptPermissionsIsReachableFromEverySurface fails on any machine without deno, because its strict-profile case needs deno and does not skip. Not changed here.

How: runtimeOf and nodeWrite helpers plus five probes in internal/e2e/effect_test.go, registered in both probe maps and in settings.EffectProbes.

Refs #8473


Generated by Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

… and runtimes

Node-backed e2e probes: MCPX_SCRIPT_RUNTIME=node and
MCPX_SCRIPT_RUNTIME_ORDER=node,bun move the run from bun to node;
MCPX_SCRIPT_PERMISSIONS=readnet and a profile defined in
MCPX_SCRIPT_PROFILES make node refuse a write; MCPX_SCRIPT_RUNTIMES
declares a named runtime. Each skips where node is missing, like the
existing node permission tests. Pin 130 -> 125.

Refs #8473

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dezren39
dezren39 marked this pull request as ready for review November 18, 2026 18:19
@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 18:19
@dezren39
dezren39 merged commit 9e33448 into main Nov 18, 2026
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@dezren39
dezren39 deleted the test/mcpx-script-runtime-probes branch November 18, 2026 18:19
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T18:21:00.672438Z ddf69f3 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants