Select the repository snapshot by calendar day; hardlink publication generations
- 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.
This commit is contained in:
parent
0519d1e5c9
commit
bf7028e683
5 changed files with 138 additions and 12 deletions
105
STATUS.md
105
STATUS.md
|
|
@ -1,6 +1,109 @@
|
|||
# Infrastructure implementation status
|
||||
|
||||
Updated 2026-11-09. Architectural acceptance is separate from implementation.
|
||||
Updated 2026-11-12. Architectural acceptance is separate from implementation.
|
||||
|
||||
## Out-of-band ISO publication 20261112T173549Z (2026-11-12)
|
||||
|
||||
The OSTree cycle published no installation media, so the user requested an
|
||||
out-of-band ISO build and publication: four editions, built from the **frozen source
|
||||
of run `20261112T120954Z`** plus the D-109 console correction, against the same
|
||||
November repository snapshot. The Container Runner medium is intended as the base
|
||||
for a future builder appliance.
|
||||
|
||||
Completed 19:30:35 UTC. Rollback point before publication:
|
||||
`tank/archipelago@pre-iso-20261112T173549Z`; public generation
|
||||
`hardware-x_3njpwn`.
|
||||
|
||||
| Variant | Size (bytes) | ISO sha256 | image commit | purpose layer |
|
||||
|---|---|---|---|---|
|
||||
| core | 2 389 514 240 | `4706105c19cbd90594e48fb7dcf7364d748fcffd154bddee943adf41fcdf1503` | `264cdacb8ad91310733a2768255cc8b53914744f8ba46c46b8a27f413076ed8e` | — |
|
||||
| gnome | 5 661 425 664 | `528aefb638464245f6d8d1b868cf44543a7ea073af636d0103e368d398f55b73` | `dfd2979466800de296fad09cc42370f1e625bd57664eabd7df94f835537b129d` | `1710bb35ef3c7649ba297c9cd1d703077ad6c6b07417ef7161a8d0c5c562f8d7` |
|
||||
| kde | 5 320 486 912 | `78cd6e7c4781da7d71328cb4129c08ee72946eec186143bf27dd1406384eeae6` | `65adb43ffa397d90f0f95da367ce96029d99b61162923ba0b1527ca5ff82c27e` | `eaab0144ed53596b339d26036f93419d9a270210e41f9c403bf12253937ac623` |
|
||||
| container | 2 814 388 224 | `92fb7f2ec70321a866ae…` (see catalog) | `253d667c56c2fa8fa0af14e6f77d74b46107f267419ffc49d9f8936a7398b514` | `cbf4ddabc65aa95a7c9ff1c6b651e283647749621fb66d8e7cca6d4e0f5d2bd1` |
|
||||
|
||||
Shared Core layer for every edition: `3e58db0dca9d094287425765992c4e4e77f7369b109778e2abc4be4e146488a5`.
|
||||
|
||||
`stable/core`, `stable/gnome`, `stable/kde` and `stable/container` now point at these
|
||||
commits; the catalog marks `20261112T173549Z` current for all four and retains the
|
||||
three previous media per variant. Verified over HTTPS: refs readable, the four ISOs
|
||||
and their `.sha256` files return 200 with matching sizes, `v1/container-runner-iso.json`
|
||||
carries the container medium.
|
||||
|
||||
Console correction verified inside the published trees: `getty@tty1` is enabled and
|
||||
the packaged `getty@tty1.service.d/50-archipelago-console-login.conf` drop-in exists
|
||||
in Core and Container Runner, while `kmsconvt@tty1` is not enabled.
|
||||
|
||||
Known deviation: `autovt@.service` points at `getty@.service` in **all** editions, so
|
||||
GNOME/KDE also use plain getty on tty2+ instead of kmscon. Cause: the purpose stage's
|
||||
`/etc` (where the `systemd` package post-install creates that alias) shadows the Core
|
||||
tree, and the alias for desktops was written into the Core tree. Fix belongs in the
|
||||
purpose layer before the next cycle if kmscon on desktop VTs is still wanted; it is
|
||||
not a console-availability defect.
|
||||
|
||||
## Cycle 20261112T120954Z bound to the November snapshot (2026-11-12)
|
||||
|
||||
First cycle built against an immutable repository snapshot
|
||||
(`https://mirror.nw-sys.ru/archipelago/arch-repo-snapshot/2026-11-12/$repo/os/$arch`)
|
||||
instead of the rolling mirror. Mode `ostree`: no ISO media. Started 12:09:54 UTC,
|
||||
`complete` at 15:17:38 UTC, `published: true` (3 h 07 min total; 2 h 37 min of it
|
||||
the four-variant build).
|
||||
|
||||
Published refs, read back over HTTPS:
|
||||
|
||||
| Ref | Commit |
|
||||
|---|---|
|
||||
| `images/stable/core` | `25b242c971d39cd1564319d0badbcea1f428ba27f884d10880901fede814cb54` |
|
||||
| `images/stable/gnome` | `45bafea6ba8ac718ffdadf8aa2b88bb23b9e403f18b826ff6cce84e654e8d01b` |
|
||||
| `images/stable/kde` | `50d90c18adf81fbceebee85b7584ac0190d83596d309232e4bda402392cf4ac7` |
|
||||
| `images/stable/container` | `e7882d795d757471dc6f6a606c4cf1ac4b2a18f31e8eb3ff5cb04fcfd985a4df` |
|
||||
| `layers/stable/{core,gnome,kde,container}` | `b834424f1bfbede836255bfaf494aa90119a133c85171e0bea7bd4542d55d98f` |
|
||||
| `layers/purpose/desktop/gnome` | `e4f77a3931de2c15b332286e1b4f8464a292e35be14b6d3fab3171eef629c522` |
|
||||
| `layers/purpose/desktop/kde` | `4fc655cbbe3e2c598fd52ada07b4c9e33f117c9321291456310c4479a22a1f77` |
|
||||
| `layers/purpose/server/container-runner` | `dcd9b22f6ea5ed4424799ca961ed58055d46fdf33ddd4990ab293b80950fc301` |
|
||||
|
||||
Verification performed here: `ostree pull --depth=0` **by commit** from the published
|
||||
repositories with `gpg-verify=true` and `gpg-verify-summary=true`, using the key the
|
||||
image itself ships at `/usr/share/archipelago/keys/ostree.asc`. Both the summary and
|
||||
the commit signatures verified (3325/42937 objects for `images`, 3327/42938 for
|
||||
`layers`). Pulling *by ref name* (`stable/core`) is rejected with
|
||||
`Commit has no requested ref 'stable/core' in ref binding metadata ('core')`; the
|
||||
installed client pulls by commit, so this is expected and not a publication defect.
|
||||
|
||||
Publication created generation `hardware-cxjv4vt9` (47 GB, 385 769 files, of which
|
||||
38 GB are hardlinked ISO bytes) and removed the previous generation; `current` points
|
||||
at the new one.
|
||||
|
||||
**These images still contain the console defect below** — the run was frozen from the
|
||||
source tree before the D-109 correction, so they are expected to boot without a kmscon
|
||||
console and without a working first-boot path.
|
||||
|
||||
## Console defect in published Core/Container Runner/ISO images (2026-11-12)
|
||||
|
||||
Reported by the user on a live/installed Container Runner image: no kmscon console
|
||||
on tty1, first-boot provisioning never ran, other VTs unusable (only systemd-boot
|
||||
visible). Two independent defects were found and corrected in the source tree; the
|
||||
currently published images still contain both.
|
||||
|
||||
- **kmscon cannot start without mesa.** Every render engine shipped in
|
||||
`kmscon 10.1.0-1` needs the GL stack: `mod-gltex.so` → `libGLESv2`, `mod-drm3d.so`
|
||||
→ `libEGL`+`libgbm`+`libGLESv2`. The Arch package does not declare `mesa`, so
|
||||
Core, Container Runner and the ISO never carried those libraries. Verified in the
|
||||
published commits: GNOME `39db7c49…` and KDE `e527c29c…` have
|
||||
`libgbm/libEGL/libGLESv2` and `mesa`, while Core `f92264c8…` and Container Runner
|
||||
`a6242826…` have none. kmscon therefore exits and only the `OnFailure` getty
|
||||
survives.
|
||||
- **The onboarding drop-in was never packaged.** `package.sh` wrote
|
||||
`getty@tty1.service.d/50-archipelago-console-login.conf` under `runtime/etc`, and
|
||||
`cli/packaging/PKGBUILD` copies only `runtime/usr`; the file is missing from every
|
||||
image. `getty@tty1` therefore ran stock `agetty`, so `archipelago firstboot` never
|
||||
started and the installed system had no usable account.
|
||||
|
||||
Corrections in the source tree (D-109), not yet published: the drop-in moved to
|
||||
`/usr/lib/systemd/system/getty@tty1.service.d/` and the recipe now fails the build if
|
||||
`runtime/etc` appears again; Core, Container Runner and the live ISO keep `getty@tty1`
|
||||
with the plain kernel console (`vconsole.conf` already sets `FONT=ter-v24b`); kmscon
|
||||
and the `autovt@` alias remain only in the desktop builds, which ship mesa. No
|
||||
verification of a rebuilt image is claimed yet.
|
||||
|
||||
## Full four-variant ISO publication (2026-11-10/11)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
[Unit]
|
||||
Description=Archipelago three-day OSTree and monthly ISO dispatcher
|
||||
Description=Archipelago monthly ISO+OSTree and repository snapshot dispatcher
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 00:00:00 UTC
|
||||
OnCalendar=*-*-01 00:00:00 UTC
|
||||
Persistent=true
|
||||
AccuracySec=1min
|
||||
Unit=archipelago-release-schedule.service
|
||||
|
|
|
|||
|
|
@ -132,7 +132,10 @@ def publish(public, records, gpg_home=None, gpg_key=None, archives=None, validat
|
|||
for kind in ('images', 'layers'):
|
||||
repo = stage / 'ostree' / kind
|
||||
if previous:
|
||||
subprocess.run(['cp', '-a', '--reflink=auto', str(previous / 'ostree' / kind), str(repo)], check=True)
|
||||
# OSTree objects are immutable, so hardlink the previous
|
||||
# generation instead of copying 8.4 GB of small files onto
|
||||
# ZFS (which has no reflink support).
|
||||
subprocess.run(['cp', '-al', str(previous / 'ostree' / kind), str(repo)], check=True)
|
||||
old_refs_file = previous / 'publication-refs.json'
|
||||
old_refs = json.loads(old_refs_file.read_text()) if old_refs_file.exists() else {
|
||||
'core': 'hardware-test/core', 'gnome': 'hardware-test/gnome'}
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ def main():
|
|||
parser.add_argument('--config', default=os.environ.get('ARCHIPELAGO_CYCLE_CONFIG', '/etc/archipelago/release-cycle.json'))
|
||||
parser.add_argument('--mode', choices=('auto', 'ostree', 'iso'), default='auto')
|
||||
args = parser.parse_args()
|
||||
mode = args.mode if args.mode != 'auto' else ('iso' if datetime.now(timezone.utc).day == 30 else 'ostree')
|
||||
mode = args.mode if args.mode != 'auto' else ('iso' if datetime.now(timezone.utc).day == 1 else 'ostree')
|
||||
config = json.loads(Path(args.config).read_text())
|
||||
variants = tuple(config.get('variants', ['core', 'gnome']))
|
||||
if variants not in (('core', 'gnome'), ('core', 'gnome', 'kde')):
|
||||
|
|
@ -166,6 +166,27 @@ def main():
|
|||
phase('preflight')
|
||||
atomic(run / 'private-cleanup.json', {'removed': cleanup_module.cleanup(parent, stamp)})
|
||||
remote(f'mkdir -p {shlex.quote(remote_root)}; test -f {shlex.quote(config["worker_source_root"])}/src/rfc/schemas/layer-v1.schema.json')
|
||||
# D-108: the first of the month captures a new immutable repository
|
||||
# snapshot; every other build reuses the current one. The installed system
|
||||
# keeps the repository it was composed from (build-iso.sh writes this URL
|
||||
# into the image), so a snapshot build can never silently fall back to the
|
||||
# rolling mirror and lose a package that the mirror later prunes.
|
||||
phase('selecting-repository')
|
||||
snapshots = Path('/opt/archipelago/data/public/arch-repo-snapshot')
|
||||
if datetime.now(timezone.utc).day == 1:
|
||||
snapshot_proc = subprocess.run(['/usr/local/sbin/archipelago-mirror-snapshot'],
|
||||
capture_output=True, text=True)
|
||||
if snapshot_proc.returncode != 0:
|
||||
raise RuntimeError('mirror snapshot failed: ' + snapshot_proc.stderr.strip())
|
||||
snapshot_url = next(line.removeprefix('url=') for line
|
||||
in reversed(snapshot_proc.stdout.splitlines()) if line.startswith('url='))
|
||||
else:
|
||||
views = sorted(p.name for p in snapshots.iterdir() if p.is_dir()) if snapshots.is_dir() else []
|
||||
if not views:
|
||||
raise RuntimeError('No repository snapshot available; run the cycle on the 1st to capture one')
|
||||
snapshot_url = (config['public_url'].rstrip('/') + '/arch-repo-snapshot/'
|
||||
+ views[-1] + '/$repo/os/$arch')
|
||||
state['snapshot_url'] = snapshot_url
|
||||
# Compile from the frozen source tree, not a possibly stale deployed CLI.
|
||||
phase('freezing-and-compiling-source')
|
||||
remote(f'''tar --exclude=.git --exclude=target --exclude=__pycache__ -C {shlex.quote(config['worker_source_root'])} -cf {remote_root}/source.tar src
|
||||
|
|
@ -234,6 +255,7 @@ find {remote_root}/probes -type f -name '*.py' -exec sha256sum {{}} + >> {remote
|
|||
phase('building-core')
|
||||
builds = {v: remote_root + '/' + v + '/build' for v in build_variants}
|
||||
build_env = dict(config['build_environment'], ARCHIPELAGO_SOFTWARE_PLUGIN=remote_root + '/software-adapter/libgs_plugin_archipelago.so',
|
||||
ARCHIPELAGO_MIRROR_URL=snapshot_url,
|
||||
ARCHIPELAGO_BUILD_OUTPUT=mode,
|
||||
ARCHIPELAGO_LOG_DIR=remote_root + '/cli-logs')
|
||||
if 'kde' in desktops:
|
||||
|
|
|
|||
|
|
@ -1,17 +1,15 @@
|
|||
#!/usr/bin/env python3
|
||||
"""D-098: anchored three-day OSTree cadence plus calendar-day-30 ISO."""
|
||||
"""Monthly snapshot cycle: ISO + OSTree build on the 1st of each month."""
|
||||
import argparse
|
||||
from datetime import date, datetime, timedelta, timezone
|
||||
from datetime import datetime, timedelta, timezone
|
||||
import subprocess
|
||||
|
||||
ANCHOR = date(2026, 11, 9)
|
||||
|
||||
|
||||
def mode(day):
|
||||
if day.day == 30:
|
||||
# D-108: the monthly repository snapshot and the ISO+OSTree build run on the
|
||||
# 1st; the snapshot is created by the cycle before it compiles anything.
|
||||
if day.day == 1:
|
||||
return 'iso'
|
||||
if day >= ANCHOR and (day - ANCHOR).days % 3 == 0:
|
||||
return 'ostree'
|
||||
return None
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue