Skip to content

Commit 3ca4d8f

Browse files
akolleggerclaude
andcommitted
fix(ci): retry PyPI install in verify step to handle indexing delay
PyPI can take 30-90s to index a newly uploaded wheel. The smoke test was running immediately after publish completed and hitting the window before indexing finished. Added a retry loop (5 attempts, 30s backoff) matching the same pattern already used for crates.io. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 34081c3 commit 3ca4d8f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,5 +239,9 @@ jobs:
239239
env:
240240
RELEASE_VERSION: ${{ needs.validate.outputs.version }}
241241
run: |
242-
python -m pip install "relateby-pattern==${RELEASE_VERSION}"
242+
for i in 1 2 3 4 5; do
243+
python -m pip install "relateby-pattern==${RELEASE_VERSION}" && break
244+
echo "Attempt $i/5: PyPI not yet indexed, retrying in 30s..."
245+
sleep 30
246+
done
243247
python scripts/release/python-smoke.py --expect-distribution relateby-pattern

0 commit comments

Comments
 (0)