Skip to content

Try APT fallback mirrors sooner in ARMv7 setup - #21206

Merged
zanieb merged 1 commit into
mainfrom
zb/armv7-apt-mirror-fallback
Aug 18, 2026
Merged

zanieb merged 1 commit into
mainfrom
zb/armv7-apt-mirror-fallback

Conversation

@astral-automations-bot

Copy link
Copy Markdown
Contributor

The ARMv7 development build can exhaust its fifteen-minute limit in apt-get update when the Azure Ubuntu mirror stalls. The main archive can serve the release metadata, but subsequent package-index downloads still try the preferred mirror. The fallback settings added in #21198 only apply to the separate Linux cargo-test runner.

Apply the same zero-retry policy and ten-second HTTP connection and data timeouts before updating package indexes and installing the ARMv7 cross-compiler. Preserve the runner's mirror priorities and print the configured fallbacks. Other build jobs and runner selection are unchanged.

Related to astral-sh#542.

@zanieb
zanieb enabled auto-merge (squash) August 18, 2026 21:46
@zanieb
zanieb merged commit ad7dc5a into main Aug 18, 2026
53 of 55 checks passed
@zanieb
zanieb deleted the zb/armv7-apt-mirror-fallback branch August 18, 2026 22:02
carljm added a commit to astral-sh/ruff that referenced this pull request Aug 19, 2026
CodSpeed's dependency installation can stall on an unhealthy apt mirror.
Apply the mitigation from astral-sh/uv#21206 so
apt gives up on failed downloads sooner and can reach its configured
fallback mirrors.

Immediately before CodSpeed runs, disable apt download retries and set
ten-second HTTP and HTTPS timeouts. Apply this to the Ruff instrumented
job and the simulation entries in the ty instrumented matrix. Leave
build-only, memory-only, and walltime jobs unchanged.

This does not change CodSpeed's cache detection. If every configured
mirror is unavailable, installation may fail sooner rather than succeed.

## Test plan

No new mdtests are needed for this workflow-only change. Validate the
workflow's formatting, schema, security checks, and shell syntax. CI
exercises the Ruff instrumented job and ty simulation matrix with the
new apt configuration.
@zaniebot

Copy link
Copy Markdown
Contributor

Upstream tracking issue: actions/runner-images#14594

zanieb added a commit that referenced this pull request Oct 7, 2026
ARMv7 development builds can stall in `apt-get update` when an Ubuntu
mirror fails. The runner image's `zz-retries` configuration loads after
the `80-retries` file added by #21206, overriding its
zero-retry and ten-second timeout settings.

Write those settings to `zz-uv-retries`, which loads after the runner's
`zz-retries`, so failed downloads can try the next mirror without an
extra retry.

Observed in [this CI
job](https://github.com/astral-sh/uv/actions/runs/37674299441/job/112974836310).

Co-authored-by: Zanie Blue <[email protected]>

This branch was previously deployed

1 inactive deployment
automations — 827c72c3 Deployed Aug 18, 2026 by astral-automations-bot[bot] via review / security review #44956
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