Skip to content

test(mcpx): e2e exercise for cli cache; drop its coverage exemption (#8461 chain 1 of 6) - #11253

Merged
dezren39 merged 1 commit into
mainfrom
queue/20143-8461-mcpx-cache-e2e
Nov 17, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/20143-8461-mcpx-cache-e2e

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Chain 1 of 6 for #8461 (the issue stays open; chain 2 is enqueued as a follow-on queue task).

What changed

  • pkgs/mcpx/internal/e2e/cache_test.go (new): TestCacheCommandListsPrunesAndRemoves seeds a real entry through internal/cache under the test env's cache root, then drives the cache command's list, prune, and remove surfaces through the suite harness, asserting the listing shows the entry, prune leaves an in-bounds entry untouched, remove deletes it, and the final listing is the empty report. Each successful invocation records the coverage-ledger row for cli cache.
  • feature_coverage_exemptions.txt: the cli cache line is deleted.

Verification — stated plainly

  • The exercise passes targeted (34 s) and inside full-suite runs; the ledger row {"test":"TestCacheCommandListsPrunesAndRemoves","kind":"cli","name":"cache"} was recorded in all three runs made.
  • All nine TestFeatureCoverage* guard/ledger unit tests pass, including TestFeatureCoverageGuardAgainstRecordedLedger and TestFeatureCoverageExemptionsAreWellFormed with the exemption removed.
  • Two full-suite runs on the fleet laptop did not reach a guardedMain coverage verdict, for environmental reasons unrelated to this change: the first died at the default 10 m test timeout amid supervisor attach collisions in daemon tests while several lanes ran the same suite concurrently (load average ~75); the second (55 m timeout, 1809 s) completed the tests but guardedMain returned at its mcpx testing: e2e inherits the caller's environment -- build it from an allowlist so tests never reach the user's daemon #1992 caller-daemon-set check — other lanes starting/stopping daemons mid-run — before the coverage evaluation. In neither run did any cache or coverage test fail. The exemption removal remains self-verifying: the first uncontended full run evaluates the ledger, and a missing cache row would now fail it by name.

Task 20143, lane any-l.


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

…8461 chain 1 of 6)

TestCacheCommandListsPrunesAndRemoves seeds a real entry through internal/cache under the test env cache root, then drives the cache commands list, prune, and remove surfaces through the harness — each successful invocation records the coverage-ledger row ({"kind":"cli","name":"cache"}) that lets the exemption go. The cli cache line is deleted from feature_coverage_exemptions.txt.

Verification: the exercise passes targeted and inside full-suite runs (ledger row recorded in all three runs made). All nine TestFeatureCoverage* guard/ledger unit tests pass, including GuardAgainstRecordedLedger and ExemptionsAreWellFormed with the line removed. Two full-suite runs on this laptop did not reach a guardedMain coverage verdict: both were stopped earlier by cross-lane interference (supervisor attach collisions in daemon tests, then the #1992 caller-daemon-set check tripping on other lanes starting/stopping daemons mid-run) — no cache or coverage failure appeared in either run; the guard remains self-verifying on the next uncontended full run.
@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 11:24
@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:24:20.400392Z
We couldn’t complete this review. Comment @codex review to try again.
be7bb5e 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 15 seconds.

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: 4b974393-224b-485a-8b38-593d51351574
Commits

Reviewing files that changed from the base of the PR and between 1dbee54 and be7bb5e.

Files selected for processing: 2

  • pkgs/mcpx/internal/e2e/cache_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
dezren39 merged commit 790945d into main Nov 17, 2026
1 check passed
@dezren39
dezren39 deleted the queue/20143-8461-mcpx-cache-e2e branch November 17, 2026 11:25
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