Make aarch64 a first-class architecture in the scheduled pipeline
One list, PUBLISHED_ARCHES in helpers/paths.sh (default x86_64, overridable with OMARCHY_ARCHES), now drives everything the repository host schedules. check-versions compares PKGBUILDs against each architecture's channel databases and writes one queue per channel and architecture; auto-release works through the queues one architecture at a time, each with its own backoff, so a failing build on one never blocks the other; advance-channel --arch all re-runs an advance for every published architecture and omarchy-release uses it for start and ship, building the pinned pair once per architecture in its rc trigger; the train observes channels through the reference (first) architecture instead of a hard-coded x86_64. Queue and backoff files written under the old per-channel names are treated as x86_64 until consumed. Two things made an aarch64 builder image impossible to create: the keyring bootstrap fetched omarchy-keyring from the target architecture's own channel tree, which does not exist before that architecture has published anything, and the QEMU probe only knew the x86_64-host, aarch64-target case. The keyring (arch=any) now always comes from the x86_64 tree, and the probe compares host and target architectures and runs a container for the target platform. clean-repo grouped versions with a regex that only knew any, x86_64 and i686, so aarch64 packages would never have been pruned.
This commit is contained in:
1 parent
069ffc8c3a
commit
91843ab099
12 files changed
+330
-104
No files matched your search
+42
-1
@@ -26,6 +26,32 @@ FAST_RING_ONLY=false
|
||||
BOOTSTRAP=false
|
||||
PACKAGES=""
|
||||
|
||||
# Kept for --arch all, which re-invokes this script per architecture with the
|
||||
# other arguments unchanged (minus the --arch all pair itself).
|
||||
ORIGINAL_ARGS=()
|
||||
skip_next=false
|
||||
prev=""
|
||||
for arg in "$@"; do
|
||||
if [[ "$skip_next" == true ]]; then
|
||||
skip_next=false
|
||||
prev=""
|
||||
continue
|
||||
fi
|
||||
if [[ "$arg" == "--arch" ]]; then
|
||||
prev="--arch"
|
||||
continue
|
||||
fi
|
||||
if [[ "$prev" == "--arch" ]]; then
|
||||
prev=""
|
||||
if [[ "$arg" == "all" ]]; then
|
||||
continue
|
||||
fi
|
||||
ORIGINAL_ARGS+=("--arch" "$arg")
|
||||
continue
|
||||
fi
|
||||
ORIGINAL_ARGS+=("$arg")
|
||||
done
|
||||
|
||||
usage() {
|
||||
echo "Usage: $0 --from <channel> --to <channel> [OPTIONS]"
|
||||
echo ""
|
||||
@@ -36,7 +62,8 @@ usage() {
|
||||
echo " or --bootstrap (one-time initial seed)"
|
||||
echo ""
|
||||
echo "Options:"
|
||||
echo " --arch <arch> Target architecture (x86_64 or aarch64, default: x86_64)"
|
||||
echo " --arch <arch>|all Target architecture (x86_64 or aarch64, default: x86_64);"
|
||||
echo " all = every published architecture, one after another"
|
||||
echo " --package <names...> Advance only the named package(s)"
|
||||
echo " --fast-ring Restrict to fast-ring packages (stable -> rc parity copy)"
|
||||
echo " --bootstrap One-time stable -> rc seed before forward-only enforcement"
|
||||
@@ -65,6 +92,20 @@ while [[ $# -gt 0 ]]; do
|
||||
shift 2
|
||||
;;
|
||||
--arch)
|
||||
if [[ "$2" == "all" ]]; then
|
||||
# A release train advances every published architecture together; a
|
||||
# channel that moved for one and not another would serve mismatched
|
||||
# versions to users on the two. Re-run this script once per
|
||||
# architecture with the same arguments, stopping at the first failure
|
||||
# so the operator sees which architecture is stuck (the advance is
|
||||
# idempotent, so re-running with --arch all resumes where it stopped).
|
||||
shift 2
|
||||
for arch in $(published_arches); do
|
||||
"$0" --arch "$arch" "${ORIGINAL_ARGS[@]}" || exit $?
|
||||
done
|
||||
exit 0
|
||||
fi
|
||||
require_valid_arch "$2"
|
||||
ARCH="$2"
|
||||
update_arch_paths
|
||||
shift 2
|
||||
|
||||
Reference in new issue
Block a user