Repository navigation
fix(mcpx): green the feature-coverage guard on a full e2e run - #11878
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 18, 2026 19:33
Codex Review Summary: ✅ CompletedThis 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. |
|
Caution Review failedThe pull request is closed.
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. |
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.
Before: a full
go test ./internal/e2eon 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 cacheexemption comes out. The plugin-session and apis-remove exercises that #8466 dropped with coverage_ops_test.go are restored, and recipe_remove andwanteach 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
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.