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.

Studio CLI tests: keep the --secure re-exec tests off the cloudflared download (#17129)

Daniel Han028cae92a4b6
diff --git a/unsloth_cli/tests/test_studio_cloudflare_flag.py b/unsloth_cli/tests/test_studio_cloudflare_flag.py
index b51c0fef2ba..34edcee4d75 100644
--- a/unsloth_cli/tests/test_studio_cloudflare_flag.py
+++ b/unsloth_cli/tests/test_studio_cloudflare_flag.py
@@ -22,6 +22,12 @@ def _studio():
return _studio_mod
[email protected](autouse = True)
+def _no_cloudflared_download(monkeypatch):
+ """Avoid --secure's real cloudflared download probe (flaky on uncached runners)."""
+ monkeypatch.setattr(_studio(), "_tunnel_binary_confirmed_unavailable", lambda: False)
+
+
_BASE = ["--model", "unsloth/Qwen3-1.7B-GGUF"]
diff --git a/unsloth_cli/tests/test_studio_secure_flag.py b/unsloth_cli/tests/test_studio_secure_flag.py
index 9eec3091860..ff6b4040571 100644
--- a/unsloth_cli/tests/test_studio_secure_flag.py
+++ b/unsloth_cli/tests/test_studio_secure_flag.py
@@ -21,6 +21,12 @@ def _studio():
return _studio_mod
[email protected](autouse = True)
+def _no_cloudflared_download(monkeypatch):
+ """Avoid --secure's real cloudflared download probe (flaky on uncached runners)."""
+ monkeypatch.setattr(_studio(), "_tunnel_binary_confirmed_unavailable", lambda: False)
+
+
_BASE = ["--model", "unsloth/Qwen3-1.7B-GGUF"]