Skip to content

CI: retry the uv setup once when its download times out - #64

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

Gajesh2007 merged 1 commit into
mainfrom
ci/retry-setup-uv

Conversation

@Gajesh2007

Copy link
Copy Markdown
Member

Problem

astral-sh/setup-uv (v8.2.0, pinned) aborts its download after about five seconds. Behind a Darkbloom sandbox's egress proxy the connection sometimes takes longer. On 2026-11-14:

Each failure made the whole Fork Tests run red, because the aggregating job reported a missing shard. Native jobs have no hosted fallback. Re-running the failed jobs passed both times.

Change

In the composite setup action:

  • The first setup-uv runs with continue-on-error.
  • Only if it failed, the action waits 15 seconds and runs the same pinned setup-uv with the same inputs once more.
  • A second failure fails the step as before.

No permission or pin changes. The rest of the setup action is unchanged.

Checks

  • actionlint shows only the existing fork-tests.yml shellcheck warnings; it does not lint composite actions.
  • continue-on-error and steps.<id>.outcome are supported in composite action steps.
  • This PR's own CI exercises the action: 5 Python shards plus wheel and C++ builds.

🤖 Generated with Claude Code

astral-sh/setup-uv aborts its download after about five seconds. Behind a
Darkbloom sandbox's egress proxy the connection sometimes takes longer: on
2026-11-14 python-cpu (2) of #63 and python-cpu (0) of main 96877ea failed
in the setup action ("The operation was aborted due to timeout", 5.1 s),
which failed the whole Fork Tests run; native jobs have no hosted fallback.
Let the first try fail without failing the action, and only then wait 15
seconds and run the same pinned setup-uv once more. A second failure fails
the step as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gajesh2007
Gajesh2007 marked this pull request as ready for review November 14, 2026 05:23
@Gajesh2007
Gajesh2007 merged commit fac02a3 into main Nov 14, 2026
22 checks passed
Gajesh2007 added a commit that referenced this pull request Nov 14, 2026
… MB (#67)

#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>
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