Skip to content

CI: Ubuntu packages with retries and a mirror fallback - #124

Merged
cgaeking merged 1 commit into
mainfrom
ci/apt-retry
Nov 11, 2026
Merged

cgaeking merged 1 commit into
mainfrom
ci/apt-retry

Conversation

@cgaeking

Copy link
Copy Markdown
Owner

The v2.10.1 release run failed twice in Backend / Build and smoke test (onedir, Linux) at "Install Tesseract":

Temporary failure resolving 'azure.archive.ubuntu.com'
E: Unable to fetch some archives

The runner's Azure apt mirror didn't resolve for over an hour. The step also ran apt-get install without apt-get update.

Change

New script .github/scripts/apt-install.sh PACKAGE...:

  1. apt-get update and apt-get install, both with Acquire::Retries=3.
  2. If that fails, it rewrites the apt sources from the runner's mirror list (mirror+file:/etc/apt/apt-mirrors.txt, azure.archive.ubuntu.com) to archive.ubuntu.com, then tries once more. Both .list and deb822 .sources files are covered. A ::warning:: notes the fallback.

Used by all three apt steps:

  • backend-exe.yml: Tesseract for the Linux smoke test.
  • desktop.yml and release.yml: Tauri's system packages.

They call bash ${{ github.workspace }}/.github/scripts/apt-install.sh, so the jobs' pwsh shell and working directories don't matter.

This doesn't fix the current v2.10.1 run, which uses the workflow at the tagged commit. Its failed job will be re-run once the mirror is back.


Generated by Claude Code

The v2.10.1 release failed twice at "Install Tesseract": the runner's
Azure apt mirror did not resolve. A shared script now updates the
package lists, retries downloads, and on failure points apt at
archive.ubuntu.com and tries once more. Used by backend-exe.yml
(Tesseract), desktop.yml and release.yml (Tauri's system packages).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013DFR9iykcexVz8C2wGtBg8

Copy link
Copy Markdown
Owner Author

"Build and smoke test (onedir, Linux)" failed in the Install Tesseract step. That failure did not come from this PR. The new script ran as intended: the first attempt failed, it printed the warning, then it switched to archive.ubuntu.com. The runner could not resolve that host either (Temporary failure resolving 'archive.ubuntu.com'), so DNS on GitHub's Ubuntu runner was down for the whole run. No apt setting can work around that. I have re-run the failed job once.


Generated by Claude Code

@cgaeking
cgaeking merged commit c913017 into main Nov 11, 2026
36 of 38 checks passed
@cgaeking
cgaeking deleted the ci/apt-retry branch November 11, 2026 17:23
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.

2 participants