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.

Move the two version-incidental macOS jobs onto the emptier pool (#9277)

Daniel Han214e24c0cea7
diff --git a/.github/workflows/mlx-ci.yml b/.github/workflows/mlx-ci.yml
index ca00b1429ae..7716f0d5b15 100644
--- a/.github/workflows/mlx-ci.yml
+++ b/.github/workflows/mlx-ci.yml
@@ -4,7 +4,7 @@
# Focused PR gate for the MLX dispatch surface, running on a real
# Apple Silicon runner.
#
-# Runner: macos-15 (M1, 3 vCPU / 7 GB / Apple Silicon standard runner
+# Runner: macos-26 (Apple Silicon standard runner, 3 vCPU / 7 GB
# -- FREE for public repositories per the GitHub Actions billing
# reference; larger -large/-xlarge variants are paid so
# we deliberately avoid those).
@@ -133,7 +133,34 @@ permissions:
jobs:
dispatch:
name: dispatch
- runs-on: macos-15
+ # macos-26, not macos-15, on a measurement rather than a preference. Both are
+ # free Apple Silicon standard runners, so this is the same class of machine.
+ #
+ # studio-mac-install-matrix runs both images from ONE matrix, so their queues
+ # can be compared on identical commits and identical triggers. Over 163 jobs
+ # per leg:
+ #
+ # exec med exec p90 queue p90
+ # macos-15 160s 713s 20667s
+ # macos-26 176s 597s 3866s
+ #
+ # The medians say the two are the same machine. The queue p90 says they are
+ # not the same pool: macos-15 is 5.3x worse in the tail, five and a half hours
+ # against one. That tail is what sets this repo's wall clock -- the census
+ # behind it found every commit's last finisher to be this job, minutes of work
+ # behind hours of waiting -- and the median hides it completely, because the
+ # median wait on both images is zero.
+ #
+ # The likely cause is the macos-14 retirement (brownouts 2026-10-05, removal
+ # 2026-11-02): everything migrated onto macos-15, including this job, and
+ # macos-26 was left comparatively empty. That also means this is a fact about
+ # today's pool and not a property of the image, so it is worth re-measuring
+ # rather than assuming. The comparison above is one query against the install
+ # matrix and can be re-run whenever the queue looks wrong again.
+ #
+ # Not macos-14 for the retirement above; all three are Apple Silicon, so the
+ # arm64 paths are still what gets tested.
+ runs-on: macos-26
# 40 min: dispatch + spoofed matrix + 7-step real LoRA training is
# under 2 min; GGUF export builds llama.cpp via cmake on Apple
# Silicon (~5-7 min), so we budget headroom. The capability-verdict
diff --git a/.github/workflows/studio-tauri-smoke.yml b/.github/workflows/studio-tauri-smoke.yml
index 0b1dabe3b44..8fc4e6706fa 100644
--- a/.github/workflows/studio-tauri-smoke.yml
+++ b/.github/workflows/studio-tauri-smoke.yml
@@ -368,10 +368,34 @@ jobs:
macos-unit-tests:
name: Rust unit tests (macos)
- # Not macos-14: it browns out from 2026-10-05 and is removed 2026-11-02,
- # which the other macOS workflows here have already moved off. Both are
- # Apple Silicon, so this job keeps testing the arm64 paths.
- runs-on: macos-15
+ # macos-26, not macos-15, on a measurement rather than a preference. Both are
+ # free Apple Silicon standard runners, so this is the same class of machine.
+ #
+ # studio-mac-install-matrix runs both images from ONE matrix, so their queues
+ # can be compared on identical commits and identical triggers. Over 163 jobs
+ # per leg:
+ #
+ # exec med exec p90 queue p90
+ # macos-15 160s 713s 20667s
+ # macos-26 176s 597s 3866s
+ #
+ # The medians say the two are the same machine. The queue p90 says they are
+ # not the same pool: macos-15 is 5.3x worse in the tail, five and a half hours
+ # against one. That tail is what sets this repo's wall clock -- the census
+ # behind it found every commit's last finisher to be this job, minutes of work
+ # behind hours of waiting -- and the median hides it completely, because the
+ # median wait on both images is zero.
+ #
+ # The likely cause is the macos-14 retirement (brownouts 2026-10-05, removal
+ # 2026-11-02): everything migrated onto macos-15, including this job, and
+ # macos-26 was left comparatively empty. That also means this is a fact about
+ # today's pool and not a property of the image, so it is worth re-measuring
+ # rather than assuming. The comparison above is one query against the install
+ # matrix and can be re-run whenever the queue looks wrong again.
+ #
+ # Not macos-14 for the retirement above; all three are Apple Silicon, so the
+ # arm64 paths are still what gets tested.
+ runs-on: macos-26
# A cold cache compiles both the debug and the release dependency tree.
timeout-minutes: 45
steps:
diff --git a/tests/studio/test_macos_slots_per_commit.py b/tests/studio/test_macos_slots_per_commit.py
index bdbd2f70a06..114f6965e90 100644
--- a/tests/studio/test_macos_slots_per_commit.py
+++ b/tests/studio/test_macos_slots_per_commit.py
@@ -287,3 +287,65 @@ def test_a_commit_that_touches_nothing_relevant_starts_no_macos_job():
f"a README-only commit still starts macOS jobs: {triggered}. That was the "
f"original symptom: seven macOS legs against a five-slot cap for a docs typo."
)
+
+
+# Images GitHub still schedules. macos-14 is absent deliberately: brownouts from
+# 2026-10-05, removal 2026-11-02. Add to this set when GitHub ships an image, and
+# remove from it when GitHub announces a retirement -- the removal is the point,
+# because that is when this guard starts naming the jobs that have to move.
+LIVE_MACOS_IMAGES = {
+ "macos-15",
+ "macos-15-intel",
+ "macos-26",
+ "macos-26-intel",
+ "macos-latest",
+}
+
+
+def _macos_labels():
+ """Every concrete macOS image any job can be scheduled onto, with its origin."""
+ found = []
+ for path in sorted(WORKFLOWS.glob("*.yml")):
+ doc = yaml.safe_load(path.read_text(encoding = "utf-8"))
+ if not isinstance(doc, dict) or not isinstance(doc.get("jobs"), dict):
+ continue
+ for jid, job in doc["jobs"].items():
+ if not isinstance(job, dict):
+ continue
+ # runs-on plus the matrix it may select from: a retired image hides in
+ # an `include:` list just as easily as in a literal runs-on.
+ blob = str(job.get("runs-on", ""))
+ strategy = job.get("strategy") or {}
+ blob += str((strategy.get("matrix") or {}) if isinstance(strategy, dict) else "")
+ # Only things shaped like a GitHub image name. The loose MACOS pattern
+ # used elsewhere in this file also matches build targets that merely
+ # contain "macos" -- release-desktop's matrix carries `macos-aarch64`,
+ # which is a Rust triple's nickname and never a runner label. Every
+ # real macOS image is macos-latest or macos-<version>[-intel].
+ for label in re.findall(r"\bmacos-(?:latest|\d+(?:-intel)?)\b", blob, re.I):
+ found.append((path.name, jid, label.lower()))
+ return found
+
+
+def test_no_job_targets_a_retired_macos_image() -> None:
+ """
+ macos-14's retirement is already written into three comments in this repo, each
+ explaining why some job moved off it. Comments do not fail, so the next
+ retirement will be discovered the same way this one was: by a job that stops
+ being scheduled, on a runner pool nobody is watching.
+
+ This is the cheap version of that discovery. It cannot know GitHub's roadmap,
+ but it does force the retirement to be recorded in one place, and it names
+ every job that has to move on the day someone records it.
+ """
+ labels = _macos_labels()
+ assert labels, "no macOS labels found at all; this guard would pass vacuously"
+
+ retired = sorted(
+ f"{name}:{jid} -> {label}" for name, jid, label in labels if label not in LIVE_MACOS_IMAGES
+ )
+ assert not retired, (
+ f"these jobs target a macOS image not in LIVE_MACOS_IMAGES: {retired}. Either "
+ f"GitHub ships it and it belongs in the set, or it is retired and these jobs "
+ f"need moving before they stop being scheduled."
+ )