From 3c696eeaaabb2f939de619e6a178f0ace6269d9c Mon Sep 17 00:00:00 2001 From: Pavel Isaev Date: Mon, 9 Nov 2026 23:55:35 +0300 Subject: [PATCH] Document D-098 operations, cadence and implementation state --- README.md | 25 ++++++++++++++++--------- STATUS.md | 32 +++++++++++++++++++++++++++++++- control/README.md | 10 ++++++---- deploy/RELEASE-CYCLE.md | 14 +++++++++++++- deploy/SNAPSHOT-ROLLOUT.md | 16 ++++++++++++---- 5 files changed, 78 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index b9d81a3..bf765b1 100644 --- a/README.md +++ b/README.md @@ -9,18 +9,23 @@ Personal portal on terra: **http://100.64.0.11:8099/** (Tailscale) or **http://192.168.88.104:8099/** (LAN). No Ingress integration. Start/stop, timer control, actual stage/action history and full paginated/downloadable logs: [deployment and API](control/README.md). New builds run on terra SSD worker; -artifacts and retained logs on ZFS. Schedule: 15th/30th at 00:00 UTC (D-090). -The older yabloko/daily descriptions below are historical. +artifacts and retained logs on ZFS. Schedule (D-098): **OSTree refs every three days** +on an anchored interval (anchor 2026-11-09 00:00 UTC) and **ISO media on calendar +day 30**, dispatched by a daily 00:00 UTC timer. A run publishes `cargo test +--workspace` + portal contract evidence instead of installed-VM acceptance; +boot/firmware/GUI coverage is an explicit user manual check. Contract: +[rfc/spec/release-cadence-and-testing.md](../rfc/spec/release-cadence-and-testing.md). +The older yabloko/daily/15-30 descriptions below are historical. Temporary hardware-testing topology/retention and publication procedure: [`deploy/HARDWARE-TEST.md`](deploy/HARDWARE-TEST.md). Builds/tests now run on yabloko; repositories and published artifacts remain on terra. The hardware-test publisher is separate from testing/stable release gates. -## Daily pipeline +## Release pipeline (D-098) -All preparation, Flatpak downloads, builds and VM checks run on **yabloko** (D-086). -Terra coordinates, stores, signs and publishes. On terra: +All preparation, Flatpak downloads and builds run on the terra worker. Terra stores, +signs and publishes. On terra: ```sh archipelago-release run @@ -28,10 +33,12 @@ archipelago-release status archipelago-release logs ``` -Sequence: refresh persistent Flatpak cache → build Core → build GNOME from Core -→ test both installed VMs → transfer accepted artifacts → sign/publish → verify -HTTPS. The same driver runs daily at 00:00 UTC / 03:00 MSK. A failed refresh can -use only a verified matching cached seed and is shown explicitly in status. +Sequence: refresh persistent Flatpak cache → build Core → build GNOME/KDE from Core +→ run the frozen-source Rust/contract checks → transfer artifacts → sign/publish +→ verify HTTPS refs; ISO media are built and verified only on day-30 runs. +The dispatcher runs daily at 00:00 UTC and starts the driver only on a matching day. +A failed Flatpak refresh can use only a verified matching cached seed and is shown +explicitly in status. See [the operational guide](deploy/RELEASE-CYCLE.md) for paths and failure handling. ## Standalone web deployment diff --git a/STATUS.md b/STATUS.md index 0228cc6..43452f1 100644 --- a/STATUS.md +++ b/STATUS.md @@ -1,6 +1,36 @@ # Infrastructure implementation status -Updated 2026-11-07. Architectural acceptance is separate from implementation. +Updated 2026-11-09. Architectural acceptance is separate from implementation. + +## D-098 Rust/manual testing, split cadence and storage compaction (2026-11-09) + +The user replaced installed-VM acceptance in the normal cycle with `cargo test +--workspace` plus the portal contract test, and delegated boot/firmware/GUI checks +to manual verification. Publication is split: OSTree refs every three days (anchor +2026-11-09 00:00 UTC) and ISO media on calendar day 30, dispatched by a daily +00:00 UTC timer. Contract: `rfc/spec/release-cadence-and-testing.md`, decision +D-098. + +Implemented and checked before the first D-098 run: + +- driver `pipeline/release-cycle.py` rewritten without VM phases, `--existing`, + `--core-build` or `--vm-acceptance-waiver`; new `--mode ostree|iso|auto`; +- `builder/adapters/build-iso.sh` OSTree-only mode; `defaults/os-release` now + reports `VERSION_ID=Tesseract` instead of `0.0.0`; +- `pipeline/publish-hardware.py` publishes OSTree-only cycles without touching the + ISO catalog, keeps one current commit per ref, prunes intermediate refs, and + keeps three ISO media per variant in `iso-history.json`; +- `pipeline/release-schedule.py`, `deploy/archipelago-release-schedule.service` + and the daily timer; `tests/release-schedule.py` passes locally; +- `tests/publish-hardware.py` passes against real OSTree in the tools image, + including the new OSTree-only publication block (`OSTREE_ONLY_RELEASE_PASS`); +- `tests/control_portal.py` passes locally; +- archive cleanup policy `evidence-only-D-098`; one-off compaction of worker + archives/caches, old public generations and public history refs. + +Not yet proven: the first complete D-098 run (build, checks, signing, publication +and HTTPS verification) and the ISO-mode path, which is first scheduled for +2026-11-30. Broadcom hardware behaviour and GUI remain manual user checks. ## SDDM update publication and stale portal cards (2026-11-07) diff --git a/control/README.md b/control/README.md index 1ba4992..bda66ba 100644 --- a/control/README.md +++ b/control/README.md @@ -34,10 +34,12 @@ Source revisions are frozen into each run's source archive; the overview shows t next run's configured source revisions. Native executable logs retain their existing format; monitoring does not substitute human CLI output for private detailed logs. -Stopping the driver stops owned worker units and VM units, retains logs, and leaves -unfinished build artifacts for diagnosis rather than starting a lengthy archive. -No command shell or arbitrary service name is accepted over HTTP. Schedule buttons -control the existing 15th/30th 00:00 UTC timer and do not change its dates. +Stopping the driver stops owned worker units, retains logs, and leaves unfinished +build artifacts for diagnosis rather than starting a lengthy archive. D-098 removed +the VM phases, so the portal no longer stops VM units. No command shell or arbitrary +service name is accepted over HTTP. Schedule buttons enable or disable the D-098 +daily dispatcher timer; the cadence itself (three-day OSTree interval, day-30 ISO) +is fixed by the code and is not editable from the portal. Runtime API tests: `python3 tests/control_portal.py` on terra. They use a temporary fixture and fake systemd responses; they never start or stop a real build. diff --git a/deploy/RELEASE-CYCLE.md b/deploy/RELEASE-CYCLE.md index 40ebb85..9742908 100644 --- a/deploy/RELEASE-CYCLE.md +++ b/deploy/RELEASE-CYCLE.md @@ -1,4 +1,16 @@ -# Daily release cycle +# Release cycle operations + +**D-098 (2026-11-09) supersedes the operating procedure in the historical sections +below.** The normal cycle no longer performs installed-VM acceptance; it runs `cargo +test --workspace` and the portal contract test on the frozen source tree, records +that evidence, and delegates boot/firmware/GUI verification to explicit user manual +checks. `--vm-acceptance-waiver`, `--existing` and `--core-build` were removed from +the driver. Publication is split: OSTree refs every three days (anchored 2026-11-09 +00:00 UTC) and ISO media on calendar day 30, dispatched by +`deploy/archipelago-release-schedule.service` from a daily 00:00 UTC timer. Public +OSTree keeps only the current commit of each ref; three ISO media per variant are +retained and each embeds its own repository. Contract: +`rfc/spec/release-cadence-and-testing.md`. 2026-11-09: the user removed the redundant full `ostree fsck` from the publisher after import/prune. The driver's archive fsck remains, as do signatures and public diff --git a/deploy/SNAPSHOT-ROLLOUT.md b/deploy/SNAPSHOT-ROLLOUT.md index 16a891f..e995e95 100644 --- a/deploy/SNAPSHOT-ROLLOUT.md +++ b/deploy/SNAPSHOT-ROLLOUT.md @@ -4,6 +4,13 @@ `rfc/spec/release-snapshots.md` относительно рабочего пространства. Это инструкция следующей задачи, не отчёт о выполненном переносе. +**D-098 (2026-11-09) заменяет расписание из этой инструкции.** Сборки теперь: +OSTree-refs каждые три дня от якоря 2026-11-09 00:00 UTC и ISO 30-го числа, +ежедневный диспетчер запускает драйвер только в подходящий день. Установочная +VM-приёмка в штатном цикле заменена Rust-тестами и ручной проверкой пользователя. +Пункты 1 и 10 ниже в части дат и приёмки исторические; snapshot-идентичность, +bootstrap upgrade, лимит трёх snapshot и размещение на tank сохраняются. + ## Порядок выполнения 1. Сейчас: отключить ежедневный `archipelago-release-cycle.timer`, сохранить @@ -40,10 +47,11 @@ **не более трёх одновременно**, включая внеплановые CVE captures. Сначала согласовать удерживаемые release/lock references; если удалять ещё нельзя, остановить capture, не создавать четвёртый и не ломать удерживаемые inputs. -10. После проверки включить новое расписание: 15-е и 30-е, **00:00 UTC**. - Ожидаемое systemd-выражение: `*-*-15,30 00:00:00 UTC`; проверить календарь до - активации. Это не ровно 14 дней; 30 февраля отсутствует. Не включать старый - daily timer. Подтвердить systemd state и ближайшие даты. +10. После проверки включить новое расписание по D-098: ежедневный диспетчер + (`archipelago-release-cycle.timer` → `archipelago-release-schedule.service`) + в **00:00 UTC**; он запускает сборку только на трёхдневной сетке от 2026-11-09 + или 30-го числа. Старый прямой daily-таймер не включать. Подтвердить systemd + state и ближайшие даты через портал (`next_release`). ## Вне расписания