Repository navigation
test(mcpx): e2e exercise for cli cache; drop its coverage exemption (#8461 chain 1 of 6) - #11253
Conversation
…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.
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 15 seconds. 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. |
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):TestCacheCommandListsPrunesAndRemovesseeds a real entry throughinternal/cacheunder 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 forcli cache.feature_coverage_exemptions.txt: thecli cacheline is deleted.Verification — stated plainly
{"test":"TestCacheCommandListsPrunesAndRemoves","kind":"cli","name":"cache"}was recorded in all three runs made.TestFeatureCoverage*guard/ledger unit tests pass, includingTestFeatureCoverageGuardAgainstRecordedLedgerandTestFeatureCoverageExemptionsAreWellFormedwith the exemption removed.Task 20143, lane any-l.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.