From 261fc2a0760674dd49cc5d4d6a03724c18f73cc9 Mon Sep 17 00:00:00 2001 From: Pavel Isaev Date: Fri, 6 Nov 2026 23:47:30 +0300 Subject: [PATCH] Fix KDE string conversions and reserve relay refresh headroom --- STATUS.md | 10 ++++++++++ pipeline/flatpak-relay.sh | 21 +++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/STATUS.md b/STATUS.md index 516858f..d983faa 100644 --- a/STATUS.md +++ b/STATUS.md @@ -26,6 +26,16 @@ leaving an updates-changed source. The fixture now completes shutdown before releasing the plugin. The loader-path fix is confirmed; the complete regression check and subsequent image stages still require a successful run. +Retry `20261106T203254Z` passed the complete GNOME plugin check +(`PLUGIN_DIFF_DOWNLOAD_APPLY_ERROR_STATES_PASS`) and refreshed both caches. Discover +compilation then rejected implicit ASCII-to-QString conversions under KDE's normal +compiler definitions. The backend now uses explicit Qt string literals. Relay +capacity review also found three retained exports occupying its remaining space; +pre-refresh retention now removes older exports only when needed, under the cache +lock, preserving current and one previous export before creating the next. The +installation cache is preserved. Discover compilation and image acceptance remain +pending; no new publication occurred. + 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 f117309..d23aa34 100644 --- a/pipeline/flatpak-relay.sh +++ b/pipeline/flatpak-relay.sh @@ -22,6 +22,9 @@ ssh -o BatchMode=yes "$relay" bash -s -- "$remote_source" "$remote_cache" "$boot set -euo pipefail mkdir -p "$1" test -f "$3" || { echo "Missing relay bootstrap: $3" >&2; exit 1; } +mkdir -p "$2" +exec 9>"$2/refresh.lock" +flock -n 9 required=8000000000 if [[ -f $2/current/SHA256SUMS ]]; then # Warm cache: allow another export, download growth and 2 GB for tool staging. @@ -29,6 +32,24 @@ if [[ -f $2/current/SHA256SUMS ]]; then required=$((2 * export_bytes + 2000000000)) fi available=$(df -PB1 /opt/archipelago | awk 'NR==2 {print $4}') +if (( available < required )) && [[ -f $2/current/SHA256SUMS ]]; then + # Make room for the next retained export; preserve current and one rollback. + python3 - "$2" <<'PY' +import re, shutil, sys +from pathlib import Path +cache = Path(sys.argv[1]) +current = (cache / 'current').resolve(strict=True) +exports = sorted((p for p in (cache / 'exports').iterdir() + if re.fullmatch(r'[0-9]{8}T[0-9]{6}Z', p.name) + and p.is_dir() and not p.is_symlink()), reverse=True) +keep = {current, *[p for p in exports if p != current][:1]} +for old in exports: + if old not in keep: + print(f'Retiring old relay export before refresh: {old}', flush=True) + shutil.rmtree(old) +PY + available=$(df -PB1 /opt/archipelago | awk 'NR==2 {print $4}') +fi echo "Flatpak relay capacity: available=$available required=$required bytes" (( available >= required )) || { echo "Insufficient relay space for Flatpak preparation" >&2; exit 1; } SH