Skip to content

test(mcpx): e2e exercises for inspection-group CLI commands - #11266

Merged
dezren39 merged 1 commit into
mainfrom
queue/20154-8463-inspection
Nov 17, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/20154-8463-inspection

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Closes #8463 — mcpx coverage burn-down for the inspection-group CLI commands: dashboard, explore, hook, interactions, logs.

What lands

  • cli_inspection_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):
    • dashboard: prints its live URL (mcpx dashboard running at …/dashboard).
    • hook: hook ls on an env with no hooks setting (empty state) and on an env whose config declares a hook (the declared row renders).
    • interactions: empty history on a fresh daemon; then a proxy chat-completion turn (the surface that records interactions) read back through list, --q search, and --show.
    • logs: the log surface exercised through its logs alias spelling (logs sql …, logs --chain …) — the canonical log spelling is already covered by logs_test.go; the alias key was the uncovered registry feature.
  • cli_inspection_explore_linux_test.go — explore refuses to run without a terminal on stdin, and the harness runners only offer a pipe, so this file gives the env a runner whose stdin is a real pty (allocated via /dev/ptmx; Linux-only) with q queued as the first input. It opens on the namespace list and quits cleanly.
  • All five lines are removed from feature_coverage_exemptions.txt.

Verification

  • The five new tests pass: go test ./internal/e2e/ -run 'TestDashboardPrintsItsLiveURL|TestHookLsListsDeclaredHooks|TestInteractionsListsSearchesAndShowsAProxyTurn|TestLogsAliasQueriesTheLog|TestExploreBrowsesUnderATerminal'.
  • With MCPX_FEATURE_COVERAGE_LEDGER pointed at a scratch file, the run's ledger contains cli rows for dashboard, explore, hook, interactions, and logs.
  • The guard's own tests pass, including TestFeatureCoverageExemptionsAreWellFormed against the trimmed exemptions file.
  • Note: on this dev laptop the suite's TestMain environment sweeps (mcpx testing: guard tests that close a whole bug class #1971 leaked-process sweep, mcpx testing: e2e inherits the caller's environment -- build it from an allowlist so tests never reach the user's daemon #1992 caller-daemon check) fail for pre-existing environmental reasons — the already-landed sibling burn-down tests leak identically here because the machine runs a real mcpx daemon. The individual tests pass; the sweeps are clean-machine CI checks.

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

dashboard, hook, interactions and the logs alias each get a real integration exercise through the e2e harness (cli_inspection_burndown_test.go); explore gets one in cli_inspection_explore_linux_test.go, driven under a pty since it requires a terminal. A successful harness run is what records each feature's coverage-ledger row, so all five lines leave feature_coverage_exemptions.txt.
@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 11:50
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T11:50:34.809233Z
We couldn’t complete this review. Comment @codex review to try again.
1732f56 PR opened
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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 54 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 44a08e68-a3b3-4bb5-9797-4831e620c08e
Commits

Reviewing files that changed from the base of the PR and between 3ff6bc4 and 1732f56.

Files selected for processing: 3

  • pkgs/mcpx/internal/e2e/cli_inspection_burndown_test.go
  • pkgs/mcpx/internal/e2e/cli_inspection_explore_linux_test.go
  • pkgs/mcpx/internal/e2e/feature_coverage_exemptions.txt
  • 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.

mcpx coverage burn-down: CLI commands (inspection group) with no integration-test exercise

1 participant