From deee633a5d86d06bc099825107a4c6a07b2b0bb7 Mon Sep 17 00:00:00 2001 From: Pavel Isaev Date: Fri, 6 Nov 2026 23:22:42 +0300 Subject: [PATCH] Size relay capacity for warm Flatpak caches and report failures --- STATUS.md | 7 +++++++ pipeline/flatpak-relay.sh | 15 ++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/STATUS.md b/STATUS.md index c5c43ea..64478ed 100644 --- a/STATUS.md +++ b/STATUS.md @@ -12,6 +12,13 @@ build adapter now derives its test loader path from pkg-config library directori Re-execution is pending; this is not a passed plugin lifecycle or GUI acceptance. Diagnostics are archived on terra under this run's `failure-evidence` directory. +Retry `20261106T201655Z` stopped at relay capacity preflight: the successful first +KDE cache fill left 6.4 GiB free, below the unconditional cold-fill 8 GB threshold. +The relay now reports capacity and sizes warm-cache headroom as twice the current +export plus 2 GB for tool staging; cold fills retain the 8 GB requirement. No cache +or unrelated workload was removed. The GNOME loader-path fix remains awaiting +execution because this retry stopped earlier; no images were published. + The daily timer on terra has now been disabled and stopped: `inactive`, `disabled`, no next elapsed time. Manual cycles remain available. The accepted replacement is the 15th/30th at 00:00 UTC, snapshot-first, with terra infrastructure migrated to diff --git a/pipeline/flatpak-relay.sh b/pipeline/flatpak-relay.sh index dc0ad96..f117309 100644 --- a/pipeline/flatpak-relay.sh +++ b/pipeline/flatpak-relay.sh @@ -18,7 +18,20 @@ stamp=$(date -u +%Y%m%dT%H%M%SZ)-$$ remote_source=/opt/archipelago/flatpak-relay/$stamp remote_cache=/opt/archipelago/cache/flatpak/$variant # Use verified SSH host keys; never disable host verification for the relay. -ssh -o BatchMode=yes "$relay" "mkdir -p $remote_source; test -f '$bootstrap'; test \"\$(df -PB1 /opt/archipelago | awk 'NR==2 {print \$4}')\" -ge 8000000000" +ssh -o BatchMode=yes "$relay" bash -s -- "$remote_source" "$remote_cache" "$bootstrap" <<'SH' +set -euo pipefail +mkdir -p "$1" +test -f "$3" || { echo "Missing relay bootstrap: $3" >&2; exit 1; } +required=8000000000 +if [[ -f $2/current/SHA256SUMS ]]; then + # Warm cache: allow another export, download growth and 2 GB for tool staging. + export_bytes=$(du -sbL "$2/current" | cut -f1) + required=$((2 * export_bytes + 2000000000)) +fi +available=$(df -PB1 /opt/archipelago | awk 'NR==2 {print $4}') +echo "Flatpak relay capacity: available=$available required=$required bytes" +(( available >= required )) || { echo "Insufficient relay space for Flatpak preparation" >&2; exit 1; } +SH tar -C "$source_root" -cf - builder/adapters/prepare-flatpak-seed.sh \ infrastructure/pipeline/flatpak-cache.sh "purposes/proposals/$variant-flatpak-apps.json" | ssh -o BatchMode=yes "$relay" "tar -xf - -C $remote_source"