Size relay capacity for warm Flatpak caches and report failures
This commit is contained in:
parent
cd35f4f872
commit
deee633a5d
2 changed files with 21 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue