Skip to content

test(mcpx): probe prompt.runTimeout with a sleeping recipe (pin 39 → 38) - #11906

Merged
dezren39 merged 1 commit into
mainfrom
test/mcpx-prompt-run-timeout-probe
Nov 18, 2026
Merged

dezren39 merged 1 commit into
mainfrom
test/mcpx-prompt-run-timeout-probe

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Before: prompt.runTimeout was exempt from the effect check on the grounds that it needed a sampling provider.

After: it needs only a recipe. A recipe that sleeps three seconds, run with mcpx recipes run nap --autonomy run, finishes under the default bound; with MCPX_PROMPT_RUN_TIMEOUT=1s its result reports script timed out after 1s. The exemption pin drops from 39 to 38.

How: napRecipe and one probe in effect_test.go, registered in settings/effect.go (chain 66). Passed -count=2 locally, plus TestFeatureCoverage|TestEffect.

Refs #8471


Generated by Claude Code


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

Summary by CodeRabbit

  • Tests
    • Added coverage confirming that prompt recipes can complete within the default run-time limit and time out when a shorter limit is configured.

A recipe that sleeps three seconds finishes under the default bound and
reports "script timed out after 1s" with prompt.runTimeout=1s. Drops the
setting from the exemption list (pin 39 -> 38).

Refs #8471

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dezren39
dezren39 marked this pull request as ready for review November 18, 2026 20:49
@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 20:49
@dezren39
dezren39 merged commit de3dfc8 into main Nov 18, 2026
@dezren39
dezren39 deleted the test/mcpx-prompt-run-timeout-probe branch November 18, 2026 20:49
@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-18T20:50:48.367683Z f9f5d11 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.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

The change registers a prompt.runTimeout effect probe and adds an end-to-end test for default and configured timeout behavior. It removes the setting’s coverage exemption and lowers the exemption pin from 39 to 38.

Changes: prompt.runTimeout effect-probe coverage

Layer / File(s) Summary
Register and verify the timeout probe
pkgs/mcpx/internal/settings/effect.go, pkgs/mcpx/internal/e2e/effect_test.go, pkgs/mcpx/internal/e2e/feature_coverage_exemptions.txt
The effect-probe registries map prompt.runTimeout to an end-to-end test. The test checks that a recipe completes with the default timeout and reports “script timed out after 1s” when MCPX_PROMPT_RUN_TIMEOUT=1s. The change removes the setting’s exemption and lowers EffectExemptionPin from 39 to 38.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related issues

Possibly related PRs

Suggested reviewers: claude

Merge Risk: Low · up to f9f5d

This change adds an end-to-end test for the prompt run timeout setting. The default-timeout check is weak and could pass when the recipe fails. Production behavior is unaffected, so the risk is low. Tighten the assertion to check the completion marker.

- [ ] 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

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