Skip to content

CI: give setup-uv a pinned one-entry manifest instead of fetching 1.5 MB - #67

Merged
Gajesh2007 merged 1 commit into
mainfrom
ci/setup-uv-inline-manifest
Nov 14, 2026
Merged

Gajesh2007 merged 1 commit into
mainfrom
ci/setup-uv-inline-manifest

Conversation

@Gajesh2007

Copy link
Copy Markdown
Member

Problem

#64's retry ran on main c8109cf (build-wheel) and both tries failed the same way, 20 s apart:

setup-uv: outcome=failure (5127 ms)  ->  retry: outcome=failure (5124 ms)

setup-uv v8.2.0 fetches its 1.5 MB version manifest (raw.githubusercontent.com/astral-sh/versions/main/v1/uv.ndjson) with a hard 5-second AbortSignal that also covers the body. Through a Darkbloom sandbox's egress proxy:

  • a successful fetch takes about 3.3 s;
  • on slower hosts it consistently exceeds 5 s, so a retry fails too.

Change

  • Pin uv to 0.13.8, the current latest (2026-11-12).
  • Pass setup-uv a one-entry manifest inline as a data: URL. It contains just the aarch64-apple-darwin artifact from the official manifest, so nothing is fetched. The setup action runs only in the macOS jobs.
  • Set checksum to the official manifest's SHA-256 for that archive (6b71028a…). I verified that the Astral mirror serves exactly that archive (14,375,545 bytes).
  • The archive download keeps @actions/tool-cache's own retries and has no 5-second limit. The retry-once step from CI: retry the uv setup once when its download times out #64 stays.
  • Bumping uv later means updating the version, checksum and manifest together; the comment says so.

Checks

  • Node's fetch (undici, which setup-uv uses) reads the data: URL. Per the Fetch standard, data: URLs are resolved without the network or proxy dispatcher.
  • This PR's CI runs setup-uv in every macOS job behind the proxy.

🤖 Generated with Claude Code

#64's retry ran on main c8109cf and both tries failed the same way:
setup-uv fetches its 1.5 MB version manifest from raw.githubusercontent.com
with a 5-second limit, and through a Darkbloom sandbox's egress proxy that
takes about 3.3 s when it works and over 5 s on slower hosts, so a retry
20 s later fails too. Pin uv 0.13.8 and pass setup-uv a one-entry manifest
inline as a data: URL (nothing to fetch), with the archive's SHA-256 from
the official manifest as the checksum (the Astral mirror serves exactly
that archive). The archive download keeps the tool cache's own retries and
no 5-second limit; the retry-once step stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gajesh2007
Gajesh2007 marked this pull request as ready for review November 14, 2026 06:36
@Gajesh2007
Gajesh2007 merged commit 68ccd6e into main Nov 14, 2026
22 checks passed
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.

1 participant