rfc/spec/release-cadence-and-testing.md
2026-11-10 00:20:31 +03:00

7.6 KiB

Release cadence, automated checks and manual coverage

Status: Accepted — D-098, 2026-11-09. Explicit user decision. It replaces the 15th/30th schedule of D-090 and removes installed-VM acceptance from the normal release path. Acceptance is not evidence that a three-day run, an ISO-day run or the storage compaction has already completed.

Seed of the decision

The instruction was given after three concrete observations, not as a preference:

  1. The Core acceptance run 20261109T160658Z failed on the test harness, not on the image: the second reboot was requested with sudo after a long tree composition had expired the sudo timestamp, so the runner waited five minutes for a login prompt that could never appear.
  2. Each installed-VM acceptance consumed hours of the same four-hour action budget as the build itself, while the uncovered remainder (physical firmware, Wi-Fi, suspend, GUI behaviour) cannot be proven in a VM at all.
  3. Frequent full ISO production was not required for installed systems, because they update over OSTree. Media only needed to exist for new installations.

The resulting policy: move everything that can be expressed as a contract or a pure function into Rust tests, keep the rest as explicit manual checks performed by the user, publish layers often, and publish installation media monthly.

Cadence (D-098)

  • OSTree release every three days, anchored at 2026-11-09 00:00 UTC. The grid is an interval: 9, 12, 15, 18 November, then across month and year boundaries. It is deliberately not a day-of-month rule such as day % 3 == 0, which would break the interval at every month boundary.
  • ISO release on calendar day 30 of each month, at 00:00 UTC. That run produces ISO media and also publishes the OSTree refs of the same build. There is no February 30 and no substitution with the month's last day; if a month has no 30th, that month has no ISO release.
  • A day-30 run and a grid day can coincide (2026-11-30 is both); the day-30 rule takes precedence and only one run starts. A dispatcher runs daily at 00:00 UTC and starts the cycle only on a matching day, so the timer expression is no longer the schedule itself. Implementation: infrastructure/pipeline/release-schedule.py, deploy/archipelago-release-schedule.service, deploy/archipelago-release-cycle.timer.
  • Flatpak seeds are refreshed only on ISO cycles (amendment of 2026-11-10). Three-day OSTree cycles reuse the last verified seed: the packages are only shipped in installation media, so refreshing them on every layer release spent hours of the four-hour action budget for no delivered change. The build still compiles the Software adapter and imports the cached seed; it does not refresh or re-export it. A host that has never run an ISO cycle has no seed and must complete one before its first OSTree-only cycle.
  • Urgent CVE or operational fixes still run immediately by explicit user request.
  • Both modes share one driver, one overlap lock, one evidence chain, one signing key and one atomic publication step.

Testing policy

Normal builds execute, in the frozen source tree:

  • cargo test --workspace (unit and integration tests of CLI, contracts, system daemon, composer, builder, installer, registry);
  • infrastructure/tests/control_portal.py;
  • contract checks that do not require an Arch isolation environment.

Installed-VM acceptance is not part of the normal cycle. --vm-acceptance-waiver, --existing, --core-build and the VM phases were removed rather than left disabled, so an unattended run cannot silently fall back to a waived or stale-image path.

Former VM scenarios mapped to code

Former acceptance scenario Automated coverage
CLI help, unknown command, exit codes cli/tests/interface.rs
Host command routing with --json/--debug/--offline/--request-id client::interface_tests, system_bus option tests
Daemon unavailable: one JSON error, no local privileged fallback cli/tests/interface.rs
Cumulative extension add, duplicate add, removal, failed request retention service::packages::acceptance_tests
Managed-package override, stale catalog, conflicting batch service::packages::acceptance_tests
Unknown legacy input never silently dropped service::packages::acceptance_tests
Pending vs booted vs other stateroot selection service::packages::acceptance_tests, extensions::tests
Staged deployment identity/serial, duplicate staging rejection updates::managed tests
Kernel-argument inheritance, duplicates, spaces, ostree selector guard service::kargs tests, client::interface_tests
Human output without transaction plumbing; localized failures service::client_output test
Journal durability, restart reattachment, cancellation ordering, newer-schema retention service::journal tests
Composition ordering, snapshot/ABI rejection, ownership reassignment, path conflicts composer tests
First-boot/onboarding state machine (install, resume, ready, diagnostics) system/tests/onboarding.rs
Publication retention, atomicity, refusal of unapproved stable promotion, signature verification infrastructure/tests/publish-hardware.py
Schedule arithmetic across month/year boundaries infrastructure/tests/release-schedule.py
Portal API/UI contract and bounded logs infrastructure/tests/control_portal.py

These tests prove contract and state-machine behaviour. They do not prove that a kernel boots on real firmware, that a GPU or Wi-Fi device works, that GNOME/KDE renders correctly, or that suspend/hotplug behave. Those are now explicit user manual checks and are recorded as such in the release authorization, never as passing automated evidence.

Publication split and retention

  • OSTree-only cycles publish stable/core, stable/gnome, stable/kde and the purpose layers. They must not modify the ISO catalog, its current flags or the ISO bytes.
  • ISO cycles publish media and refs together.
  • Public OSTree keeps only the current commit of each published ref. Intermediate image, layer and purpose commits are not retained as history/* or iso-history/* refs and are pruned. This is safe for updates because OSTree fetches the newest commit directly and because the retained Broadcom deployment is pinned locally on that host.
  • ISO retention stays at the three most recent media per variant. Each ISO embeds its own OSTree repository, so a retained older ISO remains installable even when the central repository no longer carries its base commit. The catalog keeps that contract instead of implying that old ISO identities are pullable from the portal.
  • Private run archives keep sources, logs, evidence and state, but not duplicate repo/, output/, composition trees, workspace.ext4 or VM disks. Compaction is performed by infrastructure/pipeline/compact-storage.py (archive and worker caches) and infrastructure/pipeline/compact-ostree.py (public refs/prune plus re-signed summary).
  • Package snapshots and the package cache are not covered by that compaction: Host Extensions and DKMS resolve against a base snapshot, so removing it would break the update path that D-098 must preserve.

What remains open

  • Bit-for-bit reproducibility is still not demonstrated by these checks.
  • The ISO-mode path of D-098 has not yet been executed in production.
  • Automatic verification that a retained ISO still installs is a manual check.
  • The exact manual-check list for physical hardware lives outside the pipeline; the release record states that manual verification is delegated to the user.