From cc87d4595d00bc505d27f5cb4c5060b4562d7859 Mon Sep 17 00:00:00 2001 From: Gajesh Naik <26431906+Gajesh2007@users.noreply.github.com> Date: Fri, 13 Nov 2026 20:57:59 -0800 Subject: [PATCH] CI: retry the uv setup once when its download times out 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 --- .github/actions/setup/action.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 4a5f2c30ca..472405bfa7 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -88,7 +88,24 @@ runs: :: Export to all steps. >>%GITHUB_ENV% set + # setup-uv aborts its download after about five seconds. Behind a Darkbloom + # sandbox's egress proxy the connection sometimes takes longer (two Mac jobs + # on 2026-11-14 failed this way), and a native job has no hosted fallback. + # Only when the first try failed, wait and try once more. - uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 + id: setup-uv + continue-on-error: true + with: + enable-cache: false + quiet: true + + - name: Wait before the second uv setup + if: steps.setup-uv.outcome == 'failure' + shell: bash + run: sleep 15 + + - uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 + if: steps.setup-uv.outcome == 'failure' with: enable-cache: false quiet: true