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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Assert the Vulkan bailouts fail closed via the helper, not a literal exit (#7644)
Daniel Han519c420d535c
diff --git a/studio/backend/tests/test_setup_llama_cpp_backend.py b/studio/backend/tests/test_setup_llama_cpp_backend.pyindex d9f78a684b0..a18827d96b3 100644--- a/studio/backend/tests/test_setup_llama_cpp_backend.py+++ b/studio/backend/tests/test_setup_llama_cpp_backend.py@@ -134,7 +134,8 @@ def test_explicit_vulkan_prebuilt_failure_does_not_change_backend():assert guard < source_buildguarded = sh[guard:source_build]assert "will not substitute a ROCm or CPU source build" in guarded- assert "exit 1" in guarded+ # Aborts through the helper, which exits AND emits [TAURI:ERROR] in desktop mode.+ assert "setup_fail 1" in guardedps1 = _SETUP_PS1.read_text(encoding = "utf-8")failure = ps1.index('step "llama.cpp" "prebuilt install failed"')@@ -143,7 +144,7 @@ def test_explicit_vulkan_prebuilt_failure_does_not_change_backend():assert guard < source_buildguarded = ps1[guard:source_build]assert "will not substitute a CUDA, ROCm, or CPU source build" in guarded- assert "exit 1" in guarded+ assert "Exit-SetupFailure" in guardeddef test_explicit_vulkan_source_build_fails_closed():@@ -156,7 +157,7 @@ def test_explicit_vulkan_source_build_fails_closed():'[ "$_NEED_LLAMA_SOURCE_BUILD" = true ]; then') in guardedassert "Vulkan source builds are not supported" in guarded- assert "exit 1" in guarded+ assert "setup_fail 1" in guardedps1 = _SETUP_PS1.read_text(encoding = "utf-8")local_branch = ps1.index("if ($LocalLlamaCppLinked) {")@@ -166,7 +167,7 @@ def test_explicit_vulkan_source_build_fails_closed():guarded = ps1[local_branch:prebuilt_branch]assert "} elseif ($explicitVulkanSourceBuild -and $NeedLlamaSourceBuild) {" in guardedassert "Vulkan source builds are not supported" in guarded- assert "exit 1" in guarded+ assert "Exit-SetupFailure" in guardeddef test_force_compile_sets_need_source_build_before_vulkan_guard():