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.

Chat UI smoke: boot Studio with update checks off (#14053)

Daniel Han1018ecbf6f96
diff --git a/.github/workflows/studio-ui-smoke.yml b/.github/workflows/studio-ui-smoke.yml
index 78a0e245cde..8d364a7bc5d 100644
--- a/.github/workflows/studio-ui-smoke.yml
+++ b/.github/workflows/studio-ui-smoke.yml
@@ -204,6 +204,12 @@ jobs:
GGUF_FILE: gemma-3-270m-it-UD-Q4_K_XL.gguf
STUDIO_PORT: '18892'
HF_HOME: ${{ github.workspace }}/hf-cache
+ # A llama.cpp, whisper.cpp or audio.cpp release published while this job runs leaves the prebuilt it
+ # just installed one behind, and Studio then puts an update card in the bottom-right overlay rail, over
+ # the composer the scripts click. Seen on main eb0617b6: audio.cpp v0.9.2 was published six minutes
+ # after the job installed v0.9.1, and the IME script timed out on a click the card intercepted. These
+ # scripts test chat, not live update checks; the update banner scripts stub the update routes.
+ UNSLOTH_DISABLE_UPDATE_CHECK: '1'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
diff --git a/tests/studio/test_studiobench_ci_update_checks_off.py b/tests/studio/test_studiobench_ci_update_checks_off.py
index f0c78815bd8..9b5e6c7d205 100644
--- a/tests/studio/test_studiobench_ci_update_checks_off.py
+++ b/tests/studio/test_studiobench_ci_update_checks_off.py
@@ -1,40 +1,50 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-"""studiobench's real-path session boots Studio with update checks off.
+"""Workflows that boot Studio and click through it run with update checks off.
-A llama.cpp release published while the job runs makes the prebuilt it just installed one behind, and
-Studio then shows an "update available" card in the bottom-right overlay rail, over the controls the
-scene clicks. The click times out and the session fails for a reason unrelated to the change under test.
+A llama.cpp, whisper.cpp or audio.cpp release published while the job runs makes the prebuilt it just
+installed one behind, and Studio then shows an "update available" card in the bottom-right overlay rail,
+over the controls the scripts click. The click times out and the job fails for a reason unrelated to the
+change under test. Seen in studiobench (llama.cpp b11681) and in the Chat UI smoke (audio.cpp v0.9.2).
"""
from pathlib import Path
+import pytest
import yaml
REPO = Path(__file__).resolve().parents[2]
-WORKFLOW = REPO / ".github" / "workflows" / "studiobench-ci.yml"
+WORKFLOWS = REPO / ".github" / "workflows"
+GUARDED = ("studiobench-ci.yml", "studio-ui-smoke.yml")
SWITCH = "UNSLOTH_DISABLE_UPDATE_CHECK"
-def _jobs_that_boot_studio():
- jobs = yaml.safe_load(WORKFLOW.read_text(encoding = "utf-8"))["jobs"]
+def _jobs_that_boot_studio(workflow):
+ jobs = yaml.safe_load((WORKFLOWS / workflow).read_text(encoding = "utf-8"))["jobs"]
booting = {
name: job
for name, job in jobs.items()
if any("boot-studio" in str(step.get("run", "")) for step in job.get("steps", []))
}
- assert booting, "no studiobench job boots Studio any more; update this guard"
+ assert booting, f"no {workflow} job boots Studio any more; update this guard"
return booting
-def test_every_studio_booting_job_turns_update_checks_off():
- for name, job in _jobs_that_boot_studio().items():
[email protected]("workflow", GUARDED)
+def test_every_studio_booting_job_turns_update_checks_off(workflow):
+ for name, job in _jobs_that_boot_studio(workflow).items():
env = job.get("env") or {}
assert str(env.get(SWITCH)) == "1", (
- f"studiobench job {name!r} boots Studio without {SWITCH}=1, so a llama.cpp release "
- "published mid-run can put an update card over the controls the scene clicks"
+ f"{workflow} job {name!r} boots Studio without {SWITCH}=1, so a release published "
+ "mid-run can put an update card over the controls its scripts click"
)
+ for step in job.get("steps", []):
+ # A step-level override would quietly turn the checks back on for that step.
+ step_env = step.get("env") or {}
+ assert (
+ SWITCH not in step_env or str(step_env[SWITCH]) == "1"
+ ), f"{workflow} job {name!r} step {step.get('name')!r} sets {SWITCH} back on"
def test_the_switch_is_what_the_backend_reads():