Skip to content

fix(mcpx): green the feature-coverage guard on a full e2e run - #11878

Merged
dezren39 merged 1 commit into
mainfrom
fix/mcpx-coverage-guard-green
Nov 18, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/mcpx-coverage-guard-green

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Before: a full go test ./internal/e2e on main passes every test but ends FAIL, because the feature-coverage guard in TestMain reports eight violations (spec.first, spec.lenient, cli cache, cli want, plugin_session_close, apis_remove, recipe_remove, script.check).

After: the guard reports only script.check, and only where deno is missing (its probe needs deno).

How: setting probes are matched on the top-level test name, so probes that run their cases as subtests record their setting. The stale cli cache exemption comes out. The plugin-session and apis-remove exercises that #8466 dropped with coverage_ops_test.go are restored, and recipe_remove and want each get a new exercise. Checked by re-judging the guard against a full-run ledger plus the new rows (TestFeatureCoverageGuardAgainstRecordedLedger).

Refs #1978


Generated by Claude Code


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

A full e2e run on main ended FAIL in TestMain with eight guard
violations, though every test passed:

- spec.first and spec.lenient: their probes run with/without cases as
  subtests, and recordSettingProbes matched t.Name() whole, so the
  subtest envs never recorded the setting. Match the top-level name.
- cli cache: exercised by TestCacheCommandListsPrunesAndRemoves and
  still exempt. Drop the exemption.
- plugin_session_close and apis_remove: #8466 deleted
  coverage_ops_test.go, which carried their only exercises. Restore
  them in ops_group_coverage_test.go.
- recipe_remove (new today) and cli want had no exercise. Add one each.

script.check stays: its probe needs deno, so it records only where deno
is installed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dezren39
dezren39 marked this pull request as ready for review November 18, 2026 19:33
@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 19:33
@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-18T19:34:42.108882Z b29851e 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.

  • 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 merged commit 980e5ea into main Nov 18, 2026
1 check failed
@dezren39
dezren39 deleted the fix/mcpx-coverage-guard-green branch November 18, 2026 19:35
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