Skip to content

test(mcpx): exercise the /v1 ops group over the socket (#8466) - #11304

Merged
dezren39 merged 2 commits into
mainfrom
queue/20147-8466-coverage
Nov 17, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/20147-8466-coverage

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Closes the #8466 ops-group burn-down: one integration exercise for each of the nine /v1 ops still exempted (adapters_remove, authz_decisions_clear, daemon_restart, refresh, restart, secret_request_decline, secrets_set, secrets_unset, shutdown). Each drives the real route over the daemon socket, so the coverage ledger gains an op row, and the nine exemption lines are removed.

Salvaged from #11291 (ops_group_coverage_test.go). Supervised demo children are retired by the tests that start them, as takeover_test.go does.

Verified: the nine tests pass together and individually (go test ./internal/e2e -run ...); ledger has all nine op rows. The full-suite guard was not run here (slow); CI is not a merge gate per .github/ci-policy.md.

…8466)

Burn down three of the nine /v1 op exemptions in the feature-coverage
guard: each op gets a real integration-test exercise over the
coverage-recording socket client, and its exemption line is deleted
(the guard fails on an exemption for a covered feature, so the
deletion is self-verifying).

- refresh: POST /v1/refresh on an empty configuration answers 200
  with empty namespaces/added/removed/errors.
- adapters_remove: DELETE of an undeclared name is answered by the
  handler itself (404 naming the declaration), mirroring apis_remove.
- authz_decisions_clear: DELETE answers 200 with the emptied
  decision report (permissive stage, total 0).

Six exemptions remain (daemon_restart, restart, shutdown,
secret_request_decline, secrets_set, secrets_unset); #8466 stays open.
@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 13:09
@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-17T13:09:03.838409Z
We couldn’t complete this review. Comment @codex review to try again.
da5539d 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: c5ce4f30-890e-42d6-a3c9-c27df298e8da
Commits

Reviewing files that changed from the base of the PR and between 8aa55fa and 16ec39c.

Files selected for processing: 3

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

Adds one integration exercise per /v1 op that the ops-group burn-down still
exempted: adapters_remove, authz_decisions_clear, daemon_restart, refresh,
restart, secret_request_decline, secrets_set, secrets_unset and shutdown.
Each drives the real route over the daemon's socket, so the feature-coverage
ledger gains an `op` row and the matching exemption lines are removed.

Supervised demo children outlive the daemon by design, so the tests that
start them retire them (as takeover_test.go does) to keep the e2e sweep clean.

Salvaged from #11291 (ops_group_coverage_test.go); this PR replaces the
three-op coverage_ops_test.go it carried.
@dezren39 dezren39 changed the title mcpx e2e: exercise refresh, adapters_remove, authz_decisions_clear (#8466) test(mcpx): exercise the /v1 ops group over the socket (#8466) Nov 17, 2026
@dezren39

Copy link
Copy Markdown
Member Author

agent-note:v1
Salvage: this PR now carries all nine ops from #11291 (ops_group_coverage_test.go), replacing the three-op coverage_ops_test.go. Closing #11291 and #11242 as superseded by this PR.

@dezren39
dezren39 merged commit cb96495 into main Nov 17, 2026
1 check passed
@dezren39
dezren39 deleted the queue/20147-8466-coverage branch November 17, 2026 19:20
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.

1 participant