Repository navigation
Keep only Ubuntu's own archive in CI's apt mirrors, dropping AWS's regional mirror too - #6430
Merged
Merged
Conversation
…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
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.comfirst instead, and on those runnersplaywright install --with-depsfetched its 126 MB at 62–69 kB/s: 30–34 minutes on the threetestjobs on image 20261111.127.1 today that finished, and two more cancelled after 12 and 25 minutes, against 4–36 s fromarchive.ubuntu.comon images 20261111.370.1 and 20261116.376.1. The rule now deletes any regional host underarchive.ubuntu.com, which leaves those images the same 93-byte list (archive.ubuntu.com, thensecurity.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.shwrites for each case (Azure, AWS, neither); pre-commit, actionlint included, passes. Whether this run lands on an AWS image is chance; its setup log'sMirrorlist [93 B]line shows the list either way. publish-site runs only onmain, so its first run after merge is the first to exercise the new step there.