ci: bound the apt install and prefer the canonical Ubuntu archive - #81
Merged
Conversation
The Install system dependencies step had no timeout. On 2026-08-19 the Azure apt mirror failed, and the step ran for over an hour on main before I cancelled it. The same mirror fault stopped the paper build in openadapt-flow on the same day. The hosted runner resolves its mirror through /etc/apt/apt-mirrors.txt, which points at azure.archive.ubuntu.com. apt does fall back to the canonical archive, but it spends the whole budget first. Point the file at the canonical archive before apt-get update, retry update three times with backoff, and fail with a clear message instead of a silent hang. The step also gets a 10 minute bound. The package list is unchanged. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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 problem
Install system dependencieshas notimeout-minutes. On 2026-08-19 it ran for over an hour onmain(run32290540907, commit7c83ba2) before I cancelled it. Every earliermainrun of this workflow had succeeded, so this is an environment fault meeting an unbounded step.The same Azure apt mirror fault stopped the paper build in
openadapt-flowon the same day (fixed there by openadapt-flow#374).The change
The hosted runner resolves its Ubuntu mirror through
/etc/apt/apt-mirrors.txt, which points atazure.archive.ubuntu.com. apt does eventually fall back to the canonical archive, but it spends the whole budget getting there. So:apt-mirrors.txtathttp://archive.ubuntu.com/ubuntubeforeapt-get update, best-effort;apt-get updatethree times with backoff;The package list is unchanged.
Evidence this works
The identical change in
openadapt-flowtook the TeX install from a 10 minute timeout to 83 seconds on the next run.🤖 Generated with Claude Code