From f9ef6e66c35153617f063472833f7bbfcee5baa2 Mon Sep 17 00:00:00 2001 From: mnovak Date: Tue, 10 Nov 2026 21:27:38 +0100 Subject: [PATCH] [docs] Release: the Nix pin step, why the build is pinned and not shipped, and the GitHub mirror steps for later --- docs/release.md | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/docs/release.md b/docs/release.md index e2cb434..04a52c3 100644 --- a/docs/release.md +++ b/docs/release.md @@ -22,8 +22,15 @@ are on every step's PATH). | `check`, `test` | `svelte-check` and the vitest click smoke test of the web UI the shots show | | | `notes` | `fabrica notes` (the range since the previous `v*` tag; the first release covers the whole history) | `target/notes/release-notes.md`, `release-notes.json` | | `shots` | `node apps/web/scripts/shots.mjs` (below) | `target/aula/aula-.png`, `aula.json` | +| `pin` | `node scripts/release-pin.mjs `: the Nix pin committed before the tag (`.fabrica/nix/pin.json`, by `scripts/nix-pin.sh` on Linux) with the tag and commit; refuses a pin of another version | `target/nix/ianitor-nix.json` | | `approve` | the run's Custos approval, before anything is published | | -| `publish` | the Gitea release of the tag: the notes, the shots and `aula.json`; `sums: domi-release` adds `SHA256SUMS` and `SHA256SUMS.minisig`; `release-notes.md` becomes the release's text | | +| `publish` | the Gitea release of the tag: the notes, the shots, `aula.json` and `ianitor-nix.json`; `sums: domi-release` adds `SHA256SUMS` and `SHA256SUMS.minisig`; `release-notes.md` becomes the release's text | | + +**The Nix build is pinned, not shipped.** The Windows runner has no Nix and Fabrica's `SHA256SUMS` covers only the +files of one `publish` step, so the release cannot carry a build made by the NixOS runner. It carries the build's +NAR hashes instead (`ianitor-nix.json`, under the signed `SHA256SUMS`), and the build is reproducible: anyone +rebuilds the tag and compares ([verify.md](verify.md)); the `verify-nix` pipeline does exactly that on every +`v*` tag on the NixOS runner. The Rust tests are not in it: the edge, diff and ACME tests are Linux-only (ROADMAP §8.3) and the release builds nothing. They run in WSL2 and in the Nix build. @@ -96,11 +103,31 @@ hostname or address, so a real name cannot slip in through a later fixture. - Windows and Edge or Chrome only as tested; the script is plain Node and DevTools, so Linux with Chromium should work, untested. - One size (desktop); no phone layout shot. -- The release does not run the Rust tests (see above). +- The release does not run the Rust tests (see above); the `layers` pipeline does, on the NixOS runner. - No `[repo] Release:` bump: the version in `Cargo.toml` and the `package.json`s is changed by hand before tagging. +## GitHub mirror (later) + +Decided by Mark: later. The repository on Gitea stays the source; GitHub gets a read-only push mirror for +discovery (ROADMAP §1.9). When it is time: + +1. On GitHub, create an empty public repository `Ianitor` (no README, licence or .gitignore, so the first push is a + plain mirror), description "Ianitor Domi: a reverse proxy on Pingora with a small Domi CA" and the Gitea URL as + its website. +2. Create a **fine-grained personal access token** limited to that one repository, permission + *Contents: Read and write* (nothing else), with an expiry; keep it in Custos. +3. In Gitea, the repository's *Settings → Repository → Mirror settings → Add push mirror*: URL + `https://github.com//Ianitor.git`, user name the GitHub owner, password the token, *Sync when commits + are pushed* on, an interval (e.g. 8h) as a backstop. *Synchronize now*, then check that branches and `v*` tags + arrived. +4. On GitHub: issues, wiki and projects off (or a pinned note pointing to Gitea), so nothing is filed where nobody + looks; releases stay on Gitea, where the signed `SHA256SUMS` is. +5. When the token expires, Gitea's mirror shows the error; renew it in Custos and in the mirror settings. + ## Handover: releasing 0.1.0 +0. Once phase 4 is merged (the `pin` step exists), before every tag: run `scripts/nix-pin.sh` on Linux at the commit to tag and commit `.fabrica/nix/pin.json` + ([verify.md](verify.md)); the `pin` step refuses a missing or stale pin. 1. On main: `git tag v0.1.0 && git push origin v0.1.0`. 2. Start the `release` pipeline at `v0.1.0` from Fabrica (no Gitea webhook to the hub yet: the hub's `POST /api/runs`, ref `v0.1.0`). Approve on the Custos card, then sign `SHA256SUMS` on Custos (`domi-release`).