[repo] Release: version 1.0.0, its first Nix pin, and the shared runner's layers green #18

Manually merged
mnovak merged 0 commits from release/1.0.0 into main 2026-12-02 21:32:53 +01:00
Owner

Version 1.0.0 (ROADMAP §6 phase 4), with its first Nix pin, and what the shared NixOS runner's first full layers runs turned up.

What changes

  • Version 1.0.0 in Cargo.toml, Cargo.lock (the six workspace crates) and both package.json; .fabrica/notes/1.0.0.md.
  • Settings, About shows the running version (a Vite define from apps/web/package.json) instead of a hard-coded "0.1.0".
  • scripts/nix-pin.sh --check with no pin prints the pin the build would write (pin.json: {…}), so the NixOS runner's log can carry a release's first pin; docs/release.md, Handover 1a, says how.
  • .fabrica/nix/pin.json: ianitor sha256-hlX5oiJQ… (24 455 232 bytes), ianitor-web sha256-cR8Lq5LN… (598 000 bytes), both rebuilt identical on the runner (verify-nix rp6e1grjvjrkc). The later commits touch only tests, flake.nix's CI shell and scripts, which are outside the packages' source: the NAR hashes never changed; the pin's commit and source tree follow the last code commit.
  • From the runner's layers runs (the first on the shared runner):
    • flake.nix's ci shell gains openssl (control's pki tests sign an intermediate as Mark does by hand) and iproute2 (bench.sh's ss).
    • .fabrica/artifex/layers.yaml: RUST_TEST_THREADS=4; control's integration tests each start an edge, a Caddy and upstreams.
    • control's tests: the trial margin 2 s → 15 s (production: 30 s). Control starts its watch after the trial's journal is written, which took over 5 s on the loaded runner, while edge's deadline counts from the trial's load. Two tests wait on a state instead of a fixed sleep.
    • The VM test server has git (vm-apply-reverts reads the routes repository).
    • scripts/bench.sh: ss is in its tool check, and a pid not found no longer ends the run silently under set -e/pipefail (the cause of the empty load failure in rh0g1xwqn5peq).

Checks

  • Local: svelte-check 0 errors (428 files); vitest 23/23; release-pin node test 7/7; check-version.mjs 1.0.0 ok; control's tests in WSL 78/78 (lib 10, api 5, apply 25, engine_switch 16, pki 8, stores 6, ui_auth 8); cargo fmt --check ok.
  • Hub, verify-nix rh5wz4xza5v9x at 4e762f8: both outputs rebuilt identical, matches .fabrica/nix/pin.json. release-pin.mjs 1.0.0 v1.0.0 HEAD: checked.
  • Hub, layers raty64ymvsmbe at 11901c1 (the last commit with code; after it only the notes, the bench CSV and the pin): all nine steps green.
    • workspace tests: 267 passed, 0 failed (control 78, core 108, edge 71, diff 4, fuzz regressions 4, testkit 2).
    • conformance: Ianitor h2spec 145/146 (1 skipped, 0 failed; Caddy 4 failed); testssl A+ for both; Ianitor closes a slow h2 client after 2.5 s, Caddy still had it open after 75 s.
    • fuzz: routes, header_rules, share_token, path_within, pki_pem, 120 s each, no crash.
    • VM tests: apply-reverts, engine-switch, intermediate-renewal, control-loopback, sockets.
    • load: Ianitor ahead of Caddy in every row on this runner, e.g. HTTPS h1 at 256 connections 9 489 vs 8 385 rps (p99 59 vs 114 ms), new TLS connections 2 069 vs 1 607 rps; soak 7 947 vs 7 869 rps, all 100 % success. Committed as bench/results/2026-12-02-fabrica-runner.csv (rebuilt from the run's log; sha256 4811cec6…, the artifact's).
  • The 1.0.0 notes said Caddy was faster on HTTP/1.1 under load and on new TLS connections (true on WSL2, 2026-11-18); they now say both.

Adversarial self-review

  • Does widening the test margin hide a product bug? The margin is the room between control's watch and its confirmation; under load control can start its watch late, and edge then reverts the trial by itself. That fails safe (apply.reverted.edge_lost, the old config serves), and production's margin is 30 s. Anchoring the watch to the trial's load instead would shorten the watch under load and could keep a change with no checks (fail open), so the product code is unchanged. Recorded here as the reason, not fixed.
  • Do the tests still test the deadline? The apply crash tests now poll for edge's own revert for up to 30 s instead of sleeping 8 s; they still fail if the trial never ends. The Caddy guard test sleeps past the new deadline (2 + 15 + 5 = 22 s → 27 s).
  • Does the pin speak for the merged code? It records the source tree of every tracked file but itself. The merge commit has the same tree if main has not moved (main is 3bf4a4f, this branch's base). If main moves first, the release's pin step refuses the tag and the pin is made again.
  • Printing the pin to the runner's log: store paths and hashes, all public. The VM tests' API token in the hub log is minted inside a throwaway VM.
  • Is layers at 11901c1 enough for the merged tree? The later commits change .fabrica/notes, bench/results and the pin: no code, test or build input. verify-nix at the final commit confirms the outputs.
  • Not covered: the release pipeline (e2e on the Windows runner, Mark's card, the signature) runs at the tag after this merge; nothing is deployed by this PR.
Version 1.0.0 (ROADMAP §6 phase 4), with its first Nix pin, and what the shared NixOS runner's first full `layers` runs turned up. ## What changes - Version 1.0.0 in Cargo.toml, Cargo.lock (the six workspace crates) and both package.json; `.fabrica/notes/1.0.0.md`. - Settings, About shows the running version (a Vite `define` from apps/web/package.json) instead of a hard-coded "0.1.0". - `scripts/nix-pin.sh --check` with no pin prints the pin the build would write (`pin.json: {…}`), so the NixOS runner's log can carry a release's first pin; docs/release.md, Handover 1a, says how. - `.fabrica/nix/pin.json`: ianitor `sha256-hlX5oiJQ…` (24 455 232 bytes), ianitor-web `sha256-cR8Lq5LN…` (598 000 bytes), both rebuilt identical on the runner (verify-nix `rp6e1grjvjrkc`). The later commits touch only tests, flake.nix's CI shell and scripts, which are outside the packages' source: the NAR hashes never changed; the pin's commit and source tree follow the last code commit. - From the runner's `layers` runs (the first on the shared runner): - flake.nix's `ci` shell gains `openssl` (control's pki tests sign an intermediate as Mark does by hand) and `iproute2` (bench.sh's `ss`). - `.fabrica/artifex/layers.yaml`: `RUST_TEST_THREADS=4`; control's integration tests each start an edge, a Caddy and upstreams. - control's tests: the trial margin 2 s → 15 s (production: 30 s). Control starts its watch after the trial's journal is written, which took over 5 s on the loaded runner, while edge's deadline counts from the trial's load. Two tests wait on a state instead of a fixed sleep. - The VM test server has `git` (vm-apply-reverts reads the routes repository). - `scripts/bench.sh`: `ss` is in its tool check, and a pid not found no longer ends the run silently under `set -e`/`pipefail` (the cause of the empty `load` failure in `rh0g1xwqn5peq`). ## Checks - Local: svelte-check 0 errors (428 files); vitest 23/23; release-pin node test 7/7; `check-version.mjs 1.0.0` ok; control's tests in WSL 78/78 (lib 10, api 5, apply 25, engine_switch 16, pki 8, stores 6, ui_auth 8); `cargo fmt --check` ok. - Hub, verify-nix `rh5wz4xza5v9x` at 4e762f8: both outputs rebuilt identical, `matches .fabrica/nix/pin.json`. `release-pin.mjs 1.0.0 v1.0.0 HEAD`: checked. - Hub, layers `raty64ymvsmbe` at 11901c1 (the last commit with code; after it only the notes, the bench CSV and the pin): all nine steps green. - workspace tests: 267 passed, 0 failed (control 78, core 108, edge 71, diff 4, fuzz regressions 4, testkit 2). - conformance: Ianitor h2spec 145/146 (1 skipped, 0 failed; Caddy 4 failed); testssl A+ for both; Ianitor closes a slow h2 client after 2.5 s, Caddy still had it open after 75 s. - fuzz: routes, header_rules, share_token, path_within, pki_pem, 120 s each, no crash. - VM tests: apply-reverts, engine-switch, intermediate-renewal, control-loopback, sockets. - load: Ianitor ahead of Caddy in every row on this runner, e.g. HTTPS h1 at 256 connections 9 489 vs 8 385 rps (p99 59 vs 114 ms), new TLS connections 2 069 vs 1 607 rps; soak 7 947 vs 7 869 rps, all 100 % success. Committed as `bench/results/2026-12-02-fabrica-runner.csv` (rebuilt from the run's log; sha256 `4811cec6…`, the artifact's). - The 1.0.0 notes said Caddy was faster on HTTP/1.1 under load and on new TLS connections (true on WSL2, 2026-11-18); they now say both. ## Adversarial self-review - **Does widening the test margin hide a product bug?** The margin is the room between control's watch and its confirmation; under load control can start its watch late, and edge then reverts the trial by itself. That fails safe (`apply.reverted.edge_lost`, the old config serves), and production's margin is 30 s. Anchoring the watch to the trial's load instead would shorten the watch under load and could keep a change with no checks (fail open), so the product code is unchanged. Recorded here as the reason, not fixed. - **Do the tests still test the deadline?** The apply crash tests now poll for edge's own revert for up to 30 s instead of sleeping 8 s; they still fail if the trial never ends. The Caddy guard test sleeps past the new deadline (2 + 15 + 5 = 22 s → 27 s). - **Does the pin speak for the merged code?** It records the source tree of every tracked file but itself. The merge commit has the same tree if main has not moved (main is 3bf4a4f, this branch's base). If main moves first, the release's `pin` step refuses the tag and the pin is made again. - **Printing the pin to the runner's log:** store paths and hashes, all public. The VM tests' API token in the hub log is minted inside a throwaway VM. - **Is layers at 11901c1 enough for the merged tree?** The later commits change .fabrica/notes, bench/results and the pin: no code, test or build input. verify-nix at the final commit confirms the outputs. - **Not covered:** the release pipeline (e2e on the Windows runner, Mark's card, the signature) runs at the tag after this merge; nothing is deployed by this PR.
mnovak added 2 commits 2026-12-02 13:20:05 +01:00
mnovak added 1 commit 2026-12-02 13:48:39 +01:00
mnovak added 2 commits 2026-12-02 14:19:58 +01:00
mnovak added 1 commit 2026-12-02 15:04:54 +01:00
mnovak added 1 commit 2026-12-02 15:26:39 +01:00
mnovak added 1 commit 2026-12-02 16:48:04 +01:00
mnovak added 1 commit 2026-12-02 17:14:44 +01:00
mnovak added 1 commit 2026-12-02 18:48:36 +01:00
mnovak added 1 commit 2026-12-02 18:49:02 +01:00
mnovak added 2 commits 2026-12-02 19:58:48 +01:00
mnovak added 2 commits 2026-12-02 21:24:38 +01:00
mnovak changed title from [repo] Release: version 1.0.0 and its first Nix pin to [repo] Release: version 1.0.0, its first Nix pin, and the shared runner's layers green 2026-12-02 21:32:38 +01:00
mnovak manually merged commit 4c157b3347 into main 2026-12-02 21:32:53 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/ianitor#18