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: fix two backend CI test failures (capability dict + MTP recovery race) (#6464)

Daniel Hanb552f2fbc801
diff --git a/studio/backend/tests/test_safetensors_capability_advertise.py b/studio/backend/tests/test_safetensors_capability_advertise.py
index 1e8fb9e2b26..13cb6bbd469 100644
--- a/studio/backend/tests/test_safetensors_capability_advertise.py
+++ b/studio/backend/tests/test_safetensors_capability_advertise.py
@@ -107,6 +107,7 @@ def test_detect_safetensors_features_none_template_returns_all_false():
"supports_reasoning": False,
"reasoning_style": "enable_thinking",
"reasoning_always_on": False,
+ "reasoning_effort_levels": [],
"supports_preserve_thinking": False,
"supports_tools": False,
}
diff --git a/studio/backend/tests/test_tensor_parallel.py b/studio/backend/tests/test_tensor_parallel.py
index 5b1138ef09b..86ac79eda9f 100644
--- a/studio/backend/tests/test_tensor_parallel.py
+++ b/studio/backend/tests/test_tensor_parallel.py
@@ -365,6 +365,11 @@ def test_runtime_recovery_reloads_without_mtp(monkeypatch):
while b._spec_fallback_reason != "runtime_error" and time.monotonic() < deadline:
time.sleep(0.02)
assert b._spec_fallback_reason == "runtime_error"
+ # The reload thread clears the single-flight flag in its finally, a beat after
+ # it sets the fallback reason -- wait for that instead of racing the thread.
+ deadline = time.monotonic() + 2
+ while b._mtp_runtime_fallback_in_progress and time.monotonic() < deadline:
+ time.sleep(0.02)
assert b._mtp_runtime_fallback_in_progress is False