Skip to content

mcpx(testsupport): MCPX_TEST_REQUIRE has two divergent parsers, and CI's python3 entry is enforced by nothing #6904

Closed

Description

@dezren39

Finding

MCPX_TEST_REQUIRE is parsed by two divergent parsers in the same testsupport package, and CI's list contains an entry nothing enforces. The two semantics disagree on case and on the wildcard/labels, and the python3 entry in CI's list has no consumer — both recreate the silently-green hole the mechanism exists to close.

Evidence

  • Source PRs: mcpx: MCPX_TEST_REQUIRE — required runtimes fail instead of skipping (#1983 step 1) #3696 (merged, merge d55d6c90a5c7a584140ebbe0a299bdde25c882a1) added pkgs/mcpx/internal/testsupport/require.go; mcpx: labelled real-software subset — realsoftware tag, RealServer helper, flake-pinned servers, nightly (#1990) #3704 (merged, merge 855372038be7b060a39a6fbecb4f405a454ff112) added realRequired() in pkgs/mcpx/internal/testsupport/realserver.go. One finding for the set: same variable, same package, two PRs in the same batch.
  • On current main (4cd2927643453bee47a0f764de534e229220cf88, verified twice via the contents API):
    • require.go RequiredBinaries() (line 21) normalises entries with strings.ToLower(strings.TrimSpace(name)) and knows only exact binary names.
    • realserver.go realRequired() (line 64) does strings.TrimSpace(entry) with no lower-casing, and additionally honours "realsoftware", "real", and "*".
    • So MCPX_TEST_REQUIRE=RealSoftware (or REALSOFTWARE) fails a missing runtime binary test via the first parser but only skips a missing real server via the second; MCPX_TEST_REQUIRE=* demands every real server but no runtime binary.
    • .github/workflows/mcpx.yml line 178 sets MCPX_TEST_REQUIRE: deno,bun,node,python3, but no call site passes python3 to RequireBinary/MissingRequired (the e2e and probe call sites cover only deno/bun/node), and there is no suite-level check that every entry in RequiredBinaries() is present on PATH. Enforcement is purely per-test: an entry with no (or a -run-filtered-out) consumer silently does nothing.

Why it matters

The require-list is a contract between CI configuration and the test suite. Two parsers drifting in the same package guarantee the contract means different things for runtimes and for real servers, and an unenforced entry makes CI claim a guarantee it does not check — the exact failure #1983 was filed to eliminate.

Acceptance criteria

  • One shared parser for MCPX_TEST_REQUIRE lives in require.go (with the label/wildcard rules stated once), and realRequired uses it.
  • Case handling is identical for runtime binaries and real servers (a test pins RealSoftware/REALSOFTWARE behaviour).
  • Either a suite-level enforcement fails CI when any listed entry is missing from PATH (covering python3), or python3 is removed from the workflow list with the reason recorded.
  • Existing testsupport tests still pass.

Activity

  1. added
    kind/testTest coverage, test infrastructure, or test-only fixes
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 7, 2026
  2. developing-today commented on Nov 7, 2026

    @developing-today
    Contributor
  3. added
    priority/lowNice to have; do when convenient
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    on Nov 7, 2026
  4. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  5. added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed on Nov 8, 2026
  6. 221 remaining items

  7. added a commit that references this issue on Nov 10, 2026
  8. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    Lane code-x DONE task 13849 (issue #6904) — fixed_merged.

  9. removed
    status/parkedDeliberately paused with a recorded resume condition
    priority/lowNice to have; do when convenient
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    effort/sSmall: expected under 2 hours of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 10, 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

    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)kind/testTest coverage, test infrastructure, or test-only fixesstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions