From 99d44fcb4d63cb846da35effffd570413c329e22 Mon Sep 17 00:00:00 2001 From: Kevin Longe <273747162+kvlonge@users.noreply.github.com> Date: Mon, 30 Nov 2026 13:27:52 +0000 Subject: [PATCH 1/2] ci: fall back across Ubuntu mirrors when installing valgrind archive.ubuntu.com stopped answering from the runners, so Install valgrind failed on every attempt and Checks, tests and replay failed before any check ran. apt now tries the runner's own mirror first, then archive.ubuntu.com, then mirrors.edge.kernel.org, and still verifies the archive's signatures. --- .github/workflows/ci.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3066a7dc1..d550b2b07 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,19 +117,22 @@ jobs: - name: Install development tools without the recorder run: uv sync --locked --no-group recorder # The instruction-count guard in check-ci runs its workloads under callgrind. - # The runner's Azure Ubuntu mirror sometimes stops resolving, so apt uses archive.ubuntu.com - # directly. apt still checks the archive's signatures. + # Ubuntu mirrors fail from the runners now and then: the Azure mirror stopped resolving, and + # archive.ubuntu.com has been unreachable. apt tries the runner's own mirror, then + # archive.ubuntu.com, then mirrors.edge.kernel.org, and still checks the archive's signatures. - name: Install valgrind run: | - { sudo grep -rlE 'mirror\+file:|azure\.archive\.ubuntu\.com' /etc/apt || true; } | xargs -r sudo sed -i -E \ - -e 's#mirror\+file:/etc/apt/apt-mirrors\.txt#http://archive.ubuntu.com/ubuntu/#g' \ - -e 's#https?://azure\.archive\.ubuntu\.com/ubuntu/?#http://archive.ubuntu.com/ubuntu/#g' - for attempt in 1 2 3; do + for mirror in runner http://archive.ubuntu.com/ubuntu/ http://mirrors.edge.kernel.org/ubuntu/; do + if [ "$mirror" != runner ]; then + { sudo grep -rlE 'mirror\+file:|https?://([a-z]+\.)?archive\.ubuntu\.com/ubuntu|mirrors\.edge\.kernel\.org' /etc/apt || true; } | + xargs -r sudo sed -i -E \ + -e "s#mirror\+file:/etc/apt/apt-mirrors\.txt#$mirror#g" \ + -e "s#https?://([a-z]+\.)?archive\.ubuntu\.com/ubuntu/?#$mirror#g" + fi if sudo apt-get update -q -o Acquire::Retries=3 && sudo apt-get install -y -q --no-install-recommends -o Acquire::Retries=3 valgrind; then exit 0 fi - sleep $((attempt * 15)) done exit 1 # One gate build serves every step: check-ci, the Rust tests, the Python tests and the replay. From 2bfdb64065044564b6a90e3370beb8d1de76c69d Mon Sep 17 00:00:00 2001 From: Kevin Longe <273747162+kvlonge@users.noreply.github.com> Date: Mon, 30 Nov 2026 13:31:37 +0000 Subject: [PATCH 2/2] ci: name an exhausted mirror fallback as an infrastructure failure When no mirror serves valgrind, the step now ends with an error annotation saying the failure is the infrastructure's, not the change's, and that the job should be rerun once a mirror answers. --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d550b2b07..8d91e9fa2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -134,6 +134,7 @@ jobs: exit 0 fi done + echo "::error title=Infrastructure failure::No Ubuntu mirror served valgrind (the runner's own, archive.ubuntu.com, mirrors.edge.kernel.org). This is an infrastructure failure, not a failure of the change; rerun the job once a mirror answers." exit 1 # One gate build serves every step: check-ci, the Rust tests, the Python tests and the replay. - name: Run static checks and tests