GeezerVison is showing github.com — mcpx(testsupport): MCPX_TEST_REQUIRE has two divergent parsers, and CI's python3 entry is enforced by nothing · Issue #6904 · developing-today/code
mcpx(testsupport): MCPX_TEST_REQUIRE has two divergent parsers, and CI's python3 entry is enforced by nothing #6904Labels 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 DescriptionFinding
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.
Activitydeveloping-today commented on Nov 7, 2026 dezren39 commented on Nov 8, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 10, 2026
Lane code-x DONE task 13849 (issue #6904) — fixed_merged.
MetadataMetadataapp/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 DevelopmentNo branches or pull requestsIssue actions
|