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.

studiobench CI: boot Studio with update checks off so a mid-run llama.cpp release cannot cover the scene (#14007)

Daniel Hancd2b12f78588
diff --git a/.github/workflows/studiobench-ci.yml b/.github/workflows/studiobench-ci.yml
index 904f6f10ca3..251675c1d03 100644
--- a/.github/workflows/studiobench-ci.yml
+++ b/.github/workflows/studiobench-ci.yml
@@ -164,6 +164,12 @@ jobs:
timeout-minutes: 30
env:
STUDIO_PORT: '18902'
+ # The llama.cpp prebuilt this job installs can be one release behind by the time the session runs
+ # (a release published mid-job), and Studio then puts an "update available" card in the bottom-right
+ # overlay rail, over the controls the scene clicks. Seen on #13986 and #14000: both installed b11669 a
+ # minute before b11681 was published and timed out on a click the card intercepted. The session
+ # measures chat, not update UI, so update checks stay off.
+ UNSLOTH_DISABLE_UPDATE_CHECK: '1'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
diff --git a/.github/workflows/workflow-trigger-lint.yml b/.github/workflows/workflow-trigger-lint.yml
index ec339cbb3a2..b4e758e6110 100644
--- a/.github/workflows/workflow-trigger-lint.yml
+++ b/.github/workflows/workflow-trigger-lint.yml
@@ -181,6 +181,7 @@ jobs:
tests/studio/test_smoke_workflows_share_one_script.py \
tests/studio/test_stt_model_search_locator_contract.py \
tests/studio/test_studio_smokes_do_not_trigger_on_the_training_library.py \
+ tests/studio/test_studiobench_ci_update_checks_off.py \
tests/studio/test_uv_cache_discipline.py \
tests/studio/test_version_compat_bundle.py \
tests/studio/test_windows_small_checks_stay_on_their_image.py \
diff --git a/tests/studio/test_studiobench_ci_update_checks_off.py b/tests/studio/test_studiobench_ci_update_checks_off.py
new file mode 100644
index 00000000000..f0c78815bd8
--- /dev/null
+++ b/tests/studio/test_studiobench_ci_update_checks_off.py
@@ -0,0 +1,45 @@
+# 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.
+
+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.
+"""
+
+from pathlib import Path
+
+import yaml
+
+REPO = Path(__file__).resolve().parents[2]
+WORKFLOW = REPO / ".github" / "workflows" / "studiobench-ci.yml"
+SWITCH = "UNSLOTH_DISABLE_UPDATE_CHECK"
+
+
+def _jobs_that_boot_studio():
+ jobs = yaml.safe_load(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"
+ return booting
+
+
+def test_every_studio_booting_job_turns_update_checks_off():
+ for name, job in _jobs_that_boot_studio().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"
+ )
+
+
+def test_the_switch_is_what_the_backend_reads():
+ # A renamed variable would leave the job green and the banner back.
+ source = (REPO / "studio" / "backend" / "utils" / "update_status.py").read_text(
+ encoding = "utf-8"
+ )
+ assert f'"{SWITCH}"' in source