Skip to content

CI: apt retries a failed download 10 times - #24

Merged
martin-mat merged 1 commit into
mainfrom
apt-retries
Nov 17, 2026
Merged

martin-mat merged 1 commit into
mainfrom
apt-retries

Conversation

@martin-mat

@martin-mat martin-mat commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

The problem

The nightly emulator run failed on 17 November (run 44067855272), and again when re-run. Launchpad's PPA for the Atari ST cross-compiler (ppa:vriviere/ppa) answered 503 Service Unavailable for one package, and apt-get install exited with code 100. apt had already retried that package 3 times, its default. The same commit passed every job ten hours earlier, and testing the PPA by hand gave a 503 on about one request in three.

The change

Every apt-get update and apt-get install in build.yml, test.yml and emulators.yml now passes -o Acquire::Retries=10. apt 2.8 waits longer between tries, up to 30 s, so a failing download gets about three minutes before the job fails. This also covers Ubuntu's own mirrors, not just Launchpad.

Nothing else changes. If every download succeeds first time, the jobs behave exactly as before.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated build, emulator, and test workflows to retry package updates and installations up to 10 times when they fail.

The nightly emulator run failed twice on 17 November when Launchpad's PPA
(the ST's cross-mint) answered 503 for one package, after apt's default 3
tries. Every apt-get update and install now takes Acquire::Retries=10;
apt waits longer between tries (up to 30 s), about three minutes in all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

APT update and installation commands in the build, emulator, and portable test workflows now configure up to 10 retries. Installed packages and subsequent workflow steps are unchanged.

Changes: CI package setup

Layer / File(s) Summary
Configure retries for package setup
.github/workflows/build.yml, .github/workflows/emulators.yml, .github/workflows/test.yml
APT update and installation commands now set Acquire::Retries=10. The workflows retain their existing packages and subsequent steps.

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Other

Merge Risk: Minimal · up to 1e9b6

This change makes CI package setup retry failed downloads up to 10 times, which should reduce flaky failures from transient mirror or PPA errors. Behavior is unchanged when downloads succeed on the first attempt. No merge-blocking risk is apparent.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: apt is configured to retry a failed download up to 10 times in CI. The raw summary confirms that build.yml, emulators.yml, and test.yml now pass Acquire::Retries=10 to…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: apt is configured to retry a failed download up to 10 times in CI. The raw summary confirms that build.yml, emulators.yml, and test.yml now pass Acquire::Retries=10 to apt-get update and install. The PR objectives describe the same change, made in response to Launchpad 503 failures. The title is specific and accurate, and it does not describe anything absent from the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 1df918b and 1e9b61c.

Files selected for processing: 3

  • .github/workflows/build.yml
  • .github/workflows/emulators.yml
  • .github/workflows/test.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@martin-mat
martin-mat merged commit 2948cd9 into main Nov 17, 2026
30 checks passed
@martin-mat
martin-mat deleted the apt-retries branch November 17, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant