From be190a2869d2bed4f946d4f8782b576b7a0cfd7e Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Wed, 25 Nov 2026 17:23:27 +0000 Subject: [PATCH] fix(ci): retry the pinned stack install in wiki-currency PyPI's CDN served this runner a stale index at release 2026.11.22.1, a minute after PyAutoHands' wait_for_released_stack saw the release on its own runner. Retry the exact pin with --no-cache-dir (10 attempts, 30 s apart), never falling back to an older or unpinned install. Refs PyAutoLabs/autolens_assistant#193 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/wiki-currency.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wiki-currency.yml b/.github/workflows/wiki-currency.yml index 2789d5d..9888f74 100644 --- a/.github/workflows/wiki-currency.yml +++ b/.github/workflows/wiki-currency.yml @@ -137,7 +137,19 @@ jobs: VER="${{ inputs.stack_version }}" if [ -n "$VER" ]; then echo "Installing pinned release autocti==$VER (pulls autonerves/autoarray/autofit)." - pip install "autocti==$VER" + # PyPI's CDN can serve this runner a stale index minutes after the upload + # (2026.11.22.1: PyAutoHands' wait_for_released_stack saw the release, this + # runner did not). Retry the exact pin, bypassing pip's cache; never fall + # back to an older or unpinned install (autolens_assistant#193). + for attempt in $(seq 1 10); do + pip install --no-cache-dir "autocti==$VER" && break + if [ "$attempt" -eq 10 ]; then + echo "::error::autocti==$VER not installable from PyPI after 10 attempts" + exit 1 + fi + echo "autocti==$VER not installable yet (attempt $attempt/10); retrying in 30 s" + sleep 30 + done else echo "Installing the CTI stack from the main source clones." pip install ./sources/PyAutoNerves ./sources/PyAutoFit ./sources/PyAutoArray ./sources/PyAutoCTI