fix(ci): allow complete fallback package index downloads

This commit is contained in:
Neil
2026-11-11 07:04:33 -08:00
parent ac8fe9a9e1
commit f2c098bbf9
@@ -8,8 +8,8 @@ fi
bash "$(dirname "${BASH_SOURCE[0]}")/prepare-ubuntu-apt.sh"
# Both routes and diagnostics fit the previous seven-minute package setup budget.
if timeout 45 sudo apt-get update && timeout 120 sudo apt-get install -y "$@"; then
# Eight minutes of command allowances leave room for tests within the job deadline.
if timeout 45 sudo apt-get update -o Acquire::Languages=none && timeout 120 sudo apt-get install -y "$@"; then
exit 0
fi
@@ -31,7 +31,7 @@ done
# A timed-out install may leave a transaction that apt cannot resume itself.
timeout 30 sudo dpkg --configure -a || true
# Unrelated repositories may fail refresh; apt still verifies the requested packages.
if ! timeout 60 sudo apt-get update; then
if ! timeout 120 sudo apt-get update -o Acquire::Languages=none; then
echo 'Index refresh incomplete; attempting the requested packages with available authenticated indexes.' >&2
fi
timeout 150 sudo apt-get install -y "$@"