Repository navigation
fix(ci): each retry of the i686 apt step takes a different mirror - #1451
Merged
Merged
Conversation
tmp-apt-mirror.yml forces the first attempts to fail, to prove the other two mirrors; it goes before this leaves draft.
…og names the host
DrunkOnJava
marked this pull request as ready for review
November 5, 2026 15:30
… only the download is bounded tightly tmp-apt-mirror.yml is the same script with the first attempts forced to fail; it goes before this lands.
DrunkOnJava
marked this pull request as draft
November 5, 2026 15:33
DrunkOnJava
marked this pull request as ready for review
November 5, 2026 15:56
DrunkOnJava
enabled auto-merge (squash)
November 5, 2026 16:08
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.
Summary
The i686 job's apt step retried three times against the same mirror list. On 2026-11-05 the Azure mirror crawled at 30 to 40 kB/s, never idle long enough for apt's own timeout or failover, so all three attempts ran to their limit, twice:
mainwent red at d5de57b (run 42041502131) and #1441's update merge failed the same way (run 42053988520, which passed when the failed job was rerun). No code was at fault.Each retry now leads with a different mirror and keeps the others behind it: attempt 1 uses the runner's own list, attempt 2
archive.ubuntu.com, attempt 3mirrors.edge.kernel.org. Three failed attempts still fail the job.Changes
One step of
.github/workflows/ci.yml:update, 120 s for--download-only). The install then runs from the local files with its own 300 s bound, so a kill never lands in dpkg. Worst case fits the step's 15 minutes./etc/apt/apt-mirrors.txt, since a retry could then not change mirror.Testing
Run 42056218076, on
ubuntu-24.04(the job's image), ran a generated copy of this script with the first attempts forced to fail by one added condition, and agcc -m32link added. It has since been removed from the branch.Get:lines by hostgcc -m32archive.ubuntu.commirrors.edge.kernel.orgapt did not finish on three mirrorsEach also has 3 lines from
packages.microsoft.com, which is not in the mirror list and is unchanged. The real step runs in this PR's own i686 job.Not measured
timeoutkills apt mid-download. Run 42041502131 did show that on the old step: attempts 2 and 3 started cleanly after the kill and carried the partial download over.packages.microsoft.comstalling. It is fetched in everyupdateand is outside the rotation; neither run shows that.Scope
CI only, so no changelog fragment, no Measure and no gates verdict. Other template sections N/A.