Fix KDE string conversions and reserve relay refresh headroom

This commit is contained in:
Pavel Isaev 2026-11-06 23:47:30 +03:00
parent 74e812744e
commit 261fc2a076
2 changed files with 31 additions and 0 deletions

View file

@ -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

View file

@ -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