Skip to content

[Actions] Workflows should not get stuck when the update server is unresponsive - #343

Merged
VeithMetro merged 2 commits into
masterfrom
development/actions-stuck-updating
Aug 21, 2026
Merged

VeithMetro merged 2 commits into
masterfrom
development/actions-stuck-updating

Conversation

@VeithMetro

Copy link
Copy Markdown
Contributor

No description provided.

@VeithMetro
VeithMetro marked this pull request as ready for review August 20, 2026 12:53
Copilot AI lite review requested due to automatic review settings August 20, 2026 12:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-get timeout/retry options and wraps apt-get calls in an overall timeout.
  • Introduces basic Ubuntu mirror switching logic after repeated failures.
  • Adds explicit failure handling when apt-get update / apt-get install exhaust 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.

Comment thread .github/workflows/Linux build template.yml Outdated
Comment thread .github/workflows/Linux build template.yml Outdated
@VeithMetro
VeithMetro requested a review from sebaszm August 20, 2026 13:32
MFransen69
MFransen69 previously approved these changes Aug 20, 2026
@VeithMetro
VeithMetro marked this pull request as draft August 21, 2026 08:19
@VeithMetro
VeithMetro marked this pull request as ready for review August 21, 2026 11:55
Copilot AI review requested due to automatic review settings August 21, 2026 11:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/Linux build template.yml
@VeithMetro
VeithMetro merged commit 9d22add into master Aug 21, 2026
57 checks passed
@VeithMetro
VeithMetro deleted the development/actions-stuck-updating branch August 21, 2026 12:16
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants