iso/container held five media while the catalog advertised retention_per_variant 3:
publish-container-runner.py only appends a version, and publish-hardware.py carried
the whole tree into every new generation without pruning.
Add prune_media()/prune_version_records() to publish-hardware.py, use them on the
container carry-over and after a container publication, and derive the existing ISO
history slice and catalog field from RETENTION_PER_VARIANT instead of a literal.
Applied to the live tree: 5 media/13 GB -> 3 media/7.9 GB; removed versions now
404, retained media, aliases and per-version records still serve. Correct the
publisher docstring, which still claimed Container Runner has no catalog card.
The failure archiver tarred gigabytes into failure-evidence while the next
cycle's retention pass removed <variant>/build/repo underneath it, which ended
the archive with 'Directory not empty'. Exclude the rebuildable OSTree repos
from the archive, take a shared per-run lock in both paths, and cover the
container variant in retention.
Reuses the run identity, snapshot and already built variants, re-freezes the
source so fixes apply, and skips core/gnome when their build trees are complete.
Flatpak caches, adapters and preflight are not repeated.
sha256sum prints the file path next to the digest, and the build path carries
the run id, so every run produced a new cache key and rebuilt both adapters.
Read the script through stdin so only its content enters the key.
- Both adapter builds use a persistent toolroot under cache/adapter-tools and the
snapshot mirror, so pacman -Syu reaches a fixed state once instead of
reinstalling 150-360 packages into an ephemeral overlay every run.
- Artifacts are content-addressed by (inputs, script, snapshot URL) and reused
when unchanged: the common cycle skips the whole 10+ minute build.
- release-cycle passes the snapshot URL to both adapter builds.
A sync-only install against the rolling mirror produced a partial upgrade and
conflicting openssl/openssl-3 files. The adapter toolroots are fixed bootstraps,
so -Syu is required until they are pinned to a snapshot.
- prepare-flatpak-seed.sh records the exact ref->commit manifest of the
installation; an unchanged manifest keeps the previously verified export
instead of rebuilding create-usb, fsck, 123 GPG checks and 192k hashes.
- pacman -Sy --needed instead of -Syu: the toolroot is a fixed bootstrap.
- flatpak-cache.sh keeps an "unchanged" outcome and verifies each export once
(marker) instead of re-hashing 190k files on every run.
- release-cycle.py captures a new snapshot only on the 1st and reuses the
current one otherwise; the build is always bound to an immutable snapshot.
- publish-hardware.py hardlinks immutable OSTree objects instead of copying
8.4 GB of small files onto ZFS.
- release-schedule.py and the timer run on the 1st only; STATUS updated.