Skip to content

Retry apt package installs in CI - #7

Merged
Commanderx-code merged 1 commit into
mainfrom
ci/apt-retry
Sep 24, 2026
Merged

Commanderx-code merged 1 commit into
mainfrom
ci/apt-retry

Conversation

@Commanderx-code

Copy link
Copy Markdown
Owner

Problem

install-deb (ubuntu:24.04) failed on PR #6 and on the v0.7.0 tag run with 404 Not Found for libexpat1 from security.ubuntu.com. The mirror's index briefly pointed at a package file that had just been replaced. Both times a manual rerun passed. The app package itself was never involved.

Fix

Every apt-get step (tests, build, install-deb) now runs apt-get update && apt-get install up to three times, 30 seconds apart. A 404 needs a fresh index, which a plain download retry wouldn't get.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FV3o3TZ5zZ2ACWD2S7EZdc

Ubuntu's security mirror twice returned 404 for a package that had just
been replaced (libexpat1), failing the install-deb job for unrelated
reasons. Each apt step now refreshes the index and retries up to three
times, 30 seconds apart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FV3o3TZ5zZ2ACWD2S7EZdc
@Commanderx-code
Commanderx-code merged commit e7163bb into main Sep 24, 2026
7 checks passed
@Commanderx-code
Commanderx-code deleted the ci/apt-retry branch September 24, 2026 17:12
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