Fail fast and retry when apt hangs installing libvips - #2227
Merged
Conversation
The Install libvips step has twice hung for 40+ minutes on a wedged apt mirror (two shards each on 2026-08-18 and 2026-08-19), forcing a manual cancel and rerun. Bound each apt command with a timeout and retry up to three times, with a 5-minute ceiling on the whole step. Co-Authored-By: Claude Fable 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.
Summary
The "Install libvips" step in verify.yml has hung indefinitely on a wedged apt mirror twice in two days (2026-08-18 run 32157036515 and 2026-08-19 run 32275921605, two shards each time), sitting at 40+ minutes until manually cancelled and rerun while every other shard passed in under 5 minutes.
This bounds the step so mirror trouble self-heals instead of wedging the job:
apt-get update/apt-get installinvocation runs under a 90-secondtimeoutwithAcquire::Retries=3and a 15-second HTTP timeouttimeout-minutes: 5on the step as a hard ceiling, so the worst case is a fast, retryable failure rather than a silent hangTesting
Not testable locally; the happy path is unchanged (
apt-get update && apt-get install libvips42) and will be exercised by this PR's own CI run.🤖 Generated with Claude Code