GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test(mcpx): remote-safe e2e subset — per-test needs selection + remote runner leg · Issue #13386 · developing-today/code

test(mcpx): remote-safe e2e subset — per-test needs selection + remote runner leg #13386

New issue
Copy link
New issue
Copy link
Closed
Closed
test(mcpx): remote-safe e2e subset — per-test needs selection + remote runner leg#13386
Copy link
Labels
status:done

Description

@dezren39
dezren39
opened on Nov 23, 2026
Issue body actions

Follow-up from #1983 (mcpx test environments), filed by lane felix 2026-11-23 after a done check against current main.

Where #1983's Remote section stands

Approach C (the same tests, tagged by need, and a remote runner) is only partly landed. What exists today: the remote-smoke leg in .github/workflows/mcpx-test.yml — the shipped image's daemon runs in its own container on a docker network and a client container reaches it over TCP (status reports running). That proves the transport. What does not exist: any run of the actual e2e assertions against a remote daemon.

Scope

  1. A per-test needs/opt-in mechanism for internal/e2e: a test declares localFS, ownsDaemon (restart/stop), or perTestConfig, or opts in as remote-safe. mcpx testing: environments -- nix flake, container, local, remote -- as CI matrix entries #1983's open question stands — opt-in is safer at first; deriving from declared needs is the later step. The selection must fail closed: a test whose needs are undeclared is not run remotely.
  2. A remote runner leg (in mcpx-test.yml, beside remote-smoke): the daemon runs from the shipped image (packages.mcpx-container) in a separate container with daemon.address=0.0.0.0 and a fixed port; the selected remote-safe /v1 + MCP subset runs against it via MCPX_DAEMON_ENDPOINT. Per-test servers are added over POST /v1/servers with a per-test name suffix and removed in cleanup.
  3. TestExecOnTheDaemonRunsWhereTheDaemonIs (internal/e2e/exec_test.go) is the canonical member of the subset.

Acceptance

  • The leg is green in CI with the selected subset actually executing (test count reported, not a smoke).
  • CLI tests stay local; commands that name a local path are refused clearly against the remote daemon, per mcpx testing: environments -- nix flake, container, local, remote -- as CI matrix entries #1983.

Queue coverage

Not enqueued as a pilot task in this pass: the opt-in-vs-derived decision in step 1 is a design call the parent issue left open, and the leg's shape depends on it. Filed as the sequenced remainder of #1983 for Felix to scope and enqueue.

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    developing-todayBot
    on Nov 23, 2026 – with developing.today
    Contributor
    More actions

    CODE-4874

  2. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    agent-note:v1 — claim: Lane AU12 (archer), 2026-11-23. Taking #13386: per-test needs/opt-in selection for pkgs/mcpx internal/e2e (fail-closed — undeclared needs are never run remotely) plus a remote runner leg in .github/workflows/mcpx-test.yml beside remote-smoke, running the selected remote-safe subset against a daemon from the shipped image via MCPX_DAEMON_ENDPOINT, with TestExecOnTheDaemonRunsWhereTheDaemonIs as the canonical member.

    Premise + ownership check (fresh, 2026-11-23): issue open, no labels, comments count-confirmed at 1 (automated Kaneo link only) — no lane claim, no user/* label, no design-protection/ratification gate, no flag hold. fleet agent next returned no claimable task, so this was picked directly from GitHub. (This lane's first pick, #13532, stopped on a platform flag hold recorded there; this is the one replacement pick.)

  3. developing-today
    added
    status:in-review
    on Nov 23, 2026
  4. dezren39
    added 2 commits that reference this issue on Nov 23, 2026

    test(mcpx): remote runs resolve script.cwd on the daemon (Codex P1, #…

    3ab6b6c

    Merge pull request #13597 from developing-today/lane-au12-13386

    e42c545
  5. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    agent-note:v1 — outcome: Lane AU12 (archer), 2026-11-23. #13386 landed and closed.

    PR: #13597, merged as e42c545f9d6d241d9a5d7b45501c13b4f05e21cd (branch head 9f1278d3310 after a union merge with main — the ci-ok needs list now carries both this leg and main's e2e-no-deno).

    What landed, against the acceptance:

    • Opt-in selection, fail-closed. pkgs/mcpx/internal/e2e/remote_safe_tests.txt is the registry (one test name per line, membership claim spelled out in its header). Two enforcement layers: the CI leg builds its -run pattern from the registry, and newEnv skips any unlisted test when remote mode is on (MCPX_E2E_REMOTE=1), so a manual full-suite run against a shared daemon cannot point host-local fixtures at it. Guard test TestRemoteSafeSelectionFailsClosed proves the registry is non-empty, names resolve to real test functions, and pattern + predicate admit exactly the registry.
    • Remote runner leg. remote-e2e in .github/workflows/mcpx-test.yml, beside remote-smoke: daemon from the shipped image (packages.mcpx-container) with a published port, readiness by the remote-smoke status probe, subset run on the host over MCPX_DAEMON_ENDPOINT. Added to the ci-ok gate's needs. Green in CI: workflow_dispatch run 45240985250 on the merge commit — job "environment: mcpx remote daemon e2e subset" (137925633562) concluded success.
    • Per-test servers. addRemoteServer registers over POST /v1/servers under a per-test suffixed name and removes with DELETE in cleanup; exercised by TestAddRemoteServerRegistersSuffixedAndRemovesOnCleanup against a fake /v1 daemon.
    • Canonical member. TestExecOnTheDaemonRunsWhereTheDaemonIs is the registry's first entry and is the subset the leg runs.
    • newRemoteEnv transplants no host-local config (empty server set) and never starts/stops the shared daemon.

    Verification (laptop runs): go vet + gofmt clean; both new guard tests pass; canonical test passes in local mode; go test ./internal/settings/ green. Container rehearsal of the leg (nix-built image, daemon in docker, subset from the host): PASS. A Codex P1 on the PR — with the default script.cwd=caller the CLI forwards host-local paths a container daemon cannot see — was fixed (MCPX_SCRIPT_CWD=workdir in newRemoteEnv, commit 3ab6b6c9716) and mutation-checked against the image: forcing caller makes the same run fail (the daemon tries to exec the host's nix-store bun path); workdir passes. One earlier local run tripped the suite's disturbed-daemons guard from concurrent suites on the shared laptop and passed clean on re-run.

    Not this issue: TestEveryRegistryVariableIsHarnessSetOrSafe is red at the base commit (MCPX_ADAPTERS_ALLOW_BARE in neither envguard table) — pre-existing main suite health, tracked by #13481, untouched here.

  6. dezren39
    closed this as completedon Nov 23, 2026
  7. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.