Title: mcpx testing: CI workflow skeleton -- init, matrix, final job; triggers, concurrency, caching, checkout · Issue #1985 · developing-today/code · GitHub
Open Graph Title: mcpx testing: CI workflow skeleton -- init, matrix, final job; triggers, concurrency, caching, checkout · Issue #1985 · developing-today/code
X Title: mcpx testing: CI workflow skeleton -- init, matrix, final job; triggers, concurrency, caching, checkout · Issue #1985 · developing-today/code
Description: Relocated 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/ni...
Open Graph Description: Relocated 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 referenc...
X Description: Relocated 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 refe...
Opengraph URL: https://github.com/developing-today/code/issues/1985
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mcpx testing: CI workflow skeleton -- init, matrix, final job; triggers, concurrency, caching, checkout","articleBody":"Relocated from dezren39/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).\n\nParent: #95\n\n## Summary\n\nReplace the single serial `mcpx.yml` job with one test workflow shaped **init -> matrix -> final (budget + required check)**, triggered on every push to `main` and on non-draft PRs, with superseded PR runs cancelled, every download cached, and a checkout no bigger than it needs to be. This issue decides the skeleton; the shard list (#139), the budget job (#140), the formatter/linter legs (#141), `format.yaml` (#142) and the first measured iteration (#143) plug into it. The seed is minted by the init job but designed in #93; environment legs from #97 join the same matrix.\n\n## Original notes\n\n> - testing\n> - importantly, as we add more testing agents should not run every single test basically ever. below documents a rough idea of a ci job design/policy, the main priority is being short as possible.\n> - make a comprehensive github action ci.yaml workflow (or test.yaml) that is as fast as possible,\n\nThe 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):\n\n> - testing\n> - make a comprehensive github action ci.yaml workflow (or test.yaml) that is as fast as possible,\n> - repeat this process whenever testing exceeds some time budget. make setup faster, rebalance alpha splits, split groups of tests on the longest shard. maybe flag that never tears down because just killing the box after. anything downloaded should be cached, shallow clone a partial path to mcpx dir, if there's unexplainable job start delays, try to keep all job times balanced, 10 ultrafast ones can give you quick signals but may put pressure on runner infra and cause the longest jobs to last a little longer. all that matters is how long the longest jobs take. job runners have 2 or 4 cores, consider if theres lengthy tests which are '1' test but re-exec N times 'in parallel': they will only run 1-3 at a time and so 30 cases _could_ take up to 10 tests worth of time even in parallel and may need to be examined. we're using go so im not too worried about time budget but its best to get this early. main focus is strong tests as each step of the lifecycle.\n\n> - testing\n> - make a comprehensive github action ci.yaml workflow (or test.yaml) that is as fast as possible,\n> - automatically runs for every commit to main and on commit/open/undraft to a non-draft pr\n\n## Current state\n\nMeasured on d0b7e01; re-checked at 05c78b2 after #182, which landed this issue's one-line cache fix (marked below). `.github/workflows/mcpx.yml` is the only mcpx workflow: one `ubuntu-latest` job, checkout `fetch-depth: 0`, `nix-installer-action@main`, `setup-go`, `setup-deno`, `setup-bun`, `setup-node` 24, `go test ./... -count=1`, a vendorHash repair step for `renovate/*` and `dependabot/*` branches that commits and `git push`es with `GITHUB_TOKEN`, then `nix build .#packages.x86_64-linux.mcpx`.\n\nStep timings, run [36673523537](https://github.com/dezren39/nix/actions/runs/36673523537) (push to main, 3m57s wall, job 3m53s; full log at `issues/testing/ci-log-36673523537.txt`; step times from `gh api .../runs/36673523537/jobs`):\n\n| Step | Time | Note |\n| --- | --- | --- |\n| queue (job `created_at` -> `started_at`) | 2 s | 2-3 s in 9 of the last 10 runs; **37 s** in run 36663358199 |\n| Set up job (download 6 actions) | 3.4 s | |\n| checkout, `fetch-depth: 0` | 2.4 s | repo is small: 930 tracked files, 4.4 MiB pack |\n| nix-installer | 8.3 s | installer tarball is a cache hit; \"FlakeHub is disabled because the workflow is misconfigured\" (no `id-token: write`) |\n| setup-go | 10.9 s | Go 1.26.7 is not in the image: download + **7.3 s \"Adding to the cache\"**. Then `##[warning]Restore cache failed: Dependencies file is not found in /home/runner/work/nix/nix. Supported file pattern: go.mod` -- the Go module/build cache never worked before #182, because `go.sum` is at `pkgs/mcpx/go.sum` and no `cache-dependency-path` was set; the post step confirmed \"Primary key was not generated\". **Fixed in #182** (`cache-dependency-path: pkgs/mcpx/go.sum`, `mcpx.yml:50`): the key is now generated and saved (`setup-go-Linux-x64-ubuntu24-go-1.26.7-77c3e85d…`). |\n| setup-deno / setup-bun / setup-node | 2.5 / 1.7 / 3.4 s | installs **deno 2.9.7, bun 1.4.2, node 24.21.0** -- whatever is latest. The Nix wrapper pins `bun-bin` 1.3.14; a dev machine here has deno 2.9.6 / bun 1.3.11. Three different Buns. |\n| `go test ./... -count=1` | 134.8 s | ~3 s module download, ~31 s compile (first `ok` at 05:29:07.8), then `internal/e2e` **100.7 s**; `internal/tui` 8.6 s and every other package overlap with e2e |\n| vendorHash repair | 0 s | skipped (not a bot branch) |\n| `nix build` | 59.6 s | ~8 s eval, 185 paths / 417.7 MiB fetched from cache.nixos.org, go-modules FOD ~5 s, `buildPhase` 24.1 s, `checkPhase` 16.5 s (the 18 unit packages again) |\n| post steps | 2.0 s | nix-installer 1.2 s, checkout 0.2 s, setup-go 0.1 s, the rest ~0 |\n| \"Complete job\" -> job completed | ~3 s | the runner's \"Cleaning up orphan processes\" |\n\nThe 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.\n\nAfter #182 (run [36693030957](https://github.com/dezren39/nix/actions/runs/36693030957), push to main at 05c78b2, 4m09s wall): setup 22 s (setup-go 8 s), `go test` **148 s** (~39 s of module download + compile before the first `ok`; `internal/e2e` 108.9 s for 209 tests), `nix build` 70 s (`buildPhase` 28.7 s, `checkPhase` 18.5 s), post steps ~5 s of which setup-go's cache **save** is 3 s. setup-go logged `Cache is not found` in this run and in both PR runs around it (36692557266, 36693225089): the first main run with a new key misses by construction, and the PR runs started before main had saved. **No warm-cache run exists yet**; the next push to main is the first, and #143 records the number.\n\nTrigger gaps today:\n- `pull_request` has no `types:`, so it runs on the defaults `opened`, `synchronize`, `reopened` ([events docs](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request)): **drafts run, and undrafting does not trigger a run**.\n- `push` to main filters on `pkgs/mcpx/**` only, while the PR filter also has `flake.nix` and `flake.lock`. A `flake.lock` bump pushed straight to main (or merged from a PR that did not touch mcpx) **never builds mcpx on main**.\n- No `concurrency:` group, so a force-pushed PR runs every superseded commit to completion.\n- `main` has no branch protection and no rulesets (`gh api repos/dezren39/nix/branches/main/protection` -> 404, `.../rulesets` -> `[]`), so nothing is a required check yet. The repo is **public**, so `ubuntu-latest` is 4 vCPU / 16 GB and minutes are free ([runner reference](https://docs.github.com/en/actions/reference/runners/github-hosted-runners)).\n- The vendorHash push-back uses `GITHUB_TOKEN`. Per the [trigger docs](https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/trigger-a-workflow), a `GITHUB_TOKEN` update to a PR now creates the `synchronize` run in an **approval-required** state -- a human must click \"Approve workflows to run\" before the repaired commit is tested. #49 notes the repair has never run on a real Renovate PR.\n\n## Decisions\n\n### 1. File and workflow name\n\n- **A -- `ci.yaml`.** In a repo that hosts ~15 packages (#49), a workflow called `ci` claims to be the repo's CI; the next package to add tests either piles into it or collides with the name. Not recommended.\n- **B -- `test.yaml`** as in the notes. Same scoping problem, and `.yaml` breaks the `.yml` convention both existing workflows (`mcpx.yml`, `opencode.yml`) use.\n- **C -- `.github/workflows/mcpx-test.yml`, `name: mcpx-test` (recommended).** Scoped like `mcpx.yml`, and the `name:` is what `format.yaml`'s `workflow_run: workflows: [mcpx-test]` keys on (#142). If mcpx ever moves to its own repo (package.nix already says `homepage = \"https://github.com/dezren39/mcpx\"`, which does not exist yet), rename to `test.yml` then.\n\n### 2. Job graph\n\n```\ninit ──┬─> unit (all packages except internal/e2e)\n ├─> e2e (shard 1..N) (matrix from init output; #139)\n ├─> fmt / lint-go / lint-other (#141)\n ├─> plugin (bun test; #141)\n ├─> nix (nix build + vendorHash repair on bot branches)\n ├─> docs-examples (reserved slot, see below)\n └─> env legs (#97: macOS, nix-built binary, container, ...)\nall ───> ci-ok (if: always(); required check + budget report, #140)\n```\n\n`init` does only what must happen once: decide relevance (decision 4), mint and export the seed (#93), compute the shard matrix as JSON (`strategy.matrix: ${{ fromJSON(needs.init.outputs.matrix) }}`), and optionally build the binaries (decision 7). Everything it does sits on the critical path, so it must stay small.\n\nHonest 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 `github.run_id` / `github.run_attempt`, evaluated in #122) and the shard list were computed inside each leg from a committed/cached timing file, `init` could be dropped and the matrix made static. #121 currently recommends **minting** a UUIDv7 per run, which has to happen exactly once -- so `init` stays, and the skeleton should budget for it rather than assume it is free.\n\n### 3. Triggers\n\n```yaml\non:\n push:\n branches: [main]\n pull_request:\n types: [opened, synchronize, reopened, ready_for_review]\n workflow_dispatch:\n inputs:\n budget_seconds: { type: number, default: 0 } # 0 = use the hardcoded default; #140\njobs:\n init:\n if: github.event_name != 'pull_request' || !github.event.pull_request.draft\n```\n\n- \"Undraft\" is the `ready_for_review` type; it must be listed explicitly because it is not a default.\n- Do **not** add `converted_to_draft`: it would run the suite on the one transition that means \"stop looking at this\" (from #165).\n- Put the draft `if:` on `init` only: every other job `needs: init`, so a skipped `init` skips the run.\n- A skipped job reports as passing to a required check. That is harmless for drafts (they cannot merge), and `ready_for_review` produces a fresh run whose result supersedes it.\n- \"every commit to main\" means **every push**: a push of five commits tests the head only. That is standard and correct -- testing each intermediate commit would need a loop over `before..after`, and with squash merges a push is one commit anyway. Say so rather than build it.\n\n### 4. Path filters vs always-run\n\n- **A -- workflow-level `paths:` filters (today) plus a required check.** A PR that does not touch the paths never starts the workflow, so its required check sits at \"Expected -- waiting for status\" forever and the PR cannot merge. This is the well-known stuck-PR trap. GitHub's documented workaround is a second, same-named workflow that does nothing and always passes (a skip shim) -- it works, but it is one more file to keep in step with the real one (from #165). Also the current push filter is already inconsistent with the PR filter (see above).\n- **B -- no filters at all.** Every PR in this monorepo (nix config, casks, other packages) runs the whole mcpx suite. Free on a public repo, but it spends the account's 20 concurrent standard-runner jobs ([limits](https://docs.github.com/en/actions/reference/limits)) on irrelevant work and slows unrelated PRs.\n- **C -- always trigger; decide relevance in `init`; one aggregator is the required check (recommended).** `init` diffs the PR (`git diff --name-only ${{ github.event.pull_request.base.sha }}...HEAD`, or `dorny/paths-filter`) against `pkgs/mcpx/**`, `flake.nix`, `flake.lock`, `.github/workflows/mcpx-*.yml`, and outputs `mcpx: true|false`; test jobs have `if: needs.init.outputs.mcpx == 'true'`. Pushes to main always run everything. The final `ci-ok` job (`needs:` every job, `if: always()`) fails if any needed job failed or was cancelled and passes if they succeeded or were skipped; **it is the only required check**. This also solves a problem sharding creates: matrix leg names (`e2e (3)`) change every time shards are rebalanced, and a required check keyed on a leg name breaks on every rebalance.\n\n### 5. Concurrency\n\n```yaml\nconcurrency:\n group: mcpx-test-${{ github.event.pull_request.number || github.run_id }}\n cancel-in-progress: ${{ github.event_name == 'pull_request' }}\n```\n\nPR runs share a group per PR and cancel the superseded one. Non-PR runs get a unique group (`run_id`), so a main run is **never** cancelled or queued behind another main run -- every main commit keeps a result (keying main on `github.sha` would make a `workflow_dispatch` of the same SHA queue behind the push run). `format.yaml` must ignore `cancelled` conclusions (#142).\n\n### 6. What happens to `mcpx.yml`\n\n- **A -- keep `mcpx.yml` unchanged and add the new workflow.** Unit tests would then run three times per PR (new unit job, old `go test`, and `checkPhase`), and the old serial job would stay the longest job.\n- **B -- keep `mcpx.yml` as the Nix + vendorHash workflow only**, deleting its `go test` step. Minimal diff; Renovate keeps working. But it is a second workflow with its own path filters, so it inherits the stuck-required-check problem and cannot report to the one `ci-ok`. A variant from #165: move `nix build` into the test workflow as a matrix cell and shrink `mcpx.yml` to the repair alone (renamed, e.g. `vendor-hash.yml`, bot branches only, the only workflow holding `contents: write` and `fetch-depth: 0`). Same permission outcome as C, at the cost of a second workflow whose result `ci-ok` cannot see.\n- **C -- fold it in as the `nix` job of `mcpx-test` (recommended).** Same steps minus `go test`; `permissions: contents: write` at **job** level on this job only (every other job `contents: read`, `persist-credentials: false`). It runs in parallel with the test legs, so its ~60 s is off the critical path until the e2e shards get shorter than it -- which #143 predicts will happen at 3 shards. Shape it as a reusable job so #49's every-package build can share it rather than fork it.\n\nKeep the repair step's semantics exactly (bot branches only; a human's dependency change fails). The header comment (`mcpx.yml:3-11`) records why the build and the repair are load-bearing -- without them a Renovate Go bump \"merged silently and was only found by the next person to rebuild\" -- so neither may be lost in the move. The approval-required behaviour above is a reason for #49 to move the push-back to a GitHub App token; not in scope here.\n\n**The duplicate unit run in `checkPhase` (from #168).** `package.nix:72-82` runs `doCheck` with a hand-written list of 18 packages inside `nix build`: 16.55 s on run 36673523537, 18.5 s on run 36693030957 at 05c78b2, all of it re-running tests `go test ./...` passed a minute earlier in the same job. Do not delete it (`doCheck = false`): the Nix sandbox is a genuinely different environment -- no network, no `$HOME`, state and cache forced under `$TMPDIR` (`package.nix:75`) -- and no network is exactly the property that would have caught #65 before CI did. Instead stop paying for it *in series*: once `nix` is its own job running beside the e2e shards (C above), its tests cost no wall clock, and the CI `unit` job can either drop the overlapping packages or keep ~15 s of redundancy on a job that is not the critical path. Separately, the list has drifted: `internal/opencode` has no test files, and 12 packages with tests are never run in the sandbox (`api`, `artifacts`, `cli`, `diagnose`, `elicit`, `events`, `execsvc`, `mcpauth`, `mcpclient`, `recipes`, `runner`, `tasks`; still true at 05c78b2). Replace the list with `go list ./...` minus `internal/e2e` (and anything that needs a runtime), or guard it with a test that every package with tests is listed. Coordinate the edit with #178, which also changes `package.nix`.\n\n### 7. Caching everything that is downloaded\n\n| What | Today | Proposed |\n| --- | --- | --- |\n| Go modules + build cache | ~~broken (no `cache-dependency-path`)~~ **fixed in #182** (`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. |\n| 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). |\n| Deno | `cache: false` | `cache: true` (caches `DENO_DIR`); matters once plugin/docs tests import anything. Pin the version (see below). |\n| Bun / Node | no deps to cache | pin versions; nothing else. |\n| 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](https://determinate.systems/blog/magic-nix-cache-free-tier-eol/)). 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. |\n| mcpx / fakemcp / askmcp binaries | built by `testsupport` once per test binary via `go build` in a subprocess (`internal/testsupport/build.go`) | See below. |\n\n**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.\n\n**Shared binaries.** Options, least to most recommended:\n- A -- keep building per test binary (today). With a warm `GOCACHE`, `go build ./cmd/mcpx` in each shard is likely a few seconds; zero new moving parts.\n- B -- `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 #133 designs (`MCPX_TEST_BINARY` or a `-mcpx.binary` test flag, name open there) plus the matching fakemcp/askmcp override #134 asks for.\n- C -- B plus `go test -c ./internal/e2e` in `init`, so shards run `./e2e.test -test.run '\u003cregex>'` and need no Go toolchain at all (drops setup-go, ~11 s, from every shard). The same env override lets #97 run the e2e suite against the **Nix-built** binary and the container binary, which is the real reason to do it. Recommended once #143 shows per-shard Go setup is significant.\n\n### 8. Sparse, shallow checkout\n\nThe 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:\n\n```yaml\n- uses: actions/checkout@v7\n with:\n fetch-depth: 1\n sparse-checkout: pkgs/mcpx # cone mode also materialises root files: flake.nix, flake.lock\n persist-credentials: false\n```\n\nCaveats:\n- **Not for the `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.\n- `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.\n- `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.\n\n### 9. \"Never tears down\"\n\nPost 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:\n- restore-only caches on PRs (decision 7) -- a cache *save* on a miss is the one post step that can take tens of seconds;\n- nothing else at the infra level.\n\n**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-\u003ckey>.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).\n\n### 10. Seed (consume, not design)\n\n`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=\u003cseed>`, test result caching is off for that invocation (`-shuffle` is not in the cacheable flag list, `go help test`).\n\n### 11. `-count=1` and the Go test cache\n\n`go 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.\n\n- `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.\n- The same applies to `internal/pool` (builds fakemcp through `testsupport`) and `internal/config/scope_test.go` (`exec.Command`).\n- Pure unit packages could use a restored `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.\n\n### 12. Reserved: docs-as-tests job\n\n#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).\n\n## Open questions\n\n1. Seed without `init`: will #93's seed be derivable in every leg (removing the init hop), or must it be minted once?\n2. Does a sparse-checkout working tree evaluate `.#packages.x86_64-linux.mcpx`? (Try once; if not, the `nix` job stays full-tree.)\n3. Dev shell vs `setup-*` for toolchains: which is faster per job once a Nix store cache exists? (#143 measures.)\n4. Nix store cache: `cache-nix-action` (free, eats the 10 GB Actions cache that Go also uses) vs FlakeHub Cache OSS account vs Cachix? Shared with #49.\n5. Should `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.\n6. `GITHUB_TOKEN` push-back now yields approval-required runs: acceptable for Renovate, or does #49 move to an App token?\n7. How do #97's environment legs compose with the shards: N shards x M environments (the cell count explodes), or one full shard set on `ubuntu-latest` plus one smoke shard per other environment? #97/#134 decide; this workflow only has to be able to express either (from #165).\n8. An empty matrix from `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 #165).\n9. `workflow_call`, so #142's `format.yaml` and #49's package builds reuse the setup block instead of copying it? It constrains `init`'s outputs (from #165).\n10. Record `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 #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 #168).\n\n## Ease · Impact · Related\n\n**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).\n\nSecurity/auth deferred; see tracker.\n\n## Acceptance criteria\n\n- The CI workflow skeleton (init, matrix, final job; triggers and concurrency as specified) exists, runs in GitHub Actions, and is green.\n- The work described in the Summary/Scope above is delivered via a branch + PR (no direct push to main); verification runs in GitHub Actions CI, not on the sandbox.\n- Evidence (CI links, timings, or probe output as applicable) is recorded on this issue before it is closed.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-28T22:55:35Z","url":"https://github.com/developing-today/code/issues/1985"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9ea24fc2-dd2c-6850-e2f0-9349b80d285f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B53C:7F906:793EAC:9CF849:6B062A36 |
| html-safe-nonce | 41a5e4b7b5599ed02744398db4479db7cc50c7b6b22e3107216685f2e2a3f8be |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTNDOjdGOTA2Ojc5M0VBQzo5Q0Y4NDk6NkIwNjJBMzYiLCJ2aXNpdG9yX2lkIjoiMjU0ODIzNTUxMTkwMzE2OTA3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 335791607d7cf1a0874329e6c8e144ec9c3b9f68849168b11455330f9acf4f2e |
| hovercard-subject-tag | issue:6089016253 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/1985/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7b4c6a69672d6737f039c6eb4fb1c26bc60e5ddccacc34bb7a785f272e263a43/developing-today/code/issues/1985 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7b4c6a69672d6737f039c6eb4fb1c26bc60e5ddccacc34bb7a785f272e263a43/developing-today/code/issues/1985 |
| og:image:alt | Relocated 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 referenc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 494ea0bb1e0feef734a83e2628697647755e8864 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width