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: CI workflow skeleton -- init, matrix, final job; triggers, concurrency, caching, checkout · Issue #1985 · 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 requestepic/mcpx-platformReprioritization program epic (2026-11-12)kind/testTest coverage, test infrastructure, or test-only fixesmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/fixhas a fix task queued Milestone DescriptionRelocated from dezren39/darwin-nix#135 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: #95 SummaryReplace the single serial Original notes
The long bullet below is quoted here for its caching / shallow-clone / no-teardown / job-start clauses (its sharding and budget clauses are owned by #139 and #140):
Current stateMeasured on d0b7e01; re-checked at 05c78b2 after #182, which landed this issue's one-line cache fix (marked below). Step timings, run 36673523537 (push to main, 3m57s wall, job 3m53s; full log at
The last 20 runs: 3m24s-4m30s; the last 10: 3m57s-4m30s. Setup is ~33 s, and the ~31 s of Go compile inside the test step is what a warm cache should remove. After #182 (run 36693030957, push to main at 05c78b2, 4m09s wall): setup 22 s (setup-go 8 s), Trigger gaps today:
Decisions1. File and workflow name
2. Job graph
Honest cost: an init hop adds one job start (queue 2-3 s + set up ~3 s + checkout ~2 s + whatever it builds) before any test starts. If the seed could be derived identically in every leg (from 3. Triggerson: push: branches: [main] pull_request: types: [opened, synchronize, reopened, ready_for_review] workflow_dispatch: inputs: budget_seconds: { type: number, default: 0 } # 0 = use the hardcoded default; #140 jobs: init: if: github.event_name != 'pull_request' || !github.event.pull_request.draft
4. Path filters vs always-run
5. Concurrencyconcurrency: group: mcpx-test-${{ github.event.pull_request.number || github.run_id }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} PR runs share a group per PR and cancel the superseded one. Non-PR runs get a unique group ( 6. What happens to
|
| What | Today | Proposed |
|---|---|---|
| Go modules + build cache | cache-dependency-path)mcpx.yml:50); every run, PRs included, now saves |
Keep cache-dependency-path: pkgs/mcpx/go.sum in every Go job. Still open: on PRs use actions/cache/restore only -- today each PR run saves its own branch-scoped copy (36692557266 and 36693225089 both did), and those evict main's under the 10 GB repo limit; save on main only. Expected to remove most of the ~31-39 s compile per job -- measure the first warm run in #143. |
| Go toolchain | downloaded + 7.3 s copied into hostedtoolcache every run | Either accept it (it is per job, so it multiplies by the shard count), cache it, or take Go from the flake (below). |
| Deno | cache: false |
cache: true (caches DENO_DIR); matters once plugin/docs tests import anything. Pin the version (see below). |
| Bun / Node | no deps to cache | pin versions; nothing else. |
| Nix store | 417.7 MiB from cache.nixos.org each run; no binary cache | The free Magic Nix Cache ended 2025-02-01 (Determinate blog). Current options: nix-community/cache-nix-action (free, store in the GH Actions cache, counts against 10 GB), DeterminateSystems/flakehub-cache-action (FlakeHub Cache is paid, free for OSS on request; it also has a use-gha-cache input -- whether that works free today is unverified), Cachix (5 GB free for OSS). Honest: a store cache saves the fetch and the go-modules FOD, but a PR that changes mcpx always re-runs buildPhase + checkPhase (~40 s); caching helps unchanged derivations (bun-bin, re-runs, #49's other packages) far more than it helps mcpx. |
| mcpx / fakemcp / askmcp binaries | built by testsupport once per test binary via go build in a subprocess (internal/testsupport/build.go) |
See below. |
Versions (local == CI). Three different Buns (above) is exactly the #35 class of bug. #134 records the same drift. Two ways out: pin every setup-* action's version to the flake's (deno/bun/node from flake.lock) and let Renovate bump both; or run the test jobs inside the flake dev shell #134 proposes (nix develop .#mcpx -c go test ...) so Go, Deno, Bun, Node and the linters all come from flake.lock. The dev shell costs the Nix install (8.3 s) plus a substitution per job, and needs a store cache to be competitive; the setup-* route costs ~18 s per job today. Measure both in #143 rather than argue it here; #141 makes the same call for the linters.
Shared binaries. Options, least to most recommended:
GOCACHE, go build ./cmd/mcpx in each shard is likely a few seconds; zero new moving parts.init builds mcpx, fakemcp, askmcp once and uploads an artifact; each shard downloads it. Costs an upload (~2-5 s) on the critical path in init and a download per shard, and needs testsupport to accept a prebuilt path: the mcpx binary override Update Rust crate bytes to v1.11.1 [SECURITY] #133 designs (MCPX_TEST_BINARY or a -mcpx.binary test flag, name open there) plus the matching fakemcp/askmcp override Update Rust crate rand to v0.9.3 [SECURITY] #134 asks for.go test -c ./internal/e2e in init, so shards run ./e2e.test -test.run '<regex>' and need no Go toolchain at all (drops setup-go, ~11 s, from every shard). The same env override lets Bump golang.org/x/crypto from 0.14.0 to 0.17.0 in /sources/chat #97 run the e2e suite against the Nix-built binary and the container binary, which is the real reason to do it. Recommended once 🎨 Palette: Search panel accessibility improvements #143 shows per-shard Go setup is significant.The repo is small (930 files; full-history checkout 2.4 s). A sparse, depth-1 checkout saves about one to two seconds per job -- worth it because it is two lines, not because it is big:
- uses: actions/checkout@v7 with: fetch-depth: 1 sparse-checkout: pkgs/mcpx # cone mode also materialises root files: flake.nix, flake.lock persist-credentials: false
Caveats:
nix job. The flake evaluates ./pkgs/bun-bin/package.nix for mcpx (flake.nix:276,385) and copies the flake source from the git tree; whether a sparse working tree evaluates is unverified. Use depth 1, full tree.fetch-depth: 0 in mcpx.yml is not needed for the vendorHash push: committing on a depth-1 checkout of the branch head and pushing a fast-forward works. Verify on the first bot PR.init's relevance diff needs the base commit: fetch it explicitly (git fetch --depth=1 origin ${{ github.event.pull_request.base.sha }}) rather than deepening the whole clone.Post steps cost 2.0 s in total (nix-installer 1.2 s is most of it). There is no generic switch to skip a uses: action's post step, and 2 s of 4 min is not worth a custom flag. What is worth doing:
Do not skip test-level teardown. The e2e t.Cleanup is the code that keeps #52 fixed: since #182 it runs mcpx stop --all (which reads the daemon-<key>.json info files) and logs its error instead of discarding it (internal/e2e/e2e_test.go:71-85), and newEnv sets MCPX_AUTOSTART_IDLE_EXIT=60s as the backstop (:68, :92). Skipping the cleanup in CI would hide a regression of exactly that. Note the opposite problem: the runner's "Cleaning up orphan processes" at job end silently kills anything that leaked, so CI can never see a leak on its own. The e2e job should count surviving mcpx daemon processes after go test and warn -- a regression check for #182's fix (policy in #99).
init exposes outputs.seed (design in #93 / #121, collection in #122); every leg sets it in env: under the name #121 picks. Two consequences for this workflow: the seed and the shard list must be printed in each leg's job summary so a failure is reproducible locally with one command (#99), and if #93 uses go test -shuffle=<seed>, test result caching is off for that invocation (-shuffle is not in the cacheable flag list, go help test).
-count=1 and the Go test cachego help test: a result is reused only when the test binary and "cacheable" flags match, and "tests that open files within the package's module or that consult environment variables only match future runs in which the files and environment variables are unchanged." The cache cannot see what a subprocess does.
internal/e2e imports only internal/api and internal/testsupport. It builds cmd/mcpx and fakemcp with go build in a subprocess. So a cached e2e pass would survive a change to cmd/mcpx, internal/daemon or anything else the binary contains -- a stale green. e2e must keep -count=1. A prebuilt binary path passed by env var does not help: the path string is tracked, the file (outside the module) is not.internal/pool (builds fakemcp through testsupport) and internal/config/scope_test.go (exec.Command).GOCACHE and skip unchanged packages. Today all units except tui (8.6 s) finish in under 2 s, so the saving is small. Recommendation: keep -count=1 everywhere now, and revisit only if the unit job ever becomes the longest job.#91 decides that every runnable code block in the book is extracted and run against the built binary, and generated references (mcpx man, the OpenAPI from mcpx api, the settings table) are regenerated and diffed. The docs tree owns the book, the extraction format and the runner; this workflow only reserves a docs-examples leg that needs: init, consumes the same binary as the e2e shards (decision 7), receives the seed, and reports to ci-ok. Until the docs tree lands its runner, the leg does not exist; the skeleton should just not make it hard to add (matrix legs come from init's JSON, so adding it is one entry).
init: will Bump golang.org/x/crypto from 0.10.0 to 0.17.0 in /sources/graph #93's seed be derivable in every leg (removing the init hop), or must it be minted once?.#packages.x86_64-linux.mcpx? (Try once; if not, the nix job stays full-tree.)setup-* for toolchains: which is faster per job once a Nix store cache exists? (🎨 Palette: Search panel accessibility improvements #143 measures.)cache-nix-action (free, eats the 10 GB Actions cache that Go also uses) vs FlakeHub Cache OSS account vs Cachix? Shared with build(deps): bump build/buck/preludes/buck2-prelude from d956689 to 3cfc766 #49.ci-ok become a required check on main now (main is unprotected today)? Required checks are what make stuck-PR design matter; if the user never merges red, it can wait.GITHUB_TOKEN push-back now yields approval-required runs: acceptable for Renovate, or does build(deps): bump build/buck/preludes/buck2-prelude from d956689 to 3cfc766 #49 move to an App token?ubuntu-latest plus one smoke shard per other environment? Bump golang.org/x/crypto from 0.14.0 to 0.17.0 in /sources/chat #97/Update Rust crate rand to v0.9.3 [SECURITY] #134 decide; this workflow only has to be able to express either (from Phase 2: create of an existing group is first-arrival-wins, not fold-based #165).init (a PR that touches nothing relevant) skips every dependent job; confirm ci-ok's always() reads that as a pass, not a neutral (from Phase 2: create of an existing group is first-arrival-wins, not fold-based #165).workflow_call, so ⚡ Bolt: Optimize search match counting performance #142's format.yaml and build(deps): bump build/buck/preludes/buck2-prelude from d956689 to 3cfc766 #49's package builds reuse the setup block instead of copying it? It constrains init's outputs (from Phase 2: create of an existing group is first-arrival-wins, not fold-based #165).nproc and the resolved runner image in init and pin ubuntu-latest (today it resolves to ubuntu-24.04): an image change silently invalidates the timing file Update dependency hyperscript.org to v0.9.93 #139 balances on. A hand-rolled Nix store cache also needs per-cell keys with a shared restore prefix, or matrix cells race to save one key (from Phase 2: production ingest enforces only p2panda-auth membership #168).Ease M · Impact high · Depends on / related: #95 (tracker), #139, #140, #141, #142, #143; #93 / #121 / #122 (seed minted in init, format, collection), #97 / #134 (environment legs join this matrix; shared dev shell), #133 (binary override), #130 (race/shuffle/repeat PR job and nightly run join this workflow), #99 (agent run policy -- CI is where "every test" runs so agents do not), #49 (Nix job, vendorHash repair, every-package CI), #178 (also edits package.nix; the checkPhase list change should land with or after it), #52 (closed, fixed in #182 -- the cache line and the teardown/orphan-count notes above reflect it), #35 (Linux/macOS drift; tool version pinning).
Security/auth deferred; see tracker.
History carried over from dezren39/darwin-nix#135 (verbatim, oldest first):
@dezren39 · 2026-09-30T06:51:30Z
Overlaps #165, written concurrently by a second worker on the same slice. Both are kept until reconciled; see the tracker (#95) for the differences and which one to keep.
@dezren39 · 2026-09-30T07:20:56Z
Integration pass. Placed in the DAG rooted at #181.
d956689 to e7457f6 #52 blocks sharding@dezren39 · 2026-09-30T12:03:12Z
Issues pass (2026-09-30, at 05c78b2).
cache-dependency-path: pkgs/mcpx/go.sum, .github/workflows/mcpx.yml:50). Struck "has never worked" in the step table and the decision 7 row; what remains of caching (restore-only on PRs -- every PR run now saves its own branch-scoped copy -- the Nix store, toolchains) stays open.go test 148 s, e2e 108.9 s for 209 tests, nix build 70 s (checkPhase 18.5 s). All three runs since Phase 5: tag event bodies must travel with the event #182 logged Cache is not found (first main run with the key; PR runs that started before main saved), so no warm-cache number exists yet -- 🎨 Palette: Search panel accessibility improvements #143 records it.d956689 to e7457f6 #52 is fixed (stop --all via info files, error logged, 60 s idle exit, internal/e2e/e2e_test.go:68,71-85,92); reworded the teardown note so it no longer says the leak is open.checkPhase argument (keep it -- the no-network sandbox would have caught Update Rust crate axum to 0.6.20 #65 -- but take it off the critical path) and its drifted package list (12 packages with tests never run in the sandbox; still true at 05c78b2), now under decision 6; from Phase 2: create of an existing group is first-arrival-wins, not fold-based #165, "do not add converted_to_draft", the skip-shim workaround, the repair-only mcpx.yml variant, the mcpx.yml:3-11 load-bearing note, and four open questions; from Phase 2: production ingest enforces only p2panda-auth membership #168, pinning the runner image / recording nproc.d956689 to e7457f6 #52 marked closed; added Phase 3: range read_flight buffers frames with no cap while more is set #178 (also edits package.nix).🤖 Agent note · state: filed
🤖 Agent note · picked-up
repo-health-code-pilotpkgs/mcpx and .github/workflows, implementation follow-up packet🤖 Agent note · triaged (task 18186, lane code-d)
Triage verdict updated with fresh evidence this shift (2026-11-17T02:33Z): issue #1985 is OPEN, no hard-stop labels, already triaged; the trigger/activation remainder was completed as already_done by task 12997 via PR #8149.
Fresh checks: PR #8149 MERGED 2026-11-10T19:31:25Z. The two verification runs task 12997 left pending have since concluded — main push run #43292374572 and PR run #43292381400 both completed/failure (recorded honestly: the skeleton fires, the test content in those runs did not pass). Triggers are live today: three mcpx test runs on main (#44001367970, #44001489324, #44001735918, created 2026-11-17T02:13–02:16Z) are queued — path-filtered push triggers from PR #8149 are firing as designed, consistent with the #7089 ruling.
Outcome: this task completes as triaged. The CI workflow skeleton scope (triggers/activation) is landed and firing; run-content failures belong to the mcpx testing tree, not the skeleton, and issue #1985 stays OPEN for its remaining design-scope disposition per the task 12997 note.
🤖 Agent note · triaged (fresh element-by-element verification) — task 19679 (lane any-s)
Issue #1985 is OPEN, no hard-stop labels, already enriched (kind/test · priority/normal · app/mcpx · effort/m). The skeleton it decides is verified LANDED on main (888530d, 2026-11-17) in .github/workflows/mcpx-test.yml:
init mints the run seed (mcpx testing: one seed per run -- format (UUIDv7), derivation, and how it reaches every test #1949) and generates the e2e matrix from the tests actually present, packed by measured time (mcpx testing: shard the suite by measured time, and a rule for when to stop splitting #1994); legs are unit / lint / plugin-ts / e2e shards; ci-ok is the final aggregator — needs all legs, fails if any leg failed or was cancelled, and prints the budget/measurement table.cancel-in-progress: true — superseded runs are cancelled as specified.setup-go runs with cache: true (go.sum-keyed) on the unit, lint, and e2e legs.actions/checkout@v7 at its default shallow depth on every leg; no sparse/partial checkout — the one literal sub-item not adopted, and not worth a follow-on: the legs only work under pkgs/mcpx, checkout is already shallow, and no run evidence names checkout size as a cost..github/ci-policy.md, "Nightly main CI": ~1,000 queued push runs, main CI ~15h behind) then replaced the push leg with a nightly schedule + workflow_dispatch for every main-push workflow, this one included (07:17 UTC slot pattern; mcpx-test runs 06:05... recorded as cron "17 7 * * *"). Reinstating push/PR triggers here would contradict that ruling.Verdict: the design scope of #1985 is implemented and its only deviations are owner-ruled (triggers) or immaterial (sparse checkout). No scoped follow-on is routed from this task: run-content failures in the mcpx suite belong to the mcpx testing tree's own issues, not the skeleton. Issue #1985 stays OPEN per the standing disposition in the task 12997 / task 18186 notes (fleet has twice left its final design-scope disposition open); this task completes as triaged on the fresh evidence above.
Queue: task 19679 (lane any-s) — completed as triaged.
Correction to the note above (comment 6941983080): the mcpx-test nightly cron is 17 7 * * * (07:17 UTC), matching the ci-policy nightly slot — the "06:05" in that parenthetical was a stray from a different job and does not apply here. Everything else in the verdict stands. — lane any-s, task 19679
🤖 Agent note · second-pass re-verification (task 21781, lane oc-code-05, 2026-11-24)
9b621f30bc0, extended since the 11-17 triage: init + legs, ci-ok final aggregator now needs 11 legs (incl. e2e-no-deno via ci(mcpx): e2e-no-deno leg — real bun and node paths with no Deno on PATH #13387, remote-smoke/remote-e2e), concurrency cancel-in-progress: true, nightly cron 17 7 * * *, go/gha caching on legs, shallow actions/checkout@v7.workflow_dispatch/branch runs (incl. fix/21424-mcpx-ci) — run content, not skeleton, per the standing verdict.Closing as completed. The skeleton this issue designs is built and running on main, and everything that plugged into it has closed.
.github/workflows/mcpx-test.yml has the init job (seed plus a measured-time e2e matrix), the matrix legs, and the ci-ok final job with the time-budget table. Concurrency cancels superseded runs, Go caching is on the legs, and checkout is shallow.format.yaml).17 7 * * *) plus on dispatch instead of on every push, per Drew's 2026-11-16 ruling recorded in .github/ci-policy.md ("Nightly main CI"). That is an owner decision, not unfinished work.Generated by Claude Code