From 151d76f6997c052d05f3bcc65d2e061f649cc5bc Mon Sep 17 00:00:00 2001 From: Pavel Isaev Date: Fri, 6 Nov 2026 18:26:26 +0300 Subject: [PATCH] Build Software adapter from frozen sources for each release --- deploy/RELEASE-CYCLE.md | 24 ++++++++++++++++++++++++ pipeline/build-software-adapter.sh | 23 +++++++++++++++++++++++ pipeline/release-cycle.py | 10 +++++++++- 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 pipeline/build-software-adapter.sh diff --git a/deploy/RELEASE-CYCLE.md b/deploy/RELEASE-CYCLE.md index 6a1e522..bad3f77 100644 --- a/deploy/RELEASE-CYCLE.md +++ b/deploy/RELEASE-CYCLE.md @@ -1,5 +1,29 @@ # Daily release cycle +## Update exercise run 20261106T152122Z + +Started manually with signed-commit timestamp downgrade protection in CLI plan/apply, +explicit removed-package labels in Software, interrupted-operation reconciliation, +and GNOME `plymouth.ignore-serial-consoles` boot arguments. Plymouth hook, spinner +theme and `splash` were already present in the installed image; its initramfs +actually started Plymouth. Serial-console routing is the suspected display issue, +not a missing mkinitcpio hook. Finalization now checks Plymouth daemon/theme files +inside the generated initramfs; visible splash remains a manual hardware check. + +Before Core/GNOME builds the coordinator compiles the Software adapter from frozen +sources using `build-software-adapter.sh`, in a disposable worker nspawn environment. +It overrides the legacy external plugin input with that run's compiled module and +archives its checksums/package inventory. This avoids silently shipping stale C +adapter code when only the Rust CLI is rebuilt. + +The user host's old plans and orphaned operation were archived under +`/var/lib/archipelago/updates/diagnostics/20261106T152303Z`. Its existing deployment +was retained; the boot entry gained `plymouth.ignore-serial-consoles` with the old +entry backed up there, so the first update using the old CLI can inherit the fix. +The current installed ISO pair is being aligned to stable through signed publisher +authorization D-087; no new image is manufactured by that alignment. The following +pipeline publication will supply the actual new image for manual update acceptance. + ## Current channel: stable (D-087, 2026-11-06) The latest explicit user instruction changes the daily publication destination to diff --git a/pipeline/build-software-adapter.sh b/pipeline/build-software-adapter.sh new file mode 100644 index 0000000..71f2a6b --- /dev/null +++ b/pipeline/build-software-adapter.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# Compile the frozen adapter source against the worker's Arch GNOME headers. +set -euo pipefail +source_root=$1 +tools=$2 +cache=$3 +output=$4 +mkdir -p "$output" +systemd-nspawn --quiet --ephemeral --settings=no --register=no \ + --machine="archipelago-software-build-$$" -D "$tools" \ + --bind-ro="$source_root/system/integrations/gnome-software:/source" \ + --bind="$cache:/var/cache/pacman/pkg" --bind="$output:/output" \ + /bin/bash -euo pipefail -c ' +pacman-key --init +pacman-key --populate archlinux +pacman -Syu --needed --noconfirm gcc pkgconf gnome-software json-glib sysprof +pkg-config --exact-version=51.1 gnome-software +gcc -shared -fPIC -O2 -Wall -Werror=implicit-function-declaration \ + -DG_LOG_DOMAIN=\"GsPluginArchipelago\" /source/gs-plugin-archipelago.c \ + -o /output/libgs_plugin_archipelago.so $(pkg-config --cflags --libs gnome-software json-glib-1.0) +sha256sum /source/gs-plugin-archipelago.c /output/libgs_plugin_archipelago.so > /output/SHA256SUMS +pacman -Q > /output/packages.txt +' diff --git a/pipeline/release-cycle.py b/pipeline/release-cycle.py index 41ff462..50751b1 100644 --- a/pipeline/release-cycle.py +++ b/pipeline/release-cycle.py @@ -72,6 +72,7 @@ def main(): worker_units = [] titles = {'preflight': 'Проверка стенда', 'freezing-and-compiling-source': 'Подготовка исходников и CLI', 'updating-flatpak-cache': 'Обновление кэша Flatpak', 'building-core': 'Сборка Core', + 'building-software-adapter': 'Сборка адаптера GNOME Software', 'building-gnome-purpose-and-iso': 'Сборка GNOME', 'archiving-artifacts': 'Передача артефактов на terra', 'core-installed-acceptance': 'Приёмка Core в VM', 'gnome-installed-acceptance': 'Приёмка GNOME в VM', 'preparing-publication': 'Проверка результатов', 'signing-and-publishing': 'Подпись и публикация', @@ -189,9 +190,16 @@ find {remote_root}/probes -type f -name '*.py' -exec sha256sum {{}} + >> {remote raise ValueError('Existing inputs must name absolute Core and GNOME build paths') atomic(run / 'existing-inputs.json', builds) else: + phase('building-software-adapter') + remote(shlex.join(['bash', remote_root + '/source/src/infrastructure/pipeline/build-software-adapter.sh', + remote_root + '/source/src', config['flatpak_cache'] + '/tools/root.x86_64', + config['build_environment']['ARCHIPELAGO_PACKAGE_CACHE'], remote_root + '/software-adapter']) + + ' > ' + shlex.quote(remote_root + '/software-adapter.log') + ' 2>&1', 3600) + call(['rsync', '-a', f'{worker}:{remote_root}/software-adapter/', str(run / 'software-adapter') + '/']) phase('building-core') builds = {v: remote_root + '/' + v + '/build' for v in ('core', 'gnome')} - env = 'env ' + ' '.join(shlex.quote(k + '=' + v) for k, v in config['build_environment'].items()) + build_env = dict(config['build_environment'], ARCHIPELAGO_SOFTWARE_PLUGIN=remote_root + '/software-adapter/libgs_plugin_archipelago.so') + env = 'env ' + ' '.join(shlex.quote(k + '=' + v) for k, v in build_env.items()) if args.core_build: builds['core'] = args.core_build atomic(run / 'reused-core-build.json', {'path': args.core_build})