Skip to content

[ty] Bound apt retries in instrumented CodSpeed jobs - #27894

Merged
carljm merged 1 commit into
mainfrom
cjm/codspeed-apt-fallback
Aug 19, 2026
Merged

carljm merged 1 commit into
mainfrom
cjm/codspeed-apt-fallback

Conversation

@carljm

@carljm carljm commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

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.

@carljm carljm added the ty The ty type checker label Aug 19, 2026
@carljm
carljm requested review from MichaReiser, ntBre and zanieb August 19, 2026 16:35
@astral-sh-bot

astral-sh-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

@carljm
carljm marked this pull request as ready for review August 19, 2026 16:52
@carljm
carljm merged commit 1b474c6 into main Aug 19, 2026
57 checks passed
@carljm
carljm deleted the cjm/codspeed-apt-fallback branch August 19, 2026 16:56
@zaniebot

Copy link
Copy Markdown
Contributor

Upstream tracking issue: actions/runner-images#14594

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty The ty type checker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants