7.5 KiB
Releases: the source, the notes and the Aula page on the Gitea release
Ianitor is server-only. What runs is built by Nix on the server and switched in by the deploy pipeline
(.fabrica/artifex/deploy.yaml, fabrica-deploy@ianitor).
A release adds what a deploy does not leave behind: a Gitea release for the vX.Y.Z tag with these files, all under
a SHA256SUMS signed by domi-release:
- the source archive of the tag;
- the release notes;
- the screenshots of the web UI;
- the Aula landing page.
The release ships no binary, and the deploy stays the deploy. docs/fabrica.md says how the six Fabrica items (Aula, updates, Canalis, showcase, tests) fit Ianitor.
The release kit is Fabrica's (Fabrica docs/12_release_kit.md, docs/19_web_shots.md; core docs/FORMATS.md,
"Fabrica: release notes" and "Fabrica: the Aula page"). The screenshots are file: shots, PNGs taken by the web UI's
own Playwright suite. fabrica aula shots checks them and writes aula.json.
The pipeline: .fabrica/artifex/release.yaml
on: tag "v*" and manual: true, on the Windows runner. That is the Fabrica app on Mark's PC: fabrica, node and
pnpm are on every step's PATH.
| Step | Does | Produces |
|---|---|---|
version |
node scripts/check-version.mjs <version>: the tag's version must be the workspace Cargo.toml's and both package.jsons' |
|
install |
pnpm install --frozen-lockfile |
|
check, test |
svelte-check and vitest (the click smoke test and the demo data test) |
|
e2e |
pnpm --filter web test:e2e: the main flows in Edge on the built UI and the demo control plane, each recorded (docs/fabrica.md part 5) |
target/e2e/videos/*.webm (not published yet) |
pictures |
pnpm --filter web aula:shots: the five screens from the same suite |
target/e2e/aula/<name>.png |
source |
node scripts/pack-source.mjs <version>: git archive of the tag |
target/release/ianitor-<version>-src.tar.gz |
notes |
fabrica notes: the range since the previous v* tag |
target/notes/release-notes.md, release-notes.json |
shots |
fabrica aula shots: checks the five PNGs (.fabrica/aula.yaml) and copies them |
target/aula/aula-<name>.png, aula.json |
page |
fabrica aula page: the brief (.fabrica/aula/brief.md), the shots and the notes |
target/aula/aula-page.json |
approve |
the run's Custos approval, before anything is published | |
publish |
the Gitea release of the tag with the files above. sums: domi-release adds SHA256SUMS and SHA256SUMS.minisig. release-notes.md becomes the release's text. |
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.
The download. Aula offers a project's release only when it has a file to download, and kit files (the shots,
the notes, the page) never count. Ianitor's download is its source archive. The archive is every tracked file at the
tag, under ianitor-<version>/. git archive of one tree gives the same bytes every time.
app.yaml has aula: true and one server part. There is no desktop part: a desktop part's Deploy bumps the
version and pushes a tag for an installer release, and Ianitor has no installer. The release is started by its tag.
Release notes
fabrica notes writes them from:
- the first-parent commit subjects;
- the Pensum tickets done;
.fabrica/notes/<version>.md, the highlights a person writes.
The highlights go first.
Screenshots
apps/web/e2e/specs/aula.spec.ts, project aula of apps/web/playwright.config.ts (docs/fabrica.md part 5). For
each shot of apps/web/tests/demo.ts SHOTS, it:
- loads the page at 1440 × 900, scale 1, at the suite's fixed instant;
- clicks the shot's selectors;
- waits for its selector, for no
aria-busyelement, for the fonts, two frames and 400 ms; - saves
target/e2e/aula/<name>.png.
The suite's global setup builds the UI and serves it on 127.0.0.1 with /api/v1 answered by the demo control plane.
| Name | Page | Shows |
|---|---|---|
hosts |
/ |
the host list: health, chips, where each sends traffic, the last change |
host |
/hosts/wiki.home.test/edit |
editing a host: upstreams, certificate, sign-in, health check |
engine |
/, then the engine chip |
Pingora serving and the Caddy fallback ready, with its differences |
history |
/history/<change> |
the history with a version picked and what restoring it changes |
certificates |
/certificates |
the Domi intermediate and the device certificates |
The demo control plane (apps/web/tests/demo.ts) answers like control (docs/api.md), built on the click smoke
test's stand-in (apps/web/tests/mockApi.ts: the same host and apply shapes and every call the demo does not
replace). Its data is invented: hostnames under .test, upstream addresses in the documentation ranges
(192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24), people ada and felix, made-up commits, match codes and
fingerprints. A vitest test (apps/web/tests/demo.test.ts) asks every page's calls and fails on any other
hostname or address, and the e2e suite checks every page it visits the same way (realLooking), so a real name
cannot slip in through a later fixture.
Risks
| Risk | Answer |
|---|---|
| A screenshot or video shows Mark's network | The UI talks only to the demo control plane. The demo data test and the e2e suite's realLooking check refuse names outside .test and addresses outside the documentation ranges. The PNGs are looked at in the review. |
| The browser reaches out | It loads only 127.0.0.1, and the UI's own CSP allows no outside requests. Playwright's profile is temporary. |
| A secret reaches the browser | The demo serves no token, key or certificate. |
| A forged screenshot, note or archive | They are release assets under SHA256SUMS, signed by domi-release through Custos. The Gitea text is not signed; the asset is. |
| The source archive is not the tag | It is git archive of the run's HEAD, the tag's commit in the run's clean worktree. Anyone can repeat it and compare the SHA-256. |
| A shot of a half-drawn screen | Each wait selector exists only once the screen's data is there. The page has no aria-busy element, and the fonts and two frames are awaited. |
Gaps
- Tested on Windows with Edge only. The suite is plain Playwright and should work in Chromium on Linux, but that is untested.
- One size (desktop). There is no phone layout shot.
- The release does not run the Rust tests (see above).
- No
[repo] Release:step: the version inCargo.toml,Cargo.lockand thepackage.jsons is changed by hand before tagging. - The flows' videos are not published yet (docs/fabrica.md part 5).
Handover: releasing a version
- On main, set the version in
Cargo.toml,Cargo.lockand bothpackage.jsons.node scripts/check-version.mjs X.Y.Zmust pass. Write.fabrica/notes/X.Y.Z.md. - Tag and push:
git tag vX.Y.Z && git push origin vX.Y.Z. - Start the
releasepipeline atvX.Y.Zfrom Fabrica. No Gitea webhook reaches the hub yet, so use the hub'sPOST /api/runswith refvX.Y.Z. - Approve on the Custos card, then sign
SHA256SUMSon Custos (domi-release). - Check the Gitea release
vX.Y.Z. Its text is the notes. Its files areianitor-X.Y.Z-src.tar.gz,release-notes.md,release-notes.json, fiveaula-*.png,aula.json,aula-page.json,SHA256SUMSandSHA256SUMS.minisig. - Deploy as before: Fabrica's Apps → Ianitor → Deploy, then run deploy/test-access.sh from a LAN machine.