From e08e0e070346efe241ae1d6e755eb04534888eca Mon Sep 17 00:00:00 2001 From: OrcaWin Date: Wed, 7 Oct 2026 14:40:42 -0700 Subject: [PATCH] ci(e2e): move apt off the Azure mirror on runner images that use a mirror list (#26335) Ubuntu 24.04 runner images resolve apt sources through /etc/apt/apt-mirrors.txt, so rewriting only the source lists left package downloads on azure.archive.ubuntu.com, which intermittently fails ('Ign:' on every package). Rewrite the mirror list too, and retry the install once with --fix-missing. Co-authored-by: m4air --- .github/workflows/e2e.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 9bebf8de638..2ac4365dcfb 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -123,7 +123,8 @@ jobs: ORCA_E2E_APT_PACKAGES: build-essential python3 run: &install_e2e_tools | read -r -a packages <<< "$ORCA_E2E_APT_PACKAGES" - for source in /etc/apt/sources.list /etc/apt/sources.list.d/*.list /etc/apt/sources.list.d/*.sources; do + # Why apt-mirrors.txt: runner images resolve mirror+file: sources through it, so editing the lists alone leaves Azure in use. + for source in /etc/apt/apt-mirrors.txt /etc/apt/sources.list /etc/apt/sources.list.d/*.list /etc/apt/sources.list.d/*.sources; do if [ -f "$source" ]; then sudo sed -i 's|https*://azure\.archive\.ubuntu\.com/ubuntu|https://archive.ubuntu.com/ubuntu|g' "$source" fi @@ -134,7 +135,7 @@ jobs: Acquire::Retries "1"; APTCONF timeout 120 sudo apt-get update - timeout 300 sudo apt-get install -y "${packages[@]}" + timeout 300 sudo apt-get install -y "${packages[@]}" || timeout 300 sudo apt-get install -y --fix-missing "${packages[@]}" - uses: ./.github/actions/install-node-dependencies with: