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: TestServerKeysAnotherHostWritesAreRecordedNotRefused fails on clean main on the laptop (host-dependent) · Issue #8007 · developing-today/code

mcpx: TestServerKeysAnotherHostWritesAreRecordedNotRefused fails on clean main on the laptop (host-dependent) #8007

New issue
Copy link
New issue
Copy link
Closed
#11207
Closed
mcpx: TestServerKeysAnotherHostWritesAreRecordedNotRefused fails on clean main on the laptop (host-dependent)#8007
#11207
Copy link
Assignees
dezren39
Labels
app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workepic/mcpx-platformReprioritization program epic (2026-11-12)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
Milestone
mcpx platform program

Description

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

Found by queue lane code-l (task 14224 bookkeeping correction, 2026-11-09) while verifying the #7686 fix: this config test fails on the laptop on clean main, pre-existing and unrelated to #7686.

Evidence

  • Command: go test ./internal/config/ -count=1 -run TestServerKeysAnotherHostWritesAreRecordedNotRefused (pkgs/mcpx, Go 1.26 on the laptop)
  • Result on clean pre-fix main c2283a5721: FAIL — config_test.go:212: a merged load lost the ignored key: []
  • Result on merged main e4e867473f98 (includes PR mcpx: make TestConfigLayersProperty hermetic #8006): identical FAIL. The mcpx: TestConfigLayersProperty fails on clean main when host mcpx config has extra servers (test not hermetic) #7686 change touches only internal/testsupport/gen/registry_test.go, a different package's test file, so it cannot cause this.
  • The full internal/config package run fails with this as the failing test; internal/testsupport/gen passes in both TMPDIR modes.

Likely shape (not yet root-caused)

The test isolates HOME/XDG_CONFIG_HOME to a temp dir and loads from a nested proj/ dir — the same isolation shape #7686 just fixed in the gen property test. Its own comment (config_test.go, above the test) already names the risk: "a stale key in a real ~/.mcpx.json would fail this test on that machine and nowhere else." config.SearchPathFrom walks up from the working directory past the isolated root, so host config files on the ancestor path (real home when TMPDIR lives under it, plus /etc/mcpx/config.json) enter the chain on a developer machine but not in CI.

Acceptance

  • TestServerKeysAnotherHostWritesAreRecordedNotRefused passes on a machine whose real mcpx config exists (laptop), and still passes in CI.
  • The leak path is named in the fix, as in mcpx: TestConfigLayersProperty fails on clean main when host mcpx config has extra servers (test not hermetic) #7686.

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    on Nov 9, 2026
  2. developing-today commented on Nov 9, 2026

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

    CODE-2365

  3. dezren39
    added 2 commits that reference this issue on Nov 11, 2026

    fix(mcpx): second Codex fix pass on script-backed tools (PR #8317, ta…

    968845d

    fix(mcpx): compare resolved namespaces exactly on live API add (PR #4637

    4eb8e85
  4. dezren39
    added
    epic/mcpx-platformReprioritization program epic (2026-11-12)
    on Nov 12, 2026
  5. dezren39
    added this to the mcpx platform program milestone on Nov 12, 2026
  6. github-actions
    assigned
    dezren39
    on Nov 12, 2026
  7. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triaged

    • Agent: queue worker (repo-worker-code), lane code-c
    • Session / ID: task 18564
    • Found via: queue claim
    • Task: Triage of issue mcpx: TestServerKeysAnotherHostWritesAreRecordedNotRefused fails on clean main on the laptop (host-dependent) #8007 (mcpx: TestServerKeysAnotherHostWritesAreRecordedNotRefused fails on clean main on the laptop, host-dependent) — verdict: real and current; first triage of this issue, routed as task 20052.
    • Expectation: done = triage verdict + labels recorded (this note), follow-on task 20052 queued, task 18564 completed as triaged.

    Triage (inline, this pass):

    • Work kind: small-fix (task/small-fix) — make the test hermetic (or make the loader respect the isolated root in tests), following the mcpx: TestConfigLayersProperty fails on clean main when host mcpx config has extra servers (test not hermetic) #7686 pattern; the leak path must be named in the fix.
    • Priority: priority/normal — a developer-machine-only test failure; CI is green, so no pipeline is blocked, but every laptop run of the package is red until fixed.
    • Effort: effort/s — the diagnosis is already in the issue and the fix shape has a landed precedent (mcpx: TestConfigLayersProperty fails on clean main when host mcpx config has extra servers (test not hermetic) #7686).
    • Kind: kind/bug and epic/mcpx-platform already present; app/mcpx added.

    Evidence (fresh, 2026-11-16):

    • Issue mcpx: TestServerKeysAnotherHostWritesAreRecordedNotRefused fails on clean main on the laptop (host-dependent) #8007 is OPEN with only the Kaneo intake comment since filing (2026-11-09) — never triaged or worked; no hold labels.
    • The test still exists on current main: pkgs/mcpx/internal/config/config_test.go line 168 (verified fresh via gh this pass).
    • The failure was demonstrated on clean main twice at filing (pre-fix c2283a5 and merged e4e8674, both: config_test.go:212 "a merged load lost the ignored key: []"), and the mechanism is named in the issue: config.SearchPathFrom walks up past the test's isolated root, admitting host config files (real ~/.mcpx.json, /etc/mcpx/config.json) that CI never has.
    • First concrete step (in task 20052): reproduce on the laptop with go test ./internal/config/ -count=1 -run TestServerKeysAnotherHostWritesAreRecordedNotRefused in pkgs/mcpx, then close the leak path.
    • Acceptance check for the fix: the named test and the full internal/config package pass on the laptop (real config present) and in CI.

    Issue #8007 stays open for task 20052.

  8. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    effort/sSmall: expected under 2 hours of work
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    on Nov 17, 2026
  9. 5 remaining items

  10. dezren39
    added
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 17, 2026
  11. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up (task 20052)

    • Agent: queue worker (repo-worker-code), lane any-m
    • Session / ID: task 20052
    • Found via: queue claim (unfiltered, one-queue)

    Revalidated fresh: issue #8007 OPEN, no hard-stop labels (the queue/parked/status/parked labels are stale queue state from an earlier park, synced at this claim). Next: reproduce TestServerKeysAnotherHostWritesAreRecordedNotRefused on the laptop, root-cause the host-config leak through config.SearchPathFrom, and make the test hermetic in the #7686 shape.

  12. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 17, 2026
  13. dezren39
    added a commit that references this issue on Nov 17, 2026

    Merge pull request #11207 from developing-today/queue/20052-8007-mcpx…

    74734ec
  14. dezren39
    closed this as completedin #11207on Nov 17, 2026
  15. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 17, 2026
  16. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (task 20052, fixed_merged — shepherded the task's existing PR)

    • Agent: queue worker (repo-worker-code), lane any-m
    • Session / ID: task 20052

    Outcome: PR #11207 merged (74734ec), issue #8007 auto-closed.

    This task had already been worked under an earlier claim of task 20052: branch queue/20052-8007-mcpx-test-hermetic / PR #11207 (commit baca47c) was open when this claim landed, so no parallel PR was built. This session revalidated, independently reproduced, verified, and merged it:

    • Root cause (independently reproduced on the pre-fix tree): the merged-load half of the test bounded only HOME/XDG. (A) An ambient MCPX_PATHS_CONFIG seed with no null replaces the discovery walk outright — the fixture never loads: a merged load lost the ignored key: [], the filed failure verbatim. (B) Without a seed, SearchPathFrom climbs from the fixture dir to /, so a host .mcpx.json in a TMPDIR ancestor with an unknown mcpx key fails the load outright (reproduced with a planted ancestor file). The earlier Nov 15 commit 17e55d5 had already closed the third path (MCPX_CONFIG, set in the devshell).
    • The PR's fix: seed MCPX_PATHS_CONFIG with exactly the fixture file (no null — replaces the walk, the mcpx: TestConfigLayersProperty fails on clean main when host mcpx config has extra servers (test not hermetic) #7686 pattern) and clear the flag seed via config.SetPathsConfigSeed(nil); the leak paths are named in the test comment.
    • Verification on the PR branch: the test passes (1) by default, (2) with MCPX_PATHS_CONFIG=/etc ambient, (3) with the planted bad ancestor config under TMPDIR, and (4) the full internal/config package passes (go test ./internal/config/ -count=1).
    • Reviews: Codex review quota-failed on this PR (summary records the failed run, no findings, zero inline comments) — merged under standing authority on the verification above.
  17. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workepic/mcpx-platformReprioritization program epic (2026-11-12)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    • mcpx platform programNo due date

    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.