GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — mcpx testing: environments -- nix flake, container, local, remote -- as CI matrix entries · Issue #1983 · developing-today/code Done Labels app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workenhancementNew feature or requestkind/testTest coverage, test infrastructure, or test-only fixesmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests DescriptionRelocated from dezren39/darwin-nix#134 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue references inside it are historical (dezren39/nix numbering). Parent: #97 SummaryDefine the environments the integration suite must pass in: nix flake, container, local, and remote. For each, say what it needs, which tests it runs, and how it becomes a CI matrix entry. The CI tree (#95) owns the matrix and budget; this issue defines the entries. It also covers two proposals:
The extended OS and distro list (alpine, scratch, distroless, flatpak, Fedora, Windows) is #136. The real-software subset is #137. Original notes
Current state (written on d0b7e01; re-checked at 05c78b2)
Approaches -- the containerA --
|
| Entry | Runner | Needs | Runs | Tier (#136) |
|---|---|---|---|---|
unit |
ubuntu-latest | Go | go test on non-e2e packages |
1 |
e2e-host-linux |
ubuntu-latest | Go + runtimes at flake versions (from the devShell, not setup-*@latest) + python3; MCPX_TEST_REQUIRE set |
e2e, binary suite | 1 |
e2e-inproc |
ubuntu-latest | same | e2e, in-process suite (#133) | 1, once it exists |
nix-build |
ubuntu-latest | nix | nix build .#mcpx (unit checkPhase), then the installed-output assertions above (wrapper under env -i, doctor, #178's man/completion/version) |
1 (build exists; assertions new) |
nix-flake-check |
ubuntu-latest | nix | checks.mcpx-e2e against the wrapped binary |
1 if under budget, else 2 |
container |
ubuntu-latest, container: = test image |
image from packages.mcpx-image |
e2e binary suite inside | 2 |
container-user |
ubuntu-latest | docker build -f pkgs/mcpx/Containerfile (#182's image) |
build on every change to the file (#184 is green unbuilt today); then --version, ls and one bun exec inside, MCPX_TEST_REQUIRE=bun; version-drift check against the flake |
1 for the build (it is a shipped file), 2 for the run |
e2e-no-deno |
ubuntu-latest | bun and node only on PATH | the real bun and node e2e paths with no Deno anywhere on PATH -- what a user without Deno gets from script.runtime=auto, which no nix-wrapped run can show (the wrapper suffixes Deno). #100's own auto test uses stub runtimes on PATH and runs in any leg; this leg is the end-to-end counterpart. #100 owns the runtime question (#181 collision 11) |
1 once #100 lands |
e2e-host-linux-arm64 |
ubuntu-24.04-arm | as linux | e2e binary suite; a second architecture rather than a second OS (see the comment from #161 below) | 2 (open) |
remote |
ubuntu-latest + services: daemon |
test image as the service | remote-safe /v1 + MCP subset |
2 |
e2e-host-macos |
macos-latest | as linux | e2e binary suite (#35 was a macOS/Linux split) | 2 |
plugin |
ubuntu-latest | bun | bun test plugin/opencode/mcpx/daemon.test.ts (#132) |
1 |
container: and services: need a Linux runner on GitHub-hosted runners: https://docs.github.com/en/actions/writing-workflows/choosing-where-your-workflow-runs/running-jobs-in-a-container.
$HOME, and the 104/108-byte socket path under $TMPDIR. This is the cheapest experiment in the tree.setup-* (fast cached downloads)? Pinning setup-deno to the flake's exact version is a middle path, with a drift check.remote-safe as an explicit opt-in per test, or derive it from declared needs? Opt-in is safer at first.nix build and docker load?MCPX_CONFIG is read by the daemon, so a remote daemon has a config the client cannot see; does the harness push servers over POST /v1/servers (C above) only, or also start the daemon with a per-run config (from Phase 2: authority judged at causal past or canonical prefix #162)?daemon.address=127.0.0.1, fixed daemon.port) enough for the gating leg, with a real second host (a service container) nightly? Loopback is a different transport, not a different host (from Phase 2: authority judged at causal past or canonical prefix #162).flake.lock (one Renovate group), or read their versions from the flake? Phase 5: compaction for tag clears #184 is the first drift.docs/container.md §3/§5 keep git in the image (105 MB with perl) because the repo/worktree scopes shell out to it. GIT is replacing that with native resolution in internal/config/scope.go; if it lands, git can leave the image and the needs git labels here and in Update dependency happy-dom to v21 [SECURITY] #136 may disappear. Re-check this issue when that PR merges.Ease L (devShell and MCPX_TEST_REQUIRE: S; flake image and checks.mcpx-e2e: M; remote runner: M-L) · Impact high
Depends on / related: #133 (binary and fakemcp overrides, scriptable fake), #138 (isolation first), #136 (tiers, extended OSes, static policy), #137 (the pinned version set), #95 (owns the matrix), #49 (build every flake package, including the image), #100 (owns #181 collision 11: the auto runtime test; the no-Deno leg is a row here), #178 (man/completion/version assertions on the nix output), #52 (closed, fixed in #182), #35, #65, #93 (seed), #99 (when agents run which entry).
Security/auth deferred; see tracker.
History carried over from dezren39/darwin-nix#134 (verbatim, oldest first):
@dezren39 · 2026-09-30T06:50:29Z
Salvaged from a duplicate issue (#161, now closed) -- one leg it proposed that this issue does not.
aarch64-linux is already a buildable target, and it is the cheapest second architecture available.
flake.nix:207-211 builds every system in nix-systems/default minus x86_64-darwin, so packages.aarch64-linux.mcpx exists today without any flake change. GitHub now offers free arm64 Linux runners for public repositories (ubuntu-24.04-arm), and arm64 is a first-class container target, so an arm64 container leg costs a matrix entry rather than a port.
Worth weighing against the macOS leg this issue already discusses: macOS gives a second operating system and is the one with recorded evidence behind it (#35 -- two tests passed on macOS and failed on Linux); arm64-linux gives a second architecture on the same OS, which is the axis that catches word-size, alignment and cgo-vs-pure-Go differences. They are not substitutes. Which tier each belongs in is for this issue to decide; the point is only that arm64 is available at matrix-entry cost and was missing from the options.
@dezren39 · 2026-09-30T06:51:48Z
Overlaps #161, written concurrently by a second worker on the same slice. Both are kept until reconciled; see the tracker (#97) for the differences and which one to keep.
@dezren39 · 2026-09-30T07:21:09Z
Integration pass. Placed in the DAG rooted at #181.
@dezren39 · 2026-09-30T11:06:13Z
Collision ownership (issues pass, 2026-09-30, at 05c78b2). #181 listed these cross-theme collisions with no owner. Each now has one:
| #181 row | Collision | Owner | What the owner decides |
|---|---|---|---|
| 11 | auto hides Node breakage from anyone testing through the flake |
#100 | Partly outdated: the e2e suite already runs its runtime tests under each runtime explicitly (internal/e2e/runtime_test.go:14,46, e2e_test.go:2478) and CI installs all three. What remains is auto itself -- on a nix install the wrapper's PATH suffix makes it resolve to Deno every time -- and non-erasable TypeScript under Node. #100 owns the test that auto picks each runtime when it is the only one on PATH; the CI leg without Deno goes through #134's matrix. |
Where this issue is the owner, the decision is made here; where it is not, it adopts the owner's decision rather than making its own.
@dezren39 · 2026-09-30T12:03:26Z
Issues pass (2026-09-30, at 05c78b2).
pkgs/mcpx/Containerfile (debian:bookworm-slim, bun only, git, ARG CGO_ENABLED=1, pinned by tag+digest, 413 MB; no CI job, no container tests, not wired to package.nix). Rewrote the container row, and re-anchored approaches B and C on the file that exists: B is what Phase 5: tag event bodies must travel with the event #182 shipped; C's "user Containerfile" is that file, and what C adds is a CI build of it plus a version-drift check. No redesign -- the GIT architect owns the file and is changing it now. Renovate Phase 5: compaction for tag clears #184 (Go image 1.27 vs 1.26 in the flake, green because nothing builds the file) is recorded as the first drift.container-user (build Phase 5: tag event bodies must travel with the event #182's image; bun-only run), e2e-no-deno (where Bump build/buck/preludes/buck2-prelude from d956689 to 9afedba #100's auto test runs -- Bump build/buck/preludes/buck2-prelude from d956689 to 9afedba #100 owns Phase 3: sync, blob gate, and relays #181 collision 11), and e2e-host-linux-arm64 (from the Phase 2: removal: weak is stored but not built #161 salvage comment); nix-build now includes installed-output assertions.env -i, doctor; man/completion/version are Phase 3: range read_flight buffers frames with no cap while more is set #178's). From closed Phase 2: authority judged at causal past or canonical prefix #162: the inline/spawn/remote run modes, the remote command classification, the "every runtime takes TCP against a remote daemon" point, and two remote open questions.d956689 to e7457f6 #52's leak fixed in Phase 5: tag event bodies must travel with the event #182; the inherited environment is still Update dependency htmx.org to v1.9.12 #138. Re-cited registry.go, seedElicitation, and ladder lines. Flagged what GIT's native git resolution may change (git in the image, needsGit).@dezren39 · 2026-09-30T12:13:37Z
Issues pass (2026-09-30, architect follow-up). The e2e-no-deno row said it is where #100's auto test runs. As #100 now designs it, that test uses stub runtimes on PATH and runs in any leg. The row's own value is the real bun and node e2e paths with Deno absent -- what a user without Deno gets, which no nix-wrapped run can show. Reworded; ownership (#100, collision 11) unchanged.
🤖 Agent note · state: filed
agent-note:v1
state: done
task: 19678
issue: #1983
lane: oc-code-07 (OpenChamber scheduled lane)
worker: repo-worker-code
origin: openchamber-scheduled-lane
Task 19678 is complete as pr_opened. PR #12093 implements legs 2-4: flake checks.mcpx-e2e output, container CI leg, and scoped two-container remote daemon smoke in the existing mcpx-test matrix. Hosted run 44701960207 had those environment legs and six e2e shards green. The only failing unit check is TestPluginOpsAreGenerated stale ops.gen.ts, which reproduces on clean main (run 44568398215) and is outside this PR scope. Issue remains open for the broader remote-safe /v1+MCP suite follow-up. Sandbox backlog/sweep-log bookkeeping deferred to fleet reconciliation.
Claim — lane felix, 2026-11-23: starting on #1983 (mcpx test environments). First step is a done check against current origin/main: what of the matrix (devShell, MCPX_TEST_REQUIRE, flake checks/image, container CI job, remote runner) already exists, then I land the missing bounded slice or record verification.
Done check + one slice landed — lane felix, 2026-11-23. Checked item by item against current origin/main. Most of this issue is already implemented; the one missing bounded item (the devShell) is landed in PR #13394; the remainders are filed as sequenced follow-ups. This issue stays open as the tracker for those.
env -i, doctor, version; man/completion via Phase 3: range read_flight buffers frames with no cap while more is set #178's line): pkgs/mcpx/packaging-test.sh (mcpx: a packaging test -- install the built artifact and check the MCP handshake #1981), wired as checks.mcpx-packaging in lib/default.nix and run by mcpx-nixbuild.yml. Latest nixbuild run green: https://github.com/developing-today/code/actions/runs/45037717489MCPX_TEST_REQUIRE (missing required binary fails instead of skipping): internal/testsupport/require.go (mcpx(testsupport): MCPX_TEST_REQUIRE has two divergent parsers, and CI's python3 entry is enforced by nothing #6904), with the suite-level check TestRequiredBinariesAreOnPath naming every missing entry at once — the "preflight prints what is missing once" step in substance. CI sets it (mcpx.yml: deno,bun,node,python3, with a comment citing this issue; also the nix-e2e leg).testsupport.ChildEnv), and the e2e TestMain refuses to run if a caller-daemon pointer would be inherited and fails if the caller's real daemon set differs after the run. No RequireNoUserDaemon helper exists because the suite-wide guard replaced the per-test label.packages.mcpx-container (pkgs/mcpx/container-image.nix, Containers: Nix-build audit — mcpx Containerfile, duplicate lab-ops Dockerfile, amd-crd definition-or-waiver #5771) is the shipped image; the Phase 5: tag event bodies must travel with the event #182 user Containerfile was retired in its favour, so the version-drift problem is gone by construction rather than policed by a check. The test image (mcpx-e2e-test-image, exposed as checks.mcpx-e2e) carries deno + bun + nodejs + git + python3 + cacert + /tmp. The container-e2e leg in mcpx-test.yml runs the full e2e suite inside it; the tier-2 nightly (mcpx-tier2-containers.yml, mcpx testing: extended platforms -- which artifacts ship static; alpine, scratch, distroless, flatpak, Fedora, Windows tiers #1987) runs the shipped image and the alpine/scratch/distroless variants — latest run green: https://github.com/developing-today/code/actions/runs/45028138175checks.mcpx-e2e, with one recorded deviation: the check exposes the flake-built test image and the suite runs in it under Docker --init outside the nix build sandbox — the comment in lib/default.nix states why (the suite spawns daemon/runtime process trees that need init to reap them). The open question "does e2e pass in the nix sandbox at all" was answered by routing around the sandbox for that reason. A second leg, nix-e2e, runs the full suite against the wrapped flake binary on the host with MCPX_TEST_REQUIRE set.unit, e2e-host-linux (sharded, measured-time packing), nix-build, nix-flake-check (as the image check above), container, plugin (mcpx.yml + mcpx-test plugin-ts). e2e-host-macos is covered in substance by the nightly stress job in mcpx.yml (full suite on macos-latest under race/shuffle/repeat). e2e-inproc exists as inline-mode tests inside the e2e suite rather than as its own leg. container-user is moot (the Containerfile it named no longer exists).mcpx-test run (https://github.com/developing-today/code/actions/runs/45038359692) every environment leg is green — flake binary e2e, container e2e, remote daemon smoke, all six e2e shards. That run's unit and lint basic legs are red on main; that is outside this issue's scope and is filed as ci(mcpx): nightly mcpx-test basic legs red on main — unit TestNoPackageRedeclaresADefault + lint #13393.nix develop .#mcpx — PR flake: add the mcpx development shell (#1983 local leg) #13394 (the Local section's step 1; steps 2–3 were already in). Verified remotely: dispatch fp_6f3aa6cd9646091409681f250752a79b, run https://github.com/developing-today-forks/fleet/actions/runs/45200506277 — inside the shell: go1.27.3, deno 2.9.8, bun 1.4.4, node v24.21.0, Python 3.14.8, git 2.56.0, gopls v0.24.0, golangci-lint 2.15.0.remote-smoke proves only the cross-container TCP transport (status), so the Remote section is the one genuinely partial leg.e2e-no-deno leg (bun + node only on PATH; the auto behaviour a Deno-less user gets).e2e-host-linux-arm64 leg (tier 2, marked open in this issue's own table).New dependencies: none (the devShell uses only the flake's existing nixpkgs input). Schedules touched: none.
Merge pull request #13394 from developing-today/felix/1983-mcpx-devshell
Merged note — Felix, 2026-11-23: PR #13394 merged after my review. The mcpx dev shell (nix develop .#mcpx) was the one missing bounded slice; the rest of this issue verified as already landed in the record above. Remote proof at the merged head: the shell opens and carries the pinned tool set (go 1.27.3, deno 2.9.8, bun 1.4.4, node 24, gopls, golangci-lint). Issue stays open as tracker for follow-ups #13386 (remote-safe e2e subset), #13387 (no-deno leg), #13388 (arm64 leg); the red nightly legs the lane spotted are filed separately as #13393.
Second-pass verify (lane code-h, task 21780), fresh state 2026-11-24:
Verdict: delivered in substance; last remainder tracked and owned elsewhere — no packet routed.
Triage verdict (lane xaltha, 2026-11-26, queue task 24913, checked live): RESOLVED — delivered in substance, closing.
All environments defined in this issue are landed as CI matrix entries / legs:
checks.mcpx-e2e, container CI leg, two-container remote daemon smoke.nix develop .#mcpx with the pinned tool set, remotely verified.MCPX_TEST_REQUIRE PR mcpx: MCPX_TEST_REQUIRE — required runtimes fail instead of skipping (#1983 step 1) #3696 MERGED: required runtimes fail instead of silently skipping.No open PR references this slice and no live lane claim remains. #13481 stays open for separate full-suite health work (e.g. sdnotify) under its own issue — it no longer gates this tracker. No code change in this triage run.