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 — mcpx: TestConfigLayersProperty fails on clean main when host mcpx config has extra servers (test not hermetic) · Issue #7686 · developing-today/code

mcpx: TestConfigLayersProperty fails on clean main when host mcpx config has extra servers (test not hermetic) #7686

New issue
Copy link
New issue
Copy link
Closed
#8006
Closed
mcpx: TestConfigLayersProperty fails on clean main when host mcpx config has extra servers (test not hermetic)#7686
#8006
Copy link
Labels
app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/queue-workerFiled or worked by the queue/worker pilot

Description

@developing-today
developing-today
bot
opened on Nov 8, 2026
Issue body actions

Found by queue task 13250 (lane code-v) while landing the #1949 run-seed transport: this property test fails on clean origin/main, unrelated to that change.

Evidence

  • Tree: clean worktree at origin/main 6f1efc4 (Merge PR dns: declare mcpx CNAME — prep for #1943 (NOT applied) #6119), no local changes.
  • Command: go test ./internal/testsupport/gen/ -count=1 -run TestConfigLayersProperty in pkgs/mcpx (Go on the laptop, TMPDIR set).
  • Result: FAIL — registry_test.go:172: case 0: merged servers = map[alpha:... antigravity:npx beta:... chrome-devtools:npx cloudrun:npx codebase-memory:npx ...], want names [alpha beta delta gamma].
  • The merged map contains servers that exist only in the host machine's own MCP configuration (antigravity, chrome-devtools, cloudrun, codebase-memory, context7, deepwiki, fff, gopls-mcp-server, mcp-server-neon, sequential-thinking), which points at the test (or the config layering it exercises) reading real host config instead of only its fixture layers — i.e. the test is not hermetic. On a clean CI runner it may pass; on any developer machine with a populated mcpx config it fails.

Acceptance

  • TestConfigLayersProperty passes on a machine whose real mcpx config names arbitrary extra servers, and still passes in CI.
  • The leak path is named in the fix (fixture isolation vs a config-layering bug are different fixes; if layering itself merges host config when it should not, that is the bug and the test caught a real one).

Filed from queue task 13250 bookkeeping; the seed-transport PR references this issue as a pre-existing failure, not a regression.

Acceptance criteria

  • TestConfigLayersProperty passes on a developer machine whose host mcpx config contains extra servers: the test exercises only its fixture layers (isolated home/config resolution), never live host configuration.
  • A regression case seeds an extra host-style server in the isolated host layer and asserts the merged server names equal the fixture expectation.
  • go test ./internal/testsupport/gen/ -count=1 -run TestConfigLayersProperty (pkgs/mcpx) is green on the laptop and in CI.

Activity

Next
  1. developing-today
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    on Nov 8, 2026
  2. dezren39
    added
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    priority/highImportant and time-sensitive
    effort/sSmall: expected under 2 hours of work
    status/needs-triageNot yet triaged; needs a first look
    source/queue-workerFiled or worked by the queue/worker pilot
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 8, 2026
  3. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    Member
    More actions

    Intake review

    Related: surfaced by queue task 13250 while landing #1949 (run-seed transport); related open #7690 (one run seed through tests/CI). The issue's own ## Acceptance section states the same bar — this appended section consolidates it under the standard heading.
    Live check: search found no merged PR resolving it; the failure reproduces on clean origin/main 6f1efc4 per the filer's evidence.
    Notes / risks: a non-hermetic property test trains the fleet to ignore red — and it fails precisely on the machines of the people most likely to run it. The fix belongs in the test's config resolution (or the layering's test seam), not in weakening the assertion.
    Suggested approach: point the test at a fixture HOME / explicit layer set, add the seeded-extra-server case, and check sibling mcpx property tests for the same host leak.

    — fleet monitor (repo-fleet-monitor), 2026-11-08 08:12 CST run: acceptance criteria appended to the body, labels normalized, meta/enriched applied.

  4. dezren39
    added
    status/triagedTriaged and routed (see agent note)
    work/assignedQueue worker lifecycle state
    and removed
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 9, 2026
  5. 3 remaining items

  6. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    Member
    More actions

    PR opened: #7957 — fix + regression case, ready for review.

    Findings (reproduced on clean origin/main): with TMPDIR under a populated $HOME, TestConfigLayersProperty FAILs with exactly the reported signature (host servers antigravity, chrome-devtools, … merged into the stack). Leak path is the discovery walk climbing from the fixture dir through $HOME — fixture isolation, not a layering bug (project+user merge is intended Load behavior).

    Fix: loadStack seeds MCPX_PATHS_CONFIG with exactly the fixture files (no-null seed replaces the walk), so the load merges only fixture layers anywhere TMPDIR lives. TestConfigLayersIgnoresHostConfig pins both the leak (unseeded walk merges the fake-home server) and the fix (seeded load merges exactly fixture names; verified it FAILs with the seed removed).

    Tests: gen package green with default TMPDIR, TMPDIR-under-HOME, and MCPX_TEST_FUZZ=ci under the repro condition. Awaiting CI on the PR.

  7. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 9, 2026
  8. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    Member
    More actions

    Parked: CI pending on #7957 (20 min). Resume: merge when checks go green per standing criteria — targeted tests already verified locally (default TMPDIR, TMPDIR-under-HOME repro condition, MCPX_TEST_FUZZ=ci); diff is test-only. Worktree ~/git/fleet/14224-7686-mcpx-hermetic, branch queue/14224-7686-mcpx-hermetic.

  9. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    Member
    More actions

    🤖 Agent note · parked (CI pending)

    • Agent: repo queue worker, lane code-f (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-f run 2026-11-09 00:18 CST; task 14224
    • Found via: claimed task 14224 this shift; execution-lane assignment returned direct (lane row 5527); resumed from the pr_opened checkpoint per §10 (no restart)
    • Task: task 14224 for issue mcpx: TestConfigLayersProperty fails on clean main when host mcpx config has extra servers (test not hermetic) #7686. Fresh check 2026-11-09T06:36Z: issue mcpx: TestConfigLayersProperty fails on clean main when host mcpx config has extra servers (test not hermetic) #7686 OPEN, no hard-stop labels; PR mcpx: make TestConfigLayersProperty hermetic via chain seed (#7686) #7957 OPEN, head 5c2e9c2, not draft, no label hold. Checks: 5 basic checks still pending, CodeRabbit skipped. Codex: the review FAILED on Codex usage limits (2026-11-09T05:05Z) — no findings were posted, so there is nothing undispositioned. Parked 1200s instead of waiting on CI (§5).
    • Expectation: resume task 14224, merge PR mcpx: make TestConfigLayersProperty hermetic via chain seed (#7686) #7957 when basic checks are green on head 5c2e9c2, then complete fixed_merged and close issue mcpx: TestConfigLayersProperty fails on clean main when host mcpx config has extra servers (test not hermetic) #7686.
    • Links: task 14224 · issue mcpx: TestConfigLayersProperty fails on clean main when host mcpx config has extra servers (test not hermetic) #7686 · PR mcpx: make TestConfigLayersProperty hermetic via chain seed (#7686) #7957
  10. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    Member
    More actions

    agent-note:v1 — task 14224 (lane code-p, direct) resumed PR #7957 (branch queue/14224-7686-mcpx-hermetic, head 5c2e9c2). Verified fresh: issue #7686 OPEN no hard-stop labels; targeted test PASS on laptop: go test ./internal/testsupport/gen/ -count=1 -run TestConfigLayersProperty (ok 0.254s) on a host whose mcpx config has extra servers — the acceptance condition. Codex review at usage limits with zero inline findings; diff is the single test file. Basic CI checks still QUEUED, so task 14224 parked awaiting CI; merge PR #7957 when checks settle green.

  11. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 9, 2026
  12. dezren39
    closed this as completedin #8006on Nov 9, 2026
  13. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    Member
    More actions

    🤖 Agent note · done — fixed and merged

    • Agent: repo queue worker, lane code-l (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-l run 2026-11-09; task 14224
    • Task: task 14224 for issue mcpx: TestConfigLayersProperty fails on clean main when host mcpx config has extra servers (test not hermetic) #7686 (small_fix, direct lane, lane row 5527).
    • Leak path (named per acceptance): config.SearchPathFrom walks up from the working directory to the filesystem root adding config spellings at every ancestor. loadStack isolated HOME/XDG_CONFIG_HOME, but when TMPDIR lives under the real home (fleet Go convention TMPDIR=~/tmp), t.TempDir() is under the real home too and the walk picks up the host's real ~/.config/mcpx/config.json — merging every host-defined server into the fixture stack. Reproduced: TMPDIR=/home/user/tmp go test ./internal/testsupport/gen/ -run TestConfigLayersProperty FAIL on clean main; default TMPDIR passes.
    • Fix: PR mcpx: make TestConfigLayersProperty hermetic #8006 (test-only, registry_test.go): loadStack seeds the config chain with exactly the fixture layer files, nearest first — a no-null paths.config seed replaces the default walk outright (config.ResolveChainFrom pass 1). New regression guard TestConfigLayersHostIsolation plants host-style configs in the isolated HOME and in an ancestor of the stack directory and asserts the merged servers are exactly the fixture stack.
    • Tests: TMPDIR under HOME — TestConfigLayersProperty + TestConfigLayersHostIsolation PASS; full internal/testsupport/gen package PASS; internal/config PASS; re-verified PASS on merged main e4e8674 in the original failure mode. Codex: usage-limit notice only, zero findings. Basic PR checks queued in the fleet-wide Actions stall; merge under standing criteria on local verification (CI runs on main).
    • Result: PR mcpx: make TestConfigLayersProperty hermetic #8006 MERGED (merge commit e4e8674), issue mcpx: TestConfigLayersProperty fails on clean main when host mcpx config has extra servers (test not hermetic) #7686 CLOSED. Task 14224 completed as fixed_merged.
  14. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    status/triagedTriaged and routed (see agent note)
    on Nov 9, 2026
  15. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    Member
    More actions

    🤖 Agent note · correction to the task 14224 done note (note 6734722867)

    • Agent: repo queue worker, lane code-l (repo-worker-code)
    • Correction: the done note's test list included "internal/config PASS". That line came from a background test-run delivery that a later duplicate delivery of the same session contradicted (it showed FAIL). Fresh independent re-verification (2026-11-09, after the shift): go test ./internal/config/ -count=1 FAILS on merged main e4e867473f98 — TestServerKeysAnotherHostWritesAreRecordedNotRefused (config_test.go:212, "a merged load lost the ignored key") — and fails identically on clean pre-fix main c2283a5721, so it is a pre-existing, host-dependent failure unrelated to this fix (PR mcpx: make TestConfigLayersProperty hermetic #8006 touches only internal/testsupport/gen/registry_test.go). Filed as issue mcpx: TestServerKeysAnotherHostWritesAreRecordedNotRefused fails on clean main on the laptop (host-dependent) #8007.
    • What stands: the mcpx: TestConfigLayersProperty fails on clean main when host mcpx config has extra servers (test not hermetic) #7686 fix itself is unaffected — internal/testsupport/gen passes repeatedly in both TMPDIR modes (including TMPDIR=/home/user/tmp, the original failure mode) on the branch and on merged main, verified in multiple independent runs including the -v run in the same disputed delivery (both deliveries agree on the gen results). PR mcpx: make TestConfigLayersProperty hermetic #8006 merged and issue mcpx: TestConfigLayersProperty fails on clean main when host mcpx config has extra servers (test not hermetic) #7686 closed remain correct.
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)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/queue-workerFiled or worked by the queue/worker pilot

    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.