Skip to content

Commit fa6bd93

Browse files
AsperforMiasclaude
andauthored
ci: install Chromium without apt packages when no Ubuntu mirror resolves (#662)
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 <noreply@anthropic.com>
1 parent 59a7478 commit fa6bd93

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,13 +376,26 @@ jobs:
376376
echo "::warning::archive.ubuntu.com is unreachable; keeping the runner's default apt mirror."
377377
fi
378378
fi
379+
# Record whether any Ubuntu mirror resolves. Playwright's system
380+
# packages (mostly fonts) come from apt; the runner image already has
381+
# Chrome's libraries, so the browser itself does not need them.
382+
if getent hosts archive.ubuntu.com >/dev/null || getent hosts azure.archive.ubuntu.com >/dev/null; then
383+
echo "APT_REACHABLE=1" >> "$GITHUB_ENV"
384+
else
385+
echo "::warning::No Ubuntu mirror resolves from this runner; Playwright will install Chromium without system packages."
386+
echo "APT_REACHABLE=0" >> "$GITHUB_ENV"
387+
fi
379388
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
380389
- name: Install locked complete E2E dependencies
381390
run: |
382391
pnpm install --frozen-lockfile
383392
pnpm -C platform/feed install --frozen-lockfile
384393
npm ci --prefix platform/runtime
385-
pnpm exec playwright install --with-deps chromium
394+
if [ "$APT_REACHABLE" = "1" ]; then
395+
pnpm exec playwright install --with-deps chromium
396+
else
397+
pnpm exec playwright install chromium
398+
fi
386399
- name: Complete both profile journeys without skipped dependencies
387400
run: |
388401
python3 scripts/feed-e2e/harness.test.py

0 commit comments

Comments
 (0)