Skip to content

Commit 59a7478

Browse files
AsperforMiasclaude
andauthored
ci: fall back to the runner's apt mirror when archive.ubuntu.com is unreachable (#661)
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 <noreply@anthropic.com>
1 parent c6b3c5e commit 59a7478

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,18 @@ jobs:
363363
with:
364364
go-version: "1.23.x"
365365
- name: Use the official Ubuntu mirror with bounded downloads
366-
# The runner's Azure mirror can stall Playwright system dependencies.
367-
# Keep signature verification and the separate security mirror intact.
366+
# The runner's Azure mirror can stall Playwright system dependencies,
367+
# so prefer the official mirror, but only when the runner can reach it:
368+
# on 2026-11-11 archive.ubuntu.com stopped resolving from runners and
369+
# forcing it failed every E2E job. Keep signature verification and the
370+
# separate security mirror intact.
368371
run: |
369372
if [ -f /etc/apt/apt-mirrors.txt ]; then
370-
printf '%s\n' 'https://archive.ubuntu.com/ubuntu' | sudo tee /etc/apt/apt-mirrors.txt >/dev/null
373+
if curl -fsSI --max-time 15 https://archive.ubuntu.com/ubuntu/dists/ >/dev/null; then
374+
printf '%s\n' 'https://archive.ubuntu.com/ubuntu' | sudo tee /etc/apt/apt-mirrors.txt >/dev/null
375+
else
376+
echo "::warning::archive.ubuntu.com is unreachable; keeping the runner's default apt mirror."
377+
fi
371378
fi
372379
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
373380
- name: Install locked complete E2E dependencies

0 commit comments

Comments
 (0)