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 testing: CI workflow skeleton -- init, matrix, final job; triggers, concurrency, caching, checkout · Issue #1985 · developing-today/code

mcpx testing: CI workflow skeleton -- init, matrix, final job; triggers, concurrency, caching, checkout #1985

New issue
Copy link
New issue
Copy link
Done
Done
mcpx testing: CI workflow skeleton -- init, matrix, final job; triggers, concurrency, caching, checkout#1985
Copy link
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
mcpx platform program

Description

@dezren39
dezren39
opened on Oct 28, 2026
Issue body actions

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/nix numbering).

Parent: #95

Summary

Replace 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.

Original notes

  • testing
    • 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.
    • make a comprehensive github action ci.yaml workflow (or test.yaml) that is as fast as possible,

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):

  • testing
    • make a comprehensive github action ci.yaml workflow (or test.yaml) that is as fast as possible,
      • 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.
  • testing
    • make a comprehensive github action ci.yaml workflow (or test.yaml) that is as fast as possible,
      • automatically runs for every commit to main and on commit/open/undraft to a non-draft pr

Current state

Measured 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 pushes with GITHUB_TOKEN, then nix build .#packages.x86_64-linux.mcpx.

Step timings, run 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):

Step Time Note
queue (job created_at -> started_at) 2 s 2-3 s in 9 of the last 10 runs; 37 s in run 36663358199
Set up job (download 6 actions) 3.4 s
checkout, fetch-depth: 0 2.4 s repo is small: 930 tracked files, 4.4 MiB pack
nix-installer 8.3 s installer tarball is a cache hit; "FlakeHub is disabled because the workflow is misconfigured" (no id-token: write)
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…).
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.
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
vendorHash repair 0 s skipped (not a bot branch)
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)
post steps 2.0 s nix-installer 1.2 s, checkout 0.2 s, setup-go 0.1 s, the rest ~0
"Complete job" -> job completed ~3 s the runner's "Cleaning up orphan processes"

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), 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.

Trigger gaps today:

  • pull_request has no types:, so it runs on the defaults opened, synchronize, reopened (events docs): drafts run, and undrafting does not trigger a run.
  • 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.
  • No concurrency: group, so a force-pushed PR runs every superseded commit to completion.
  • 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).
  • The vendorHash push-back uses GITHUB_TOKEN. Per the trigger docs, 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. build(deps): bump build/buck/preludes/buck2-prelude from d956689 to 3cfc766 #49 notes the repair has never run on a real Renovate PR.

Decisions

1. File and workflow name

  • A -- ci.yaml. In a repo that hosts ~15 packages (build(deps): bump build/buck/preludes/buck2-prelude from d956689 to 3cfc766 #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.
  • B -- test.yaml as in the notes. Same scoping problem, and .yaml breaks the .yml convention both existing workflows (mcpx.yml, opencode.yml) use.
  • 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 (⚡ Bolt: Optimize search match counting performance #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.

2. Job graph

init ──┬─> unit                         (all packages except internal/e2e)
       ├─> e2e (shard 1..N)             (matrix from init output; #139)
       ├─> fmt / lint-go / lint-other   (#141)
       ├─> plugin                       (bun test; #141)
       ├─> nix                          (nix build + vendorHash repair on bot branches)
       ├─> docs-examples                (reserved slot, see below)
       └─> env legs                     (#97: macOS, nix-built binary, container, ...)
all ───> ci-ok                          (if: always(); required check + budget report, #140)

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.

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 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.

3. Triggers

on:
  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
  • "Undraft" is the ready_for_review type; it must be listed explicitly because it is not a default.
  • Do not add converted_to_draft: it would run the suite on the one transition that means "stop looking at this" (from Phase 2: create of an existing group is first-arrival-wins, not fold-based #165).
  • Put the draft if: on init only: every other job needs: init, so a skipped init skips the run.
  • 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.
  • "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.

4. Path filters vs always-run

  • 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 Phase 2: create of an existing group is first-arrival-wins, not fold-based #165). Also the current push filter is already inconsistent with the PR filter (see above).
  • 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) on irrelevant work and slows unrelated PRs.
  • 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.

5. Concurrency

concurrency:
  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 (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).

6. What happens to mcpx.yml

  • 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.
  • 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 Phase 2: create of an existing group is first-arrival-wins, not fold-based #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.
  • 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 🎨 Palette: Search panel accessibility improvements #143 predicts will happen at 3 shards. Shape it as a reusable job so build(deps): bump build/buck/preludes/buck2-prelude from d956689 to 3cfc766 #49's every-package build can share it rather than fork it.

Keep 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.

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.

7. Caching everything that is downloaded

What Today Proposed
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.
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:

  • 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.
  • 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 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.
  • C -- B plus 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.

8. Sparse, shallow checkout

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:

  • 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.
  • 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.

9. "Never tears down"

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:

  • restore-only caches on PRs (decision 7) -- a cache save on a miss is the one post step that can take tens of seconds;
  • nothing else at the infra level.

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).

10. Seed (consume, not design)

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).

11. -count=1 and the Go test cache

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.

  • 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.
  • The same applies to internal/pool (builds fakemcp through testsupport) and internal/config/scope_test.go (exec.Command).
  • 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.

12. Reserved: docs-as-tests 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).

Open questions

  1. Seed without 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?
  2. Does a sparse-checkout working tree evaluate .#packages.x86_64-linux.mcpx? (Try once; if not, the nix job stays full-tree.)
  3. Dev shell vs setup-* for toolchains: which is faster per job once a Nix store cache exists? (🎨 Palette: Search panel accessibility improvements #143 measures.)
  4. 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 build(deps): bump build/buck/preludes/buck2-prelude from d956689 to 3cfc766 #49.
  5. 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.
  6. 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?
  7. How do Bump golang.org/x/crypto from 0.14.0 to 0.17.0 in /sources/chat #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? 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).
  8. 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 Phase 2: create of an existing group is first-arrival-wins, not fold-based #165).
  9. 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).
  10. 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 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 · Impact · Related

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.

Acceptance criteria

  • The CI workflow skeleton (init, matrix, final job; triggers and concurrency as specified) exists, runs in GitHub Actions, and is green.
  • 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.
  • Evidence (CI links, timings, or probe output as applicable) is recorded on this issue before it is closed.

Activity

Next
  1. developing-today commented on Oct 28, 2026

    @developing-today
    developing-todayBot
    on Oct 28, 2026 – with developing.today
    Contributor
    More actions

    CODE-910

  2. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    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.

    • Tracker: Bump golang.org/x/crypto from 0.16.0 to 0.17.0 in /sources/launcher #95 (fast sharded CI)
    • Siblings under that tracker: Update dependency hyperscript.org to v0.9.93 #139 Update dependency vitest to v5 [SECURITY] #140 Bump dezren39/nix flake input to 3499ed3 — opencode now defaults to v2 #141 ⚡ Bolt: Optimize search match counting performance #142 🎨 Palette: Search panel accessibility improvements #143
    • Root: Phase 3: sync, blob gate, and relays #181
    • Proposed order: phase 1 -- make the suite runnable before making it bigger; chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to e7457f6 #52 blocks sharding

    @dezren39 · 2026-09-30T12:03:12Z

    Issues pass (2026-09-30, at 05c78b2).

    • Partly done: Phase 5: tag event bodies must travel with the event #182 landed this issue's cache one-liner (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.
    • Added the post-Phase 5: tag event bodies must travel with the event #182 timing (run 36693030957): 4m09s wall, 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.
    • Decision 9: chore(deps): bump build/buck/preludes/buck2-prelude from 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.
    • Carried from closed duplicates: from Phase 2: production ingest enforces only p2panda-auth membership #168, the 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.
    • Related: chore(deps): bump build/buck/preludes/buck2-prelude from 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).
  3. dezren39
    added
    enhancementNew feature or request
    queue/queuedHas a queued queue task
    status/needs-triageNot yet triaged; needs a first look
    kind/testTest coverage, test infrastructure, or test-only fixes
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 28, 2026
  4. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    Intake review

    • Related: part of the mcpx testing relocation batch (parent/epic references in the body; re-home tracked at mcpx: re-home the open mcpx backlog from dezren39/nix, with this repo as the single source #309). Queued triage task is live in repo-health-code-pilot — this issue is not ownerless.
    • Live check: filed 2026-10-28 ~22:5xZ as a relocation; no open or merged PR implements it yet (checked against the open-PR list this run), and no duplicate open issue covers it.
    • Notes: body is well-scoped with evidence from the original filing; the acceptance criteria appended this pass are drawn from its own Summary/Scope.
    • Risks: historical issue references inside the body use dezren39/nix numbering — a worker must not chase those numbers in this repo. CI-first verification applies (GitHub Actions, never sandbox builds).
    • Suggested approach: triage task confirms the current-state claims on current main, then routes a scoped follow-up packet per the body's scope.

    🤖 Agent note · state: filed

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: repo-fleet-monitor run 2026-10-28 18:19 CDT
    • Found via: monitor reconciliation (intake enrichment, protocol §5)
    • Task: Intake enrichment — acceptance criteria appended, labels normalized (kind/test, priority/normal, effort/m, app/mcpx), meta/enriched applied.
    • Expectation: effort/m class per the appended acceptance criteria.
  5. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  6. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked-up

    • Agent: repo-worker-code (openchamber scheduled lane)
    • Session / ID: queue task 2889 · queue repo-health-code-pilot
    • Found via: triage task for the 2026-10-28 placement-audit relocation (nix#135 → code#1985, re-home mcpx: re-home the open mcpx backlog from dezren39/nix, with this repo as the single source #309)
    • Task: code-side triage — dedupe against existing code issues, scope confirmation against current pkgs/mcpx and .github/workflows, implementation follow-up packet
    • Expectation: triage verdict posted here and one implementation task enqueued; no code change in this task
    • Links: mcpx: re-home the open mcpx backlog from dezren39/nix, with this repo as the single source #309
  7. dezren39
    added
    work/assignedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    on Oct 29, 2026
  8. 74 remaining items

  9. dezren39
    removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 12, 2026
  10. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 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.

  11. dezren39
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 17, 2026
  12. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 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 → matrix → final: 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.
    • Concurrency: workflow-level group with cancel-in-progress: true — superseded runs are cancelled as specified.
    • Caching: setup-go runs with cache: true (go.sum-keyed) on the unit, lint, and e2e legs.
    • Checkout: 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.
    • Triggers — delta is owner-ruled, not a gap: the skeleton asked for push-to-main + non-draft PR triggers; PR ci(mcpx): restore PR and main triggers (#7794) #8149 restored them on 2026-11-10 (task 12997, already_done), and Drew's 2026-11-16 repo-wide ruling (.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.

  13. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    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

  14. dezren39
    removed their assignment
    on Nov 20, 2026
  15. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    🤖 Agent note · second-pass re-verification (task 21781, lane oc-code-05, 2026-11-24)

    • Fresh state: mcpx testing: CI workflow skeleton -- init, matrix, final job; triggers, concurrency, caching, checkout #1985 OPEN, no hold labels. Skeleton verified intact on origin/main 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.
    • Firing: scheduled main run 2026-11-23T19:18Z concluded success; recent failure/cancelled runs are workflow_dispatch/branch runs (incl. fix/21424-mcpx-ci) — run content, not skeleton, per the standing verdict.
    • Verdict: triaged; design scope landed, live, and firing; deviations remain owner-ruled (triggers) or immaterial (no sparse checkout). No follow-on packet from this pass.
  16. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026 – with Claude
    MemberAuthor
    More actions

    Closing as completed. The skeleton this issue designs is built and running on main, and everything that plugged into it has closed.

    • Built: .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.
    • Implementation and siblings, all closed as completed: mcpx testing: first CI iteration -- unit + e2e shards + lint + nix build, and a recorded baseline #1998 (first iteration), mcpx testing: shard the suite by measured time, and a rule for when to stop splitting #1994 (sharding), mcpx testing: a CI time budget in the final job, and the over-budget runbook #1995 (time budget), mcpx testing: every formatter and linter in the CI matrix, pinned by the flake (and run the plugin's bun test) #1996 (formatters and linters), mcpx testing: format.yaml -- auto-format after a green run; PR head vs main #1997 (format.yaml).
    • Triggers: the one place it differs from this body. It runs nightly (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.
    • Still open: mcpx: the backlog build-out — every theme, in one order, with the disagreements between them (super tracker) #1900, the mcpx build-out tracker, carries anything beyond this skeleton.

    Generated by Claude Code

  17. dezren39
    closed this as completedon Nov 25, 2026
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/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

    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.