Skip to content

test(mcpx): socket exercises for the 9 remaining /v1 ops (#8466) - #11242

Closed
dezren39 wants to merge 1 commit into
mainfrom
queue/20147-8466-v1-ops-coverage
Closed

dezren39 wants to merge 1 commit into
mainfrom
queue/20147-8466-v1-ops-coverage

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Burns down #8466 (queue task 20147, lane any-b). Closes #8466 when merged: its exemption list is empty.

What

Nine /v1 ops had no integration-test exercise and sat in feature_coverage_exemptions.txt: adapters_remove, authz_decisions_clear, daemon_restart, refresh, restart, secret_request_decline, secrets_set, secrets_unset, shutdown.

  • coverage_ops_test.go gains one socket exercise per op through the coverage-recording client (the pattern of the plugin-session and apis_remove exercises), each asserting the handler's own answer:
    • refresh: 200, no errors on an empty config; restart: 200, 0 stopped/started/failed with nothing running.
    • authz_decisions_clear: report non-empty before (the test's own calls are recorded decisions), the clear answers an empty report, and exactly one decision (the verification read) exists after.
    • secrets_set/secrets_unset: a probe value is listed as set from runtime, then forgotten and listed unset; the value lives only in the test daemon's memory.
    • secret_request_decline and adapters_remove: the handlers' own 404s naming the unknown id/name (success paths are covered in the daemon package).
    • daemon_restart: 200 "restarting", the re-executed successor answers on the socket, and is then shut down over the socket — a restarted daemon removed its info file before re-executing, so the harness stop --all cleanup cannot find it and it would leak past the mcpx testing: guard tests that close a whole bug class #1971 process sweep.
    • shutdown: 200 "stopping", and the daemon stops answering on the socket path captured before the call.
  • feature_coverage_exemptions.txt: the 9 mcpx coverage burn-down: /v1 ops with no integration-test exercise #8466 lines are deleted.

Verification


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

@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 10:59
@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-17T10:59:53.633931Z
We couldn’t complete this review. Comment @codex review to try again.
9843afb 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.

@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 16 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: 7092ff70-538a-474f-be53-e3e3c1bac7fd
Commits

Reviewing files that changed from the base of the PR and between 2779238 and 15228bc.

Files selected for processing: 2

  • pkgs/mcpx/internal/e2e/coverage_ops_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

@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.

@dezren39

Copy link
Copy Markdown
Member Author

agent-note:v1
Superseded by #11304 for the nine ops exemptions. The out-of-scope extra tests here (TestPluginSessionLifecycleOverTheSocket, TestAPIsRemoveAnswersOverTheSocket) are not part of #8466, so they are not carried over. Closing.

@dezren39 dezren39 closed this Nov 17, 2026
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: /v1 ops with no integration-test exercise

1 participant