Repository navigation
test(mcpx): e2e exercises for operations-group CLI commands - #11275
Conversation
artifacts (alias round trip), complete (cache fallback for a server without the completions capability), events (SSE replay ended by SIGINT, the clean finish), and tool (invoke mcpx_namespaces) each get a real integration exercise through the e2e harness (cli_operations_burndown_test.go). A successful harness run is what records each feature's coverage-ledger row, so all four lines leave feature_coverage_exemptions.txt.
Codex Review Summary: ❌ FailedThis 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. |
|
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 42 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Closes #8464 — mcpx coverage burn-down for the operations-group CLI commands:
artifacts,complete,events,tool.What lands
cli_operations_burndown_test.go— one real exercise per command through the e2e harness against a live daemon (a successful harness run is what records the feature's coverage-ledger row). All four are generated commands (opcmd.go), driven the way a shell user drives them:artifactsalias — the canonicalartifactspelling is already covered bycliops_test.go; the alias key was the uncovered registry feature.summariseprompt. The fake never declared the completions capability, so the exercise pins the documented fallback: answered from the cache,source: "cache", with the reason and an empty value list rather than an error.--since 0) after a real call, through a harness runner that ends the stream the way a person does — SIGINT once frames have printed, which the CLI treats as a clean finish. The replay contains theserver.startedandcall.finishedframes.tool invoke mcpx_namespacesruns one of mcpx's own MCP tools as a plain CLI command and lists the ready demo namespace.All four lines are removed from
feature_coverage_exemptions.txt.Verification
go test ./internal/e2e/ -run 'TestArtifactsAliasRoundTripsAFile|TestCompleteFallsBackToTheCacheForAServerWithoutTheCapability|TestToolInvokeRunsOneOfMcpxsOwnTools|TestEventsReplaysTheBusAndEndsOnInterrupt'.MCPX_FEATURE_COVERAGE_LEDGERpointed at a scratch file, the run's ledger containsclirows forartifacts,complete,events, andtool.TestFeatureCoverageExemptionsAreWellFormedagainst the trimmed exemptions file.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.