ci: add APT retries to prevent transient mirror sync failures#679
Merged
tillkamppeter merged 5 commits intoOpenPrinting:masterfrom Mar 9, 2026
Merged
ci: add APT retries to prevent transient mirror sync failures#679tillkamppeter merged 5 commits intoOpenPrinting:masterfrom
tillkamppeter merged 5 commits intoOpenPrinting:masterfrom
Conversation
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.
Overview
This is a quick stability patch for the newly implemented multi-architecture CI workflow. It resolves a known, transient network issue with the Ubuntu package servers that can cause the emulated QEMU runners (
armv7andriscv64) to randomly fail during the dependency installation phase.The Issue
Occasionally, the
ports.ubuntu.comservers perform a live mirror sync at the exact moment the GitHub Action triggersapt-get update. This causesaptto fetch a package list with a mismatched file size, throwing the following fatal error and halting the CI:E: Failed to fetch http://ports.ubuntu.com/.../Packages.gz File has unexpected size (618582 != 618585). Mirror sync in progress?The Fix
By appending
-o Acquire::Retries=3to theapt-get updatecommands in both the native and emulated blocks,aptwill now gracefully back off and retry the connection instead of immediately crashing the build. This makes the CI significantly more resilient to upstream server hiccups.