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.

CI: turn update checks off in every job that drives a browser (#15815)

Daniel Han266b278f83f3
diff --git a/.github/workflows/studio-composer-compatibility.yml b/.github/workflows/studio-composer-compatibility.yml
index e4a58987bb4..7dcc0192ace 100644
--- a/.github/workflows/studio-composer-compatibility.yml
+++ b/.github/workflows/studio-composer-compatibility.yml
@@ -54,6 +54,8 @@ jobs:
run:
shell: bash
env:
+ # A release published mid-run puts an update card over the controls the scripts click.
+ UNSLOTH_DISABLE_UPDATE_CHECK: '1'
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/temp/queue-validation/browsers
PIP_CACHE_DIR: ${{ github.workspace }}/temp/queue-validation/pip-cache
npm_config_cache: ${{ github.workspace }}/temp/queue-validation/npm-cache
diff --git a/.github/workflows/studio-frontend-ci.yml b/.github/workflows/studio-frontend-ci.yml
index c8b61da8e71..a3d5c0abde5 100644
--- a/.github/workflows/studio-frontend-ci.yml
+++ b/.github/workflows/studio-frontend-ci.yml
@@ -116,6 +116,9 @@ jobs:
build:
name: Frontend build + bundle sanity
runs-on: ubuntu-latest
+ env:
+ # A release published mid-run puts an update card over the controls the scripts click.
+ UNSLOTH_DISABLE_UPDATE_CHECK: '1'
# Must stay above the browser install step's own 33m bound so the step timeout fires first.
timeout-minutes: 40
defaults:
@@ -596,6 +599,9 @@ jobs:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
name: Frontend unit tests (Windows)
runs-on: windows-latest
+ env:
+ # A release published mid-run puts an update card over the controls the scripts click.
+ UNSLOTH_DISABLE_UPDATE_CHECK: '1'
# The steps measured ~15m30s, so 15 always cut off the Firefox step.
timeout-minutes: 30
defaults:
diff --git a/.github/workflows/studio-inline-images.yml b/.github/workflows/studio-inline-images.yml
index 80bdbd7aee9..85f067c21fb 100644
--- a/.github/workflows/studio-inline-images.yml
+++ b/.github/workflows/studio-inline-images.yml
@@ -49,6 +49,8 @@ jobs:
run:
shell: bash
env:
+ # A release published mid-run puts an update card over the controls the scripts click.
+ UNSLOTH_DISABLE_UPDATE_CHECK: '1'
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/temp/inline-image-validation/browsers
PIP_CACHE_DIR: ${{ github.workspace }}/temp/inline-image-validation/pip-cache
steps:
diff --git a/.github/workflows/studio-mac-ui-smoke.yml b/.github/workflows/studio-mac-ui-smoke.yml
index aaa9d691b6e..d281f3ffe42 100644
--- a/.github/workflows/studio-mac-ui-smoke.yml
+++ b/.github/workflows/studio-mac-ui-smoke.yml
@@ -98,6 +98,8 @@ jobs:
# Phases share one install; the cap still bounds a hang holding a macOS slot.
timeout-minutes: 100
env:
+ # A release published mid-run puts an update card over the controls the scripts click.
+ UNSLOTH_DISABLE_UPDATE_CHECK: '1'
GGUF_REPO: unsloth/gemma-3-270m-it-GGUF
GGUF_VARIANT: UD-Q4_K_XL
GGUF_FILE: gemma-3-270m-it-UD-Q4_K_XL.gguf
diff --git a/.github/workflows/studio-ui-smoke.yml b/.github/workflows/studio-ui-smoke.yml
index 9e48624acbc..dc1e43246b8 100644
--- a/.github/workflows/studio-ui-smoke.yml
+++ b/.github/workflows/studio-ui-smoke.yml
@@ -778,6 +778,9 @@ jobs:
ui-indicator:
name: Loaded-models indicator (cross-browser)
runs-on: ubuntu-latest
+ env:
+ # A release published mid-run puts an update card over the controls the scripts click.
+ UNSLOTH_DISABLE_UPDATE_CHECK: '1'
# Own job: three engines would push later ui-smoke steps past its limit. Stubs the
# /status reads, so no model or GPU is needed, but a real browser layout is.
timeout-minutes: 30
diff --git a/.github/workflows/studio-windows-ui-smoke.yml b/.github/workflows/studio-windows-ui-smoke.yml
index 812dd384acc..64f3f42b474 100644
--- a/.github/workflows/studio-windows-ui-smoke.yml
+++ b/.github/workflows/studio-windows-ui-smoke.yml
@@ -89,6 +89,8 @@ jobs:
run:
shell: bash
env:
+ # A release published mid-run puts an update card over the controls the scripts click.
+ UNSLOTH_DISABLE_UPDATE_CHECK: '1'
GGUF_REPO: unsloth/gemma-3-270m-it-GGUF
GGUF_VARIANT: UD-Q4_K_XL
GGUF_FILE: gemma-3-270m-it-UD-Q4_K_XL.gguf
diff --git a/.github/workflows/studiobench-ci.yml b/.github/workflows/studiobench-ci.yml
index b908d265a7f..5ad946ba061 100644
--- a/.github/workflows/studiobench-ci.yml
+++ b/.github/workflows/studiobench-ci.yml
@@ -80,6 +80,9 @@ jobs:
selftests:
name: Selftests, lint and the single-file build
runs-on: ubuntu-latest
+ env:
+ # A release published mid-run puts an update card over the controls the scripts click.
+ UNSLOTH_DISABLE_UPDATE_CHECK: '1'
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
diff --git a/.github/workflows/studiobench-ui-parity.yml b/.github/workflows/studiobench-ui-parity.yml
index 07f25ec03fa..a58788b5da9 100644
--- a/.github/workflows/studiobench-ui-parity.yml
+++ b/.github/workflows/studiobench-ui-parity.yml
@@ -103,6 +103,8 @@ jobs:
- arm: null-control
label: Merge base vs itself, the null
env:
+ # A release published mid-run puts an update card over the controls the scripts click.
+ UNSLOTH_DISABLE_UPDATE_CHECK: '1'
PORT_A: '18904'
PORT_B: '18905'
HOME_A: ${{ github.workspace }}/.parity/home_a
@@ -371,6 +373,9 @@ jobs:
name: Parity verdict, scored against the null
needs: arms
runs-on: ubuntu-latest
+ env:
+ # A release published mid-run puts an update card over the controls the scripts click.
+ UNSLOTH_DISABLE_UPDATE_CHECK: '1'
permissions:
contents: read
pull-requests: read # the PR's labels as they are now; see "Read the PR's labels"
diff --git a/tests/studio/test_studiobench_ci_update_checks_off.py b/tests/studio/test_studiobench_ci_update_checks_off.py
index 9b5e6c7d205..08433313d2c 100644
--- a/tests/studio/test_studiobench_ci_update_checks_off.py
+++ b/tests/studio/test_studiobench_ci_update_checks_off.py
@@ -6,9 +6,11 @@
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).
+change under test. Seen in studiobench (llama.cpp b11681), the Chat UI smoke (audio.cpp v0.9.2), and the Windows UI
+lane and the UI parity null control.
"""
+import re
from pathlib import Path
import pytest
@@ -16,35 +18,55 @@ import yaml
REPO = Path(__file__).resolve().parents[2]
WORKFLOWS = REPO / ".github" / "workflows"
-GUARDED = ("studiobench-ci.yml", "studio-ui-smoke.yml")
SWITCH = "UNSLOTH_DISABLE_UPDATE_CHECK"
+# A job drives a browser if it installs Playwright's browsers or runs studiobench; booting Studio through the
+# shared boot-studio step counts too. Windows lanes boot Studio inside their own script, so the browser half
+# is what finds them.
+_BROWSER = re.compile(r"playwright install|-m studiobench|studiobench\.")
+# Lanes that must stay covered: if discovery stops finding one, the guard has gone blind, not green.
+KNOWN = {
+ ("studio-ui-smoke.yml", "ui-smoke"),
+ ("studio-windows-ui-smoke.yml", "ui-smoke"),
+ ("studio-mac-ui-smoke.yml", "ui-smoke"),
+ ("studiobench-ci.yml", "liveness"),
+ ("studiobench-ui-parity.yml", "arms"),
+}
-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, f"no {workflow} job boots Studio any more; update this guard"
- return booting
-
-
[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"{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 _browser_jobs():
+ found = {}
+ for path in sorted(WORKFLOWS.glob("*.yml")):
+ jobs = yaml.safe_load(path.read_text(encoding = "utf-8")).get("jobs") or {}
+ for name, job in jobs.items():
+ runs = " ".join(str(step.get("run", "")) for step in job.get("steps") or [])
+ boots = "boot-studio" in runs and "playwright" in runs.lower()
+ if boots or _BROWSER.search(runs):
+ found[(path.name, name)] = job
+ return found
+
+
+def test_discovery_still_finds_the_ui_lanes():
+ missing = KNOWN - set(_browser_jobs())
+ assert (
+ not missing
+ ), f"no longer recognised as browser jobs: {sorted(missing)}; update this guard"
+
+
[email protected]("key", sorted(_browser_jobs()), ids = lambda k: f"{k[0]}:{k[1]}")
+def test_every_browser_job_turns_update_checks_off(key):
+ workflow, name = key
+ job = _browser_jobs()[key]
+ env = job.get("env") or {}
+ assert str(env.get(SWITCH)) == "1", (
+ f"{workflow} job {name!r} drives a browser 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():