[Actions] Workflows should not get stuck when the update server is unresponsive - #343
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Linux GitHub Actions workflow to make apt-get update / apt-get install less likely to hang indefinitely when Ubuntu package servers are slow or unresponsive, by adding explicit timeouts, retries, and mirror switching.
Changes:
- Adds
apt-gettimeout/retry options and wrapsapt-getcalls in an overalltimeout. - Introduces basic Ubuntu mirror switching logic after repeated failures.
- Adds explicit failure handling when
apt-get update/apt-get installexhaust retries.
Suppressed comments (1)
.github/workflows/Linux build template.yml:99
- The failure message says "after trying 3 Ubuntu mirrors", but this step only cycles through the current/default mirror plus the entries in
MIRRORS. Making the count dynamic avoids the message becoming inaccurate if the mirror list changes.
if [ "$installed" -ne 1 ]; then
echo "apt-get install failed after trying 3 Ubuntu mirrors"
exit 1
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
MFransen69
previously approved these changes
Aug 20, 2026
VeithMetro
marked this pull request as draft
August 21, 2026 08:19
sebaszm
approved these changes
Aug 21, 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
No description provided.