From 364efdf409cfc7ea1a400860be4988a93f4ef262 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Thu, 4 Jun 2026 09:17:34 -0700 Subject: [PATCH] fix release pypi retry loop --- bin/release_dev_stack.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/release_dev_stack.sh b/bin/release_dev_stack.sh index 8c3b2a0f..bc1d659a 100755 --- a/bin/release_dev_stack.sh +++ b/bin/release_dev_stack.sh @@ -197,8 +197,14 @@ PY tmpdir="$(mktemp -d)" uv --no-cache venv "${tmpdir}/venv" --python 3.13 >/dev/null attempts=0 - until uv --no-cache pip install --dry-run --no-deps --python "${tmpdir}/venv/bin/python" "${package}==${version}" >/dev/null - do + while true; do + set +e + uv --no-cache pip install --dry-run --no-deps --python "${tmpdir}/venv/bin/python" "${package}==${version}" >/dev/null + status="$?" + set -e + if [[ "$status" -eq 0 ]]; then + break + fi attempts=$((attempts + 1)) if [[ "$attempts" -ge 30 ]]; then rm -rf "$tmpdir"