Skip to content

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

Closed

Description

@dezren39

What

The feature-coverage guard for #1978 (task 14824) is landed: guardedMain in pkgs/mcpx/internal/e2e evaluates the runtime coverage ledger against api.Ops() / cli.Commands() + App.Handlers() / settings.Registry() after every full suite run, and every feature without a ledger row carries a reasoned exemption in pkgs/mcpx/internal/e2e/feature_coverage_exemptions.txt.

This issue is the burn-down for one feature group. These cli features currently have an exemption instead of a test (measured against a full-suite ledger recorded on main 2b3db37221, 2026-11-11):

  • batch
  • list
  • namespaces

Acceptance

  • Each feature above gets a real integration-test exercise (for settings: an EffectProbes entry in internal/settings plus its e2e test) that records a ledger row.
  • As each lands, delete its exemption line from feature_coverage_exemptions.txt — the guard fails on an exemption for a covered feature, so the deletion is self-verifying.
  • When the list is empty of exemptions, close this issue.

Activity

  1. added
    kind/testTest coverage, test infrastructure, or test-only fixes
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    on Nov 11, 2026
  2. developing-today commented on Nov 11, 2026

    @developing-today
    Contributor
  3. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    on Nov 17, 2026
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — task 18664 (lane code-e)

  5. added a commit that references this issue on Nov 17, 2026
  6. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done — burn-down landed

    • Agent: repo-worker-code, lane any-h, task 20142
    • Landed: PR test(mcpx): integration exercises for cli batch, list, namespaces (#8462) #11235 merged (merge commit 94f3caf): new pkgs/mcpx/internal/e2e/cli_burndown_test.go with TestBatchRunsCallsThroughTheCLI, TestListAliasListsNamespaces, TestNamespacesAliasListsNamespaces, and the three exemption lines (cli batch / list / namespaces) deleted from feature_coverage_exemptions.txt.
    • Verification: all three tests pass individually; in the full e2e suite run on the laptop (1859s) none of the three failed and no coverage-guard/feature test failed — the exemption deletions are guard-clean. The suite's 23 failures are in restart/disambiguation/session/settings families that also failed in a sibling lane's independent full run the same hour on this overloaded laptop, in code this diff cannot touch (one new test file + exemption deletions).
    • Reviews: Codex produced no findings (usage-limit failure, zero review comments).
    • Closing: the exemption list for this group is empty, per the issue's own closing rule.
  7. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — task 20142 parked mid-flight: exercises work, suite sweep leak to diagnose (lane any-n)

    • State: parked — the three exercises are written and proven to record their coverage rows; what remains is a suite-hygiene diagnosis plus the full-suite guard run, which did not fit this shift's remaining window.
    • Done and verified:
      • New file pkgs/mcpx/internal/e2e/coverage_discovery_test.go (branch queue/20142-8462-discovery-coverage, commit 83d63b5, pushed): TestCLIDiscoveryListExercise, TestCLIDiscoveryNamespacesExercise (each alias dispatched separately against the oneServer daemon), TestCLIDiscoveryBatchExercise (one real demo.echo call via batch -c).
      • Targeted run (go test ./internal/e2e/ -run TestCLIDiscovery with MCPX_FEATURE_COVERAGE_LEDGER set): all three tests PASS and the ledger records exactly cli/batch, cli/list, cli/namespaces — the three mcpx coverage burn-down: CLI commands (discovery group) with no integration-test exercise #8462 features.
    • Blocker: that targeted run's binary still exits FAIL — the mcpx testing: guard tests that close a whole bug class #1971 testsupport sweep found 6 surviving processes (3 mcpx daemons + 3 fakemcp, one pair per new env) after the suite. No cleanup: failure was logged (the harness's stop --all cleanup did not report an error). Control: a pre-existing sibling test (TestPluginSessionLifecycleOverTheSocket) run alone the same hour exits 0 — so the leak is specific to these envs or to sweep timing under the laptop's extreme load (load avg ~80 during the run); not yet diagnosed. First diagnostic step for the resuming lane: rerun the targeted set on a quieter machine state and check whether the sweep still fires; if it does, compare daemon shutdown after list/namespaces/batch vs ls (the sibling's command).
    • Remaining after the leak is resolved: delete the three mcpx coverage burn-down: CLI commands (discovery group) with no integration-test exercise #8462 lines from feature_coverage_exemptions.txt (lines 37–39), run the FULL e2e suite so guardedMain verifies the deletions, then close mcpx coverage burn-down: CLI commands (discovery group) with no integration-test exercise #8462 per its acceptance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workepic/mcpx-platformReprioritization program epic (2026-11-12)kind/testTest coverage, test infrastructure, or test-only fixespriority/normalOrdinary priority (the default)queue/queuedHas a queued queue taskstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions