You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): wait for PyPI simple index before Docker build
JSON API readiness is not enough for pip inside the image build; also
verify simple-index listing and wheel URL reachability, and retry pip
install in the Dockerfile when CDN edges lag (#217).
Co-authored-by: Cursor <cursoragent@cursor.com>
if [ -n "${wheel_url}" ] && curl -sfI "$wheel_url" >/dev/null; then
85
+
wheel_ok=1
86
+
fi
87
+
if [ "$json_ok" -eq 1 ] && [ "$simple_ok" -eq 1 ] && [ "$wheel_ok" -eq 1 ]; then
88
+
echo "PyPI JSON + simple index + wheel URL have ${PACKAGE}==${VERSION}"
69
89
exit 0
70
90
fi
71
-
echo "::warning::PyPI not ready for ${PACKAGE}==${VERSION} (attempt ${attempt}/${attempts}); retrying in ${delay}s"
91
+
echo "::warning::PyPI not ready for ${PACKAGE}==${VERSION} (json=${json_ok} simple=${simple_ok} wheel=${wheel_ok}; attempt ${attempt}/${attempts}); retrying in ${delay}s"
72
92
sleep "$delay"
73
93
done
74
-
echo "::error::Timed out waiting for ${PACKAGE}==${VERSION} on PyPI"
94
+
echo "::error::Timed out waiting for ${PACKAGE}==${VERSION} on PyPI (JSON + simple index + wheel)"
0 commit comments