[CI] Restore SMG e2e on 2-gpu-h100 / 4-gpu-h100 runners (#24222)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Kangyan-Zhou
2026-05-01 23:55:20 -07:00
committed by GitHub
co-authored by Claude Opus 4.7
parent b939d5410f
commit 2e72a36420
16 changed files with 610 additions and 383 deletions
@@ -10,13 +10,29 @@ set -euxo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
GATEWAY_APT_PACKAGES=(libssl-dev pkg-config redis-server)
if command -v sudo >/dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y "${GATEWAY_APT_PACKAGES[@]}"
else
apt-get update
apt-get install -y "${GATEWAY_APT_PACKAGES[@]}"
fi
APT_OPTS=(
-y
-o "Acquire::Retries=5"
-o "Acquire::http::Timeout=30"
-o "Acquire::https::Timeout=30"
)
SUDO=""
command -v sudo >/dev/null 2>&1 && SUDO="sudo"
# GH-hosted runners' Azure Ubuntu mirrors flake periodically. Retry the
# whole install with backoff so we don't fail the whole CI on a 1-min
# DNS hiccup at apt-mirrors.txt → azure.archive.ubuntu.com.
for attempt in 1 2 3 4 5; do
if $SUDO apt-get update "${APT_OPTS[@]}" \
&& $SUDO apt-get install "${APT_OPTS[@]}" "${GATEWAY_APT_PACKAGES[@]}"; then
break
fi
if [ "$attempt" = 5 ]; then
echo "apt-get install failed after 5 attempts; giving up." >&2
exit 1
fi
sleep $((attempt * 15))
done
bash "${SCRIPT_DIR}/../utils/install_rust_protoc.sh"