Skip to content

Release tags push to nix.moq.dev, and Cachix stops taking writes - #8048

Merged
kixelated merged 11 commits into
mainfrom
quest/m0/ci/cachix-retire
Nov 25, 2026
Merged

kixelated merged 11 commits into
mainfrom
quest/m0/ci/cachix-retire

Conversation

@kixelated

@kixelated kixelated commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Finishes cachix-retire: release tags push to nix.moq.dev, Cachix takes no writes, and both nix.moq.dev buckets hold under the CI bucket's 14-day expiry. Deletes the quest, points read-only-secrets's two links to it at this PR, and adds the follow-up nix-nar-stream.

Bucket sizes (2026-11-24)

Read from the Cloudflare dashboard (R2 bucket Metrics and Settings, read-only) in the agent Chrome, as the maintainer approved:

Bucket Now (24h avg) Baseline 2026-11-07 30-day trend
nix-ci-moq-dev 73.3 GB 29.3 GB ~15 GB on Oct 25, rising to ~74 GB by Nov 19, flat at 73-75 GB since
nix-moq-dev 1.81 GB 151 MB empty until the first backported tag around Nov 5, then a step per tag batch; no expiry, by design

The live lifecycle rule on nix-ci-moq-dev reads "expire: Delete objects after 14 day(s)", matching infra/nix/lifecycle.json (maxAge 1209600). The expiry dropped from 30 to 14 days on 2026-11-13 (moq-dev/moq#8632), and the bucket has been flat for the five days since its 14-day window filled, so it holds. At R2's list price that is about $1.10/month.

Nightly source-build fallbacks

The Waiting item asked to look for Nightly jobs that built uniffi-bindgen from source after paths expired. I downloaded each run's full log archive for all 11 Nightly runs on main from 2026-11-13 to 11-23 (the 11-14 and 11-20 archives extracted only partly, 287 and 351 job logs) and grepped every job for building '/nix/store/...uniffi-bindgen.

  • 3 jobs built it, one each on 11-16, 11-17 and 11-19, all on ubuntu-24.04-arm.
  • In each case the cause was not expiry. The job's download of a large NAR (llvm-tools-preview or cargo for aarch64) broke mid-stream (HTTP error 200 (curl error: Failure when receiving data from the peer)). Nix then logged disabling binary cache 'https://nix.moq.dev' for 60 seconds, and fallback = true built everything that job needed in that window. About 90 other jobs in the same runs substituted the same uniffi-bindgen-go path (sdlgdhhi...) from nix.moq.dev.
  • Counting every job that logged that line: 14 jobs in 5 of the 11 runs had nix.moq.dev disabled mid-job, most without needing uniffi-bindgen in the window.
  • So no scheduled refresh or closure-aware collector (niks3) is needed: sh/gh/cache.sh already refreshes each main commit's closure. The stream failures move to the follow-up below.

Earlier on this PR

  • Backport to release: moq-dev/moq#8062 (merged 2026-11-06) added release-nix.yml, the infra/nix Just module and main's cache.yml, deleted cachix.yml, and pointed release's flake.nix nixConfig at nix.moq.dev. Without that last change, a tag's nix run ... --accept-flake-config never queries nix.moq.dev; the Plan did not list it.
  • First tags after it, moq-relay-v0.17.14 and moq-cli-v0.14.14: Release Nix runs 42321547211 and 42321696950 pushed from all three legs. In a fresh nixos/nix container, nix run github:moq-dev/moq/<tag>#moq-relay / #moq built nothing and fetched the pushed paths from nix.moq.dev.
  • CACHIX_AUTH_TOKEN was deleted 2026-11-07 (maintainer, /quest-unblock). gh secret list still shows it gone today. The kixelated Cachix cache stays readable for older tags' flakes, as decided 2026-11-05.
  • Docs name no Cachix cache outside quest/. release's workflows still list kixelated.cachix.org as a read-only substituter; the m2 cut's merge of main removes it.

Decided 2026-11-24 (scheduled task, maintainer-approved): bucket sizes read from the Cloudflare dashboard in the agent Chrome instead of wrangler r2 bucket info, since the dashboard shows the 30-day trend that "holds" needs.

Validation

  • The dashboard readings and live lifecycle rule above, plus the R2 30-day storage charts for both buckets.
  • Log greps over 11 Nightly runs (~290-400 job logs each) as described.
  • quest check with the repository-pinned quest (nix run --inputs-from . quest -- check): 510 documents ok.
  • No code changes, so there is nothing else to exercise.
  • 2026-11-25: a trial merge of current main (with quest: plan moving the Rust and Nix caches to Backblaze B2 #9514's B2 plan) is clean and quest check passes on it (540 documents); this round also drops CACHIX_AUTH_TOKEN from read-only-secrets' list of remaining secrets.

Public API: none. Wire: none.

Follow-ups

  • nix-nar-stream [S]: a NAR download that breaks mid-stream from nix.moq.dev disables the cache for 60 s and forces source builds. The fix first finds the hop that drops the stream (worker or R2 500s), then resumes or bypasses at that hop. It also wires the worker's unrun bun test into just ci and drops its error-message matching when it touches that path. No open decisions. Kept 2026-11-24 (maintainer).

Models

Size: S
Implementer: Claude Code, claude-opus-5-5, unknown effort
Implementer: Claude Code, claude-opus-5-5, low effort (iterate, S)

(Written by Claude Opus 5.5)

🤖 Generated with Claude Code

Review

Rewritten by quest review after each round.

  • Head: f3838c5
  • Base: origin/main at a6f212c
  • Risk: low, Nothing a consumer or deployed peer relies on can break: the diff only deletes one quest plan (cachix-retire.md), adds another (nix-nar-stream.md), and edits links and status wording in read-only-secrets.md, all under quest/, which RISK.md lists as low; a revert fully undoes it, and no workflow, packaging, API, or release file changes.
  • Classified: low by Claude Code, claude-haiku-5-5, low effort, session 638c6538-22fb-48f9-88ca-74b5bf4f4f37
  • Local review: none, since the head is low risk

kixelated and others added 3 commits November 6, 2026 11:54
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…its libmoq-v*

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and bucket sizes remain

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… login

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eleted

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kixelated and others added 2 commits November 24, 2026 10:27
Both nix.moq.dev buckets hold under the 14-day expiry: nix-ci-moq-dev
flattened at 73.3 GB from 2026-11-19, nix-moq-dev is 1.81 GB. Nightly's
source builds came from mid-stream NAR download failures, not expiry, so
they move to the nix-nar-stream follow-up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated
kixelated marked this pull request as ready for review November 24, 2026 18:31
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The CI quest documentation was updated. It adds notes about NAR download failures and possible investigation steps. It removes the Cachix retirement plan and checklist, and records the deletion date for CACHIX_AUTH_TOKEN.

Merge Risk: Minimal · up to a5a2e

This pull request updates internal CI planning documents and has no runtime or API impact. No merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title states the two main changes: release tags now push to nix.moq.dev, and Cachix stops accepting writes. Both match the changeset, which finishes the cachix-retire quest by pointing release tag…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description is specific and related to the changeset. It explains the removal of the cachix-retire quest, the link updates in read-only-secrets, and the addition of the nix-nar-stream follow-up. I…
Full details: Title check

Explanation

The title states the two main changes: release tags now push to nix.moq.dev, and Cachix stops accepting writes. Both match the changeset, which finishes the cachix-retire quest by pointing release tags at nix.moq.dev and retiring Cachix writes. The title is specific and omits only the quest-record cleanup and the follow-up quest, which is acceptable.

Full details: Description check

Explanation

The description is specific and related to the changeset. It explains the removal of the cachix-retire quest, the link updates in read-only-secrets, and the addition of the nix-nar-stream follow-up. It also gives bucket size data, Nightly run findings, and validation steps. It is not off-topic or vague.

Finishing Touches

Simplify code

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6aebc524-506a-4249-be84-c3801fcd7fe5
Commits

Reviewing files that changed from the base of the PR and between 5d86f05 and a5a2e03.

Files selected for processing: 3

  • quest/m0/ci/cachix-retire.md
  • quest/m0/ci/nix-nar-stream.md
  • quest/m0/ci/read-only-secrets.md
Files with no reviewable changes: 1

  • quest/m0/ci/cachix-retire.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.

kixelated added a commit that referenced this pull request Nov 25, 2026
…x-nar-stream

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated
kixelated added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 29038f8 Nov 25, 2026
10 checks passed
@kixelated
kixelated deleted the quest/m0/ci/cachix-retire branch November 25, 2026 09:18
kixelated added a commit that referenced this pull request Nov 25, 2026
mbx-failed-puts was already deleted and #8763 closed by #9558; link
nix-nar-stream directly and accept pre-switch cache.yml push failures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant