Skip to content

Keep only Ubuntu's own archive in CI's apt mirrors, dropping AWS's regional mirror too - #6430

Merged
leaf-agent merged 2 commits into
mainfrom
ci-canonical-apt-mirror
Nov 18, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
ci-canonical-apt-mirror

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

CI's setup step deleted only Azure's apt mirror from the runner's mirror list. Since actions/runner-images#15335 (2026-11-17) some Ubuntu 24.04 images are built on AWS and list http://us-east-2.ec2.archive.ubuntu.com first instead, and on those runners playwright install --with-deps fetched its 126 MB at 62–69 kB/s: 30–34 minutes on the three test jobs on image 20261111.127.1 today that finished, and two more cancelled after 12 and 25 minutes, against 4–36 s from archive.ubuntu.com on images 20261111.370.1 and 20261116.376.1. The rule now deletes any regional host under archive.ubuntu.com, which leaves those images the same 93-byte list (archive.ubuntu.com, then security.ubuntu.com) the fast images already had.

The rule moves into its own action, .github/actions/ubuntu-archive, which the setup action and publish-site's deploy job both use. The deploy job installs Chromium's packages without the setup action, so it kept every regional mirror: on AWS images today that install took 232 s (20261116.133.1) and 479 s (20261111.127.1), against about 20 s on 20261111.370.1.

Max asked why #6408's CI hung. Checked: the rule against the list configure-apt-sources.sh writes for each case (Azure, AWS, neither); pre-commit, actionlint included, passes. Whether this run lands on an AWS image is chance; its setup log's Mirrorlist [93 B] line shows the list either way. publish-site runs only on main, so its first run after merge is the first to exercise the new step there.

This was written by Claude Code on behalf of max-sixty

…gional mirror too

actions/runner-images began building Ubuntu 24.04 images on AWS
(actions/runner-images#15335, 2026-11-17), and those images list
http://us-east-2.ec2.archive.ubuntu.com first in /etc/apt/apt-mirrors.txt. The
setup step deleted only Azure's mirror, so on image 20261111.127.1 `playwright
install --with-deps` fetched its 126 MB from the EC2 mirror at 62-69 kB/s: 30-34
minutes on four test jobs on 2026-11-18 (fix-dev-tests-on-main,
box-status-handback, chart-element-comments, and focus-ring-gap twice, cancelled),
against 4-36 s from archive.ubuntu.com on images 20261111.370.1 and
20261116.376.1. The step now deletes any regional host under archive.ubuntu.com,
which leaves the 93-byte list the fast images already had.
publish-site installs Chromium's packages without the setup action, so it
still fetched them from the regional mirror. On AWS images that took 232 s
(20261116.133.1) and 479 s (20261111.127.1) on 2026-11-18, against about 20 s
from Azure's mirror on 20261111.370.1. The mirror rule moves into its own
action, which the setup action and the deploy job both use.
@leaf-agent
leaf-agent merged commit 1e8e2be into main Nov 18, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the ci-canonical-apt-mirror branch November 18, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants