Repository navigation
CI: Ubuntu packages with retries and a mirror fallback - #124
Merged
Merged
Conversation
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
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 Generated by Claude Code |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The v2.10.1 release run failed twice in Backend / Build and smoke test (onedir, Linux) at "Install Tesseract":
The runner's Azure apt mirror didn't resolve for over an hour. The step also ran
apt-get installwithoutapt-get update.Change
New script
.github/scripts/apt-install.sh PACKAGE...:apt-get updateandapt-get install, both withAcquire::Retries=3.mirror+file:/etc/apt/apt-mirrors.txt,azure.archive.ubuntu.com) toarchive.ubuntu.com, then tries once more. Both.listand deb822.sourcesfiles are covered. A::warning::notes the fallback.Used by all three apt steps:
backend-exe.yml: Tesseract for the Linux smoke test.desktop.ymlandrelease.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