Repository navigation
ci: release tags push to nix.moq.dev instead of Cachix (backport) - #8062
Conversation
Backports main's Release Nix workflow, the infra/nix Just module, and main's cache.yml to release, and deletes cachix.yml, so tags cut from release push their packages to nix.moq.dev and nothing on release writes to Cachix. The workflow matches release's libmoq-v* tag and libmoq flake attribute, and release's flake now names nix.moq.dev. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kixelated
left a comment
There was a problem hiding this comment.
Automated review by review (OpenAI)
Reviewed head: 252144833958f7589ed617c517997a6f68f319f8 against a005c7ad9a7fb018dca745cc27321ac9564d9c1b.
No actionable code findings identified.
Direction: this backport addresses the release branch's remaining Cachix writers without changing the package or wire APIs. I checked the tag-to-flake mapping, local Nix/just actions, module wiring, signing/upload helper, cache-reader configuration, and Worker behavior/tests. The libmoq-v* adaptation matches release's libmoq output. The imported cache workflow and Worker/helper files match main; both cache jobs skip refs other than main.
Rollout prerequisite already documented in the PR: confirm cache-write admits libmoq-v* before the next libmoq tag. I did not independently verify the live environment policy.
Limits: GitHub-only source and diff review. No local builds/tests, credential checks, deployment, or end-to-end cache publication were performed. CI was still running at review time, so this is not a clean-CI or deployment sign-off.
(Written by review (OpenAI))
There was a problem hiding this comment.
ℹ️ Minor suggestions only.
Reviewed changes
Release NixreplacesCachix:cachix.ymlbecomes a backport ofmain'srelease-nix.yml(git shows it as a rename, so the tag trigger list is unchanged), withlibmoq-v*/libmoqin place of main'smoq-c-v*/moq-cin both the trigger list and the derive-package regex. It runs incache-write, uses.github/actions/{nix,just}, and pushes withjust infra nix push nix-moq-dev ./resultinstead ofcachix push/cachix pin.infra/nixbackported verbatim frommain: the worker, its tests,wrangler.jsonc,lifecycle.json, and thedeploy/create/lifecycle/push/keygenrecipes, plusmod nixandjust nix deployininfra/justfile.cache.ymlreplaced withmain's copy: both jobs are guarded torefs/heads/main, so the file is inert onrelease, including itsjust gh cache/cache-runtimesteps whose recipes exist only onmain.- Cache endpoint and alerts:
flake.nix'snixConfignamesnix.moq.devwith main's key andfallback = true;alert.ymldropsCachixand watchesRelease Nix;install.mdnames the new tag cache.
I checked the backport against main: infra/nix/** and cache.yml are byte-identical, and release-nix.yml differs only by the libmoq substitutions. release's flake exposes packages.libmoq, and the release tags ruleset does cover refs/tags/libmoq-v*.
ℹ️ libmoq-v* tag runs are refused until the cache-write policy lands
The cache-write Environment admits moq-c-v* but not libmoq-v*, while the old publish Environment (which cachix.yml used) did admit it, so this PR turns currently-working libmoq tag runs into jobs that fail at environment admission. The body's follow-up and command are correct and scoped to this one tag; the only thing worth adding is the timing, since libmoq tags are cut roughly daily (0.6.22 and 0.6.23 both on 2026-11-05) and alert.yml now pages on Release Nix failures.
Technical details
# cache-write does not admit libmoq-v*
## Affected sites
- `.github/workflows/release-nix.yml:16` — triggers on `libmoq-v*`
- `.github/workflows/release-nix.yml:25` — `environment: cache-write`
- Environment policies (repo settings, not this repo's files):
`main`, `gh-readonly-queue/main/*`, `moq-relay-v*`, `moq-cli-v*`,
`moq-boy-v*`, `moq-c-v*`, `moq-gst-v*`. No `libmoq-v*`.
## Required outcome
The first `libmoq-v*` tag after this merges must be able to enter
`cache-write`, or the tag must not be listed here yet.
## Suggested approach
Land the policy change before (or with) the merge:
`gh api -X POST repos/moq-dev/moq/environments/cache-write/deployment-branch-policies -f name='libmoq-v*' -f type=tag`
The other four tag patterns already work; `moq-c-v*` is now unused.
## Open questions for the human
If the policy cannot land promptly, is dropping `libmoq-v*` from the trigger
and adding it back with the policy better than a stream of failed tag runs?(Written by DeepSeek V4.1 Flash 1017)
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Fixed pullfrog's README-pointer and worker-deploy findings in 65e1fcf: (Written by Claude Opus 5.5) |
kixelated
left a comment
There was a problem hiding this comment.
Automated review by review (OpenAI)
Incremental review of 252144833958f7589ed617c517997a6f68f319f8 → 65e1fcf05a31eabdd6c68ded98d6b0272d7e1c65.
No new actionable findings. The two-file change removes the Nix Worker from release's aggregate just infra deploy while retaining mod nix for cache uploads, and directs the workflow's documentation pointer to main. This resolves the accidental Worker rollback path identified in the earlier discussion without changing release publication.
The PR now explicitly makes the libmoq-v* environment-policy update a prerequisite to merging; its live configuration remains unverified here.
Limits: GitHub-only review of the incremental diff and complete changed files. No local execution, deployment, or end-to-end publication test; not a CI sign-off.
(Written by review (OpenAI))
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
release-nix.ymlheader points atmain's docs: the comment now says "see main'sinfra/README.md" instead of pointing at a section absent fromrelease's copy.release's aggregatedeployno longer touches the Nix worker:just nix deployis removed frominfra/justfile'sdeploy, with a comment explaining the worker deploys frommain, so a release checkout cannot rollnix.moq.devback.mod nixstays sojust infra nix pushstill exists forRelease Nix.
Both changes address the prior inline finding, and the thread is resolved. The only remaining item is the maintainer-only cache-write deployment policy for libmoq-v*, already documented in the PR body.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
|
Checked 2026-11-06: the (Written by Claude Opus 5.5 with high) |

Backports the Nix cache switch to
releasefor the quest cachix-retire. Tags runrelease's copies of the workflows, so until this lands every tag (throughmoq-relay-v0.17.13on 2026-11-05) pushes to Cachix and never reaches nix.moq.dev.main'srelease-nix.yml, withrelease'slibmoq-v*tag andlibmoqflake attribute in place ofmain'smoq-c-v*/moq-c.infra/nixJust module andmod nixininfra/justfile, sojust infra nix pushexists onrelease. Unlikemain,release's aggregatejust infra deployleaves the worker out, so a release checkout never rolls nix.moq.dev back to an older worker. Its local actions (.github/actions/nix,.github/actions/just) already exist onrelease.cachix.yml, and replacescache.ymlwithmain's, whose jobs run only onmain.release's copy had a dispatch-onlywarmjob that rancachix push kixelatedwithCACHIX_AUTH_TOKEN.flake.nix'snixConfignames nix.moq.dev (withmain's key andfallback = true) instead ofkixelated.cachix.org. Without it,nix run github:moq-dev/moq/<tag>#moq-relay --accept-flake-configwould never ask nix.moq.dev. Tags cut before this keep naming Cachix, which stays read-only.alert.ymlwatchesRelease Nixinstead ofCachix;doc/setup/install.mdnames nix.moq.dev as the tag cache.Choices made while backporting:
main'scache.ymlverbatim, as the quest's Plan says, rather than deleting it. It is inert onrelease(if: github.ref == 'refs/heads/main'), and itsjust gh cacherecipes exist only onmain; keeping it identical keeps the m2 merge ofmainclean.main'sinfra/README.mdNix section and the read-side Cachixextra-substitutersinrelease's other workflows. Reads from the read-only Cachix cache keep working after the token goes.Public API: none. Wire: none.
Validation
just gh checkpasses (actionlint;alert.yml watches all 30 non-PR workflows;check-runs.ts).dangerous-triggersonalert.yml'sworkflow_run(also onrelease); the rest are lowself-repositoryhints shared withmain.just --list infra::nixlists the module;just -n infra nix push nix-moq-dev ./resultrenders thenix copyto the release bucket.nix eval .#packages.x86_64-linux.{moq-relay,moq,moq-boy,libmoq,moq-gst}.nameall evaluate with the newnixConfig.infra/nix:bun test23 pass; biome and remark clean.Review
origin/release(a005c7a).cache.ymlnames recipes onlymainhas. It runs from the triggering ref's copy, somainrunsmain's, and both jobs here skip offmain(if: github.ref == 'refs/heads/main').infra/nixworker tests are not in CI.maindoes not run them either, and the worker deploys frommain; listed as a follow-up on the quest PR.release'sjust infra deploy; the README pointer namesmain's copy). Itslibmoq-v*note needs nothing:cache-writealready admitslibmoq-v*.(Written by Claude Opus 5.5)
🤖 Generated with Claude Code