Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Backend CI: retry the ruff-unsloth wheel install on a release-asset 504 (#17130)

Daniel Han9c2ad15b2c3b
diff --git a/.github/workflows/studio-backend-ci.yml b/.github/workflows/studio-backend-ci.yml
index 66f86c82b3d..88c0442fee5 100644
--- a/.github/workflows/studio-backend-ci.yml
+++ b/.github/workflows/studio-backend-ci.yml
@@ -487,7 +487,14 @@ jobs:
echo "::error::.pre-commit-config.yaml no longer pins ruff-unsloth for ruff-format-with-kwargs"
exit 1
fi
- pip install -r "$RUNNER_TEMP/ruff-unsloth.txt"
+ # The wheel is a GitHub release asset; a 504 there is not retried by pip, so retry here.
+ for attempt in 1 2 3; do
+ if pip install -r "$RUNNER_TEMP/ruff-unsloth.txt"; then
+ break
+ fi
+ [ "$attempt" -eq 3 ] && { echo "::error::ruff-unsloth install failed after 3 attempts"; exit 1; }
+ sleep $((5 * attempt))
+ done
- name: Repo tests (CPU, auto-discovered)
env: