[fabrica] Release pin (QC M1): nix-pin.sh pins a clean commit and records it, its source tree and nixpkgs; release-pin.mjs refuses a pin whose source tree is not the tag's and publishes the pinned commit; docs say what is checked (one rebuild of the outputs) and that none of it has run yet
This commit is contained in:
+7
-4
@@ -22,15 +22,18 @@ 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-<name>.png`, `aula.json` |
|
||||
| `pin` | `node scripts/release-pin.mjs <version> <tag> <commit>`: 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` |
|
||||
| `pin` | `node scripts/release-pin.mjs <version> <tag> <commit>`: the Nix pin committed before the tag (`.fabrica/nix/pin.json`, by `scripts/nix-pin.sh` on Linux); refuses a missing pin, a pin of another version, and one made from other code than the tag's; publishes the pinned commit | `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, `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.
|
||||
NAR hashes instead (`ianitor-nix.json`, under the signed `SHA256SUMS`): anyone rebuilds the pinned commit and
|
||||
compares ([verify.md](verify.md)), and the `verify-nix` pipeline does that on every `v*` tag on the NixOS runner.
|
||||
The `pin` step refuses a pin made from other code than the tag's (its source tree must match), which is the gate:
|
||||
Fabrica pipelines cannot depend on one another, so `publish` cannot wait for `verify-nix`. What "reproducible"
|
||||
covers so far: the output derivations are rebuilt once and compared; their dependencies come from the binary
|
||||
cache. Nothing of it has run yet (no machine with Nix in phase 4); the first pin needs one.
|
||||
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user