Skip to content

ci: release tags push to nix.moq.dev's B2 bucket (backport) - #9628

Merged
kixelated merged 2 commits into
releasefrom
backport/nix-b2
Nov 25, 2026
Merged

kixelated merged 2 commits into
releasefrom
backport/nix-b2

Conversation

@kixelated

@kixelated kixelated commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

nix.moq.dev moves from R2 to private Backblaze B2 buckets (moq-dev/moq#9625, quest quest/m0/ci/nix-b2.md). A tag runs release's copy of release-nix.yml and infra/nix/justfile, so until this lands every release tag keeps pushing to R2's nix-moq-dev, which that PR deletes.

Approach

  • release-nix.yml reads the release bucket's write key from NIX_B2_RELEASE_ACCESS_KEY_ID / NIX_B2_RELEASE_SECRET_ACCESS_KEY in cache-write instead of NIX_R2_*. Its comment says the bucket never expires a path, since B2 now drops superseded versions there.
  • just infra nix push targets B2's S3 endpoint (s3.us-east-005.backblazeb2.com, region us-east-005) instead of R2's.

Only the writer moves. release's Worker source, create, and lifecycle recipes stay R2's: the Worker deploys from main, and the next cut brings main's copies.

Impact

Public API: none. Wire: none.

Alternatives

  • The Worker also reading R2 until the next cut merges main into release: rejected by the maintainer in the quest's Plan.

Validation

  • The NIX_B2_RELEASE_* secrets exist in cache-write and hold the nix-release-write key, restricted to B2 nix-moq-dev.
  • just -n infra nix push nix-moq-dev ./result renders nix copy --to "s3://nix-moq-dev?endpoint=s3.us-east-005.backblazeb2.com&region=us-east-005&..."; the same recipe shape on main pushed a signed test path to B2 with nixpkgs' Nix 2.35.6 (the official installer's build, like CI's, has AWS support; a NixOS build without it sends unsigned requests).
  • actionlint on release-nix.yml: clean.

Models

  • Size: S
  • Implementer: Claude Code, claude-opus-5-5, unknown

(Written by Claude Opus 5.5)

🤖 Generated with Claude Code

Review

Rewritten by quest review after each round.

  • Head: 5811bf3

  • Base: origin/release at 7fec1da

  • Risk: medium, the base has no RISK.md to name what is always high or customer-facing, so every change is medium

  • Classified: medium by default

  • Reviewer: Codex, gpt-6.2-sol, medium effort

  • Session: 01a2147b-7016-77b0-bc9d-c49c6594d99a, round 1

  • Score: 9/10, The release-tag workflow’s new secret names and B2 endpoint match the planned cutover, with live upload and secret substitution still unverified.

  • Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0

  • Findings: none

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 25, 2026 20:54
@kixelated
kixelated merged commit cdcc9f2 into release Nov 25, 2026
76 of 80 checks passed
@kixelated
kixelated deleted the backport/nix-b2 branch November 25, 2026 21:05
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