From c6c398c6019c43bd0de3f19e5fd115d969561212 Mon Sep 17 00:00:00 2001 From: AsperforMias Date: Wed, 11 Nov 2026 06:48:21 -0800 Subject: [PATCH] ci: fall back to the runner's apt mirror when archive.ubuntu.com is unreachable The complete E2E job forces archive.ubuntu.com because the runner's Azure mirror sometimes stalled Playwright's system dependencies. On 2026-11-11 archive.ubuntu.com stopped resolving from GitHub runners, so forcing it failed every attempt of the deploy CI for ghfind-frontend v1.0.6. Prefer the official mirror only when it answers; otherwise keep the runner's default mirror list and leave a warning. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd5dc2c2..57f846cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -363,11 +363,18 @@ jobs: with: go-version: "1.23.x" - name: Use the official Ubuntu mirror with bounded downloads - # The runner's Azure mirror can stall Playwright system dependencies. - # Keep signature verification and the separate security mirror intact. + # The runner's Azure mirror can stall Playwright system dependencies, + # so prefer the official mirror, but only when the runner can reach it: + # on 2026-11-11 archive.ubuntu.com stopped resolving from runners and + # forcing it failed every E2E job. Keep signature verification and the + # separate security mirror intact. run: | if [ -f /etc/apt/apt-mirrors.txt ]; then - printf '%s\n' 'https://archive.ubuntu.com/ubuntu' | sudo tee /etc/apt/apt-mirrors.txt >/dev/null + if curl -fsSI --max-time 15 https://archive.ubuntu.com/ubuntu/dists/ >/dev/null; then + printf '%s\n' 'https://archive.ubuntu.com/ubuntu' | sudo tee /etc/apt/apt-mirrors.txt >/dev/null + else + echo "::warning::archive.ubuntu.com is unreachable; keeping the runner's default apt mirror." + fi fi printf '%s\n' 'Acquire::http::Timeout "30";' 'Acquire::https::Timeout "30";' 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/99-ci-downloads >/dev/null - name: Install locked complete E2E dependencies