From 3de600c56e0653a0619037092b1cf2d14b861c77 Mon Sep 17 00:00:00 2001 From: AsperforMias Date: Wed, 11 Nov 2026 08:23:46 -0800 Subject: [PATCH] ci: install Chromium without apt packages when no Ubuntu mirror resolves Since 14:00 UTC on 2026-11-11 no Ubuntu mirror (archive, azure.archive, security) resolves from GitHub runners, so `playwright install --with-deps` fails and every deploy CI run has failed. The packages it cannot fetch are fonts; the runner image already ships Chrome's libraries. Probe the mirrors once and, when none resolves, install Chromium alone with a warning instead of failing the release. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57f846cf..8b2f6162 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -376,13 +376,26 @@ jobs: echo "::warning::archive.ubuntu.com is unreachable; keeping the runner's default apt mirror." fi fi + # Record whether any Ubuntu mirror resolves. Playwright's system + # packages (mostly fonts) come from apt; the runner image already has + # Chrome's libraries, so the browser itself does not need them. + if getent hosts archive.ubuntu.com >/dev/null || getent hosts azure.archive.ubuntu.com >/dev/null; then + echo "APT_REACHABLE=1" >> "$GITHUB_ENV" + else + echo "::warning::No Ubuntu mirror resolves from this runner; Playwright will install Chromium without system packages." + echo "APT_REACHABLE=0" >> "$GITHUB_ENV" + 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 run: | pnpm install --frozen-lockfile pnpm -C platform/feed install --frozen-lockfile npm ci --prefix platform/runtime - pnpm exec playwright install --with-deps chromium + if [ "$APT_REACHABLE" = "1" ]; then + pnpm exec playwright install --with-deps chromium + else + pnpm exec playwright install chromium + fi - name: Complete both profile journeys without skipped dependencies run: | python3 scripts/feed-e2e/harness.test.py