Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
fix(ci): cap a merge group at two macOS jobs (#633)
Ruben Lütkef710f3f34cda
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 2e3aab0060..ac737a408a 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -40,10 +40,10 @@# pr pull request: the whole Linux + Windows suite and every affected# lane on Linux and Windows. No macOS: five macOS slots serve# every run, and macOS legs on each push made pull requests wait.-# queue merge-queue group: everything `pr` runs plus every macOS leg of-# the affected lanes (real runtimes and real browser included).-# Nothing macOS-specific that a lane tests lands unproven, and the-# five macOS slots are spent once per change.+# queue merge-queue group: everything `pr` runs plus at most two macOS+# jobs: the macOS tests the change can reach, and the Apple Silicon+# desktop bundle when the macOS lane is affected. Five macOS slots+# serve every group; eleven macOS jobs a group waited 30-54 minutes.# full nightly, release tags, manual full dispatch: Intel macOS, the ARM# runners, every interpreter, the macOS test shards, and the# Hermes install on Windows (14-23 minutes). A red nightly opens an@@ -223,9 +223,10 @@ jobs:git diff --name-only --no-renames "$BASE" HEAD | tee changed.txt | python3 scripts/ci/classify_changes.pyfi- # A merge group runs the macOS tests its change can reach: the whole- # suite on macOS is 27 runner-minutes on five shared slots. No diff- # (changed.txt missing or empty) selects everything.+ # A merge group runs the macOS tests its change can reach, on ONE+ # runner: the whole suite on macOS is 27 runner-minutes on five shared+ # slots. A change that reaches everything (or no diff: changed.txt+ # missing or empty) runs the macOS-focused set instead.- name: Select the macOS tests this change can reachid: mactestsshell: bash@@ -236,7 +237,7 @@ jobs:: > mac_tests.txtif [ "$PYTHON_LANE" = "true" ] && [ "$MAC_IMPACT" = "true" ]; thentest -f changed.txt || : > changed.txt- python3 scripts/ci/select_tests.py --changed-from changed.txt --out mac_tests.txt+ python3 scripts/ci/select_tests.py --one-runner --changed-from changed.txt --out mac_tests.txtelse{ echo "mode=none"; echo "shards=[]"; } | tee -a "$GITHUB_OUTPUT"fi@@ -622,10 +623,10 @@ jobs:path: out/retention-days: 14- # The macOS tests the change can reach, before it lands (merge queue). One- # runner for an ordinary change; a change that selects everything (the- # pipeline, conftest, the lockfile) gets the full three-way split. The- # nightly and release runs keep the whole suite in `tests-macos`.+ # The macOS tests the change can reach, before it lands (merge queue), on+ # one runner; a change that reaches everything (the pipeline, conftest,+ # the lockfile) runs the macOS-focused set. The nightly and release runs+ # keep the whole suite in `tests-macos`.tests-macos-impact:needs: detectif: needs.detect.outputs.python == 'true' && needs.detect.outputs.mac_tests == 'true'@@ -861,8 +862,8 @@ jobs:strategy:fail-fast: falsemax-parallel: ${{ fromJSON(needs.detect.outputs.matrix_parallel) }}- # Windows ARM on a pull request, Intel macOS added in the queue, both- # interpreters and Apple Silicon in the wide matrix (plan_run.py).+ # Windows ARM on every change; Intel macOS, both interpreters and+ # Apple Silicon in the wide matrix (plan_run.py).matrix:include: ${{ fromJSON(needs.detect.outputs.crypto_matrix) }}runs-on: ${{ matrix.runner }}@@ -938,7 +939,7 @@ jobs:# app differently (Inno handover, .app swap, AppImage swap, git transaction# + restart helper), and the POSIX-only tests run the real relaunch waiter.# A pull request runs Linux and the real Windows upgrade; the merge queue- # adds macOS and the second Windows interpreter; the wide matrix adds the+ # adds the second Windows interpreter; the wide matrix adds macOS and the# Intel Mac (scripts/ci/plan_run.py).## Python: 3.11 is the floor, 3.12 is what the native installers freeze.@@ -1130,9 +1131,10 @@ jobs:# Hermes / OpenClaw society agents on every OS a person runs them on. The# lane (scripts/ci/agent_runtime_suite.py) covers the runtimes AND the chat- # and society code that drives them. A pull request proves Linux and- # Windows; the merge queue adds macOS, so a macOS failure stops the change- # before it lands. Fakes only: no key, no network to a model.+ # and society code that drives them. Every change proves Linux and+ # Windows; on macOS the merge queue runs this suite's tests through the+ # impact selection (tests-macos-impact), the wide matrix runs the lane+ # itself. Fakes only: no key, no network to a model.agent-runtimes-unit:needs: detectif: needs.detect.outputs.agent_runtimes == 'true'@@ -1192,9 +1194,8 @@ jobs:# user PATH and shell profiles stayed put (scripts/ci/agent_runtime_e2e.py).# No key, no network to a model. The weekly canary does the same at# upstream latest and raises the pin. Every change runs both runtimes on- # Linux and OpenClaw on Windows; the merge queue adds both runtimes on- # macOS, so a macOS failure stops a change before it lands; nightly and- # release runs add the Hermes install on Windows (14-23 minutes)+ # Linux and OpenClaw on Windows; nightly and release runs add both+ # runtimes on macOS and the Hermes install on Windows (14-23 minutes)# (scripts/ci/plan_run.py).agent-runtimes-e2e:needs: detectdiff --git a/AGENTS.md b/AGENTS.mdindex 75a16e7094..d25c74021f 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -255,9 +255,9 @@ queue once green; the queue squash-merges it after `CI gate` passes again onthe PR merged with the newest main. The train enqueues only with its bottoken: `agent_land.py` therefore requests auto-merge, and a PR opened anyother way needs `gh pr merge <branch> --auto --squash` once, or it waits for-a person. A pull request runs Linux and Windows; every macOS check of the-affected lanes runs, blocking, in the merge-queue (`docs/ci-pipeline.md`, Tiers). Direct pushes to main are blocked for+a person. A pull request runs Linux and Windows; the merge queue adds the+macOS tests the change can reach; the rest of macOS runs nightly and on+release (`docs/ci-pipeline.md`, Tiers). Direct pushes to main are blocked foreveryone but admins.Triage any red job against the exact base; never add to a baseline to hide anew failure.diff --git a/docs/agent-runtimes.md b/docs/agent-runtimes.mdindex 52bca4f3ce..a75a3b33c2 100644--- a/docs/agent-runtimes.md+++ b/docs/agent-runtimes.md@@ -407,16 +407,18 @@ each of them:| Job | Where | What it proves ||---|---|---|-| `agent-runtimes-unit` | Linux and Windows on a pull request, macOS added in the merge queue; the portable base install | The runtime drivers, gateway, ACP runner, chat service, send queue, controls, society binding, roster, routines and society routes (`python scripts/ci/agent_runtime_suite.py`). Fakes only. |+| `agent-runtimes-unit` | Linux and Windows on every pull request and merge group, macOS nightly and on release; the portable base install | The runtime drivers, gateway, ACP runner, chat service, send queue, controls, society binding, roster, routines and society routes (`python scripts/ci/agent_runtime_suite.py`). Fakes only. || `agent-runtimes-headless` | `python:3.11-slim` | The runtime package imports and its tests pass on a server with no GPU, audio or desktop stack, and the app's Hermes setup without curl stops with "Setup needs curl". |-| `agent-runtimes-e2e` | Every pull request: Linux × Hermes, OpenClaw and Windows × OpenClaw. Merge queue: macOS × Hermes, OpenClaw added. Nightly and release: Windows × Hermes added | `scripts/ci/agent_runtime_e2e.py`: the app's own setup job (`manager.wait_ready`) installs the release pinned in `jarvis/agent_runtimes/runtime-versions.json` with a desktop app's PATH, never npm or a manual installer. Then two turns per model-gateway protocol against scripted providers (`--replay`), the fake-model driver check with turn-1 budgets (Hermes 30 s, OpenClaw 90 s), `pytest tests/unit/agent_runtimes`, and proof that the Windows user PATH gained no `agent_runtimes` entry and OpenClaw edited no shell profile. No key and no network to a model. |--Before a change lands, the merge queue has run the unit suite on all three-OSes, both real runtimes on Linux and on macOS, and OpenClaw on Windows-(`scripts/ci/plan_run.py` sizes the matrices): a macOS failure stops the-change instead of surfacing the next morning. The Hermes install on Windows-(14 to 23 minutes a job, 13 of them the upstream installer) runs nightly,-on release tags and on request+| `agent-runtimes-e2e` | Every pull request and merge group: Linux × Hermes, OpenClaw and Windows × OpenClaw. Nightly and release: macOS × Hermes, OpenClaw and Windows × Hermes added | `scripts/ci/agent_runtime_e2e.py`: the app's own setup job (`manager.wait_ready`) installs the release pinned in `jarvis/agent_runtimes/runtime-versions.json` with a desktop app's PATH, never npm or a manual installer. Then two turns per model-gateway protocol against scripted providers (`--replay`), the fake-model driver check with turn-1 budgets (Hermes 30 s, OpenClaw 90 s), `pytest tests/unit/agent_runtimes`, and proof that the Windows user PATH gained no `agent_runtimes` entry and OpenClaw edited no shell profile. No key and no network to a model. |++Before a change lands, the merge queue has run the unit suite on Linux and+Windows, both real runtimes on Linux and OpenClaw on Windows+(`scripts/ci/plan_run.py` sizes the matrices), and on macOS the tests of+this suite through the impact selection (`tests-macos-impact`). The lane+itself on macOS, both real runtimes on macOS (10 and 7 minutes of one of+five shared macOS slots) and the Hermes install on Windows (14 to 23+minutes a job, 13 of them the upstream installer) run nightly, on release+tags and on request(`gh workflow run ci.yml --ref <branch> -f full=false -f include_macos=true`). Theimpact selection of `scripts/agent_land.py` adds the same suite whenever thelane is on, so a runtime change also runs the chat and society tests, notdiff --git a/docs/ci-pipeline.md b/docs/ci-pipeline.mdindex 8f3cdbdc2f..c3831557a1 100644--- a/docs/ci-pipeline.md+++ b/docs/ci-pipeline.md@@ -25,7 +25,7 @@ to prove (`scripts/ci/plan_run.py` emits the tier and every job matrix):| Tier | When | What runs | Target || --- | --- | --- | --- || `pr` | pull request, branch run dispatched by the merge train | Static gates, the whole Linux + Windows suite, every affected lane on Linux and Windows. No macOS. | ~10 min |-| `queue` | merge-queue group; a push that reached main without the queue | Everything `pr` runs plus every macOS leg of the affected lanes: realtime contract, updater, agent-runtime unit suite, native crypto on Intel, the Apple Silicon desktop bundle, both real runtimes and the real browser. The blocking proof of the exact tree main gets; nothing macOS-specific that a lane tests lands unproven. | ~11-17 min |+| `queue` | merge-queue group; a push that reached main without the queue | Everything `pr` runs plus at most two macOS jobs: the macOS tests the change can reach (one runner), and the Apple Silicon desktop bundle when the macOS lane is affected. The blocking proof of the exact tree main gets. | ~10-13 min || `full` | nightly, release tag, manual full dispatch | The wide matrix: Intel macOS, the ARM runners, every interpreter, the macOS test shards, all three macOS desktop rows, and the Hermes install on Windows. A red nightly opens the issue "Nightly CI is red" (`nightly-alert.yml`). | ~40 min || proven | push to main of a commit the merge queue already passed | `detect` and `CI gate` only. | under 1 min |@@ -45,19 +45,28 @@ release tags; a regression that only shows there is found by the nextnightly run, which opens the issue "Nightly CI is red", and at the latest bythe release run, which blocks publication.-macOS is different: a macOS failure must stop a change, not surface the-morning after. Every macOS leg of the affected lanes, the real runtimes (10-and 7 minutes) and the real browser included, therefore runs in the merge-queue, before anything lands. It does not run on the pull request: five-macOS slots serve every run, and when the short legs ran on each push as-well (one morning, 2026-10-13), pull requests waited 6 to 25 minutes for a-slot. The queue builds two groups at a time, so at most sixteen macOS legs-compete for the five slots; in the first such group all eight were done 14-minutes in. The whole Python suite on macOS (three shards of nine minutes)-runs nightly and on release tags; a merge group runs the macOS tests its-change can reach instead (`tests macos impact`), so a test that the change-breaks on macOS stops it in the queue. A macOS failure in a test the-selection does not reach is found by the nightly run.+macOS has five runner slots for everything: every pull request, every merge+group and every rebuild of a group after an entry ahead of it failed. Three+arrangements were tried on 2026-10-13 and measured:++- macOS legs on every pull request push: pull requests waited 6 to 25+ minutes for a slot.+- Every macOS leg of the affected lanes in the merge queue, plus the macOS+ test shards: a group carried up to eleven macOS jobs, and they waited 30+ to 54 minutes while the Linux and Windows jobs had long finished.+- At most two macOS jobs per group, which is what runs now: the macOS tests+ the change can reach, on one runner (`tests macos impact`), and the Apple+ Silicon desktop bundle when the macOS lane is affected.++So a test that a change breaks on macOS stops it in the queue, and a broken+macOS bundle does too. What the queue does not prove on macOS runs nightly+and on release tags: the lanes themselves on macOS (realtime contract,+updater, agent-runtime unit suite on the portable base install, native+crypto on Intel), both real runtimes, the real browser, and the whole Python+suite. A macOS failure there is found by the next nightly run, which opens+the issue "Nightly CI is red", and at the latest by the release run, which+blocks publication. A branch can ask for all of it at any time with+`gh workflow run ci.yml --ref <branch> -f full=false -f include_macos=true`.The nightly run has no reader waiting for it, so its matrices run one leg ata time (`matrix_parallel`) instead of queueing 22 macOS jobs ahead of every@@ -86,7 +95,7 @@ request, merge queue, and again on the push of the same commit).| `tests linux 1..6` | The whole suite in six shards. Batches of files run in fresh processes with a wall-clock budget; a failed batch is re-run file by file, a failed file once more (a pass there is reported as flaky). A file that runs out of its budget alone gets one more attempt with twice that budget, capped at the file ceiling: a file without history starts on the generic floor, and a pass there is reported as flaky and enters the history with its real duration. | `scripts/ci/run_tests_parallel.py` || `tests windows 1..6` | The whole suite in six shards on every tier, pull requests included, so a Windows-only failure blocks the pull request instead of ejecting it from the merge queue. | `scripts/ci/run_tests_parallel.py` || `tests macos 1..3` | The whole suite on macOS: nightly, release and manual runs with macOS only. | — |-| `tests macos impact` | Merge queue: the macOS tests the change can reach, before it lands. One runner for an ordinary change, the full three-way split when the change selects everything (the pipeline, conftest, the lockfile). Selected once, in `detect`. | `scripts/ci/select_tests.py` |+| `tests macos impact` | Merge queue: the macOS tests the change can reach, before it lands, on one runner. A change that reaches everything (the pipeline, conftest, the lockfile) runs the macOS-focused set instead: the tests of the code that asks for or acts on a macOS facility, about 200 files. Selected once, in `detect`. | `scripts/ci/select_tests.py --one-runner` || `test report + floor` | Proves the six Linux shards cover every discovered file exactly once, enforces the min-passed floor. Detection freezes one shared duration snapshot for all shards, including partial reruns. | `scripts/ci/ratchet_tests.py` || `duration cache` | Runs on main only (nightly, a manual run, a push that bypassed the queue) and only after every Linux and Windows shard succeeded: merges the shard timings into one history per OS, on top of the history the run started from, so a file that was flaky in one run keeps its timing. Windows shards by its own history; until one exists it uses the Linux one. | `scripts/ci/ratchet_tests.py durations` || Lanes | `frontend` (three test shards and the build, side by side), `jarvisctl`, `deps`, `realtime` (+ slim container), `updater` (in-app update, native handover, restart helper), `agent runtimes` (+ slim container + the real Hermes and OpenClaw at their pinned version; see [agent-runtimes.md](agent-runtimes.md#ci-and-release-gates)), `dragdrop`, `browser`, `macOS desktop`, `installer smoke` — each only when its paths change, each as wide as the tier: Linux + Windows on a pull request, + macOS in the merge queue, + Intel and ARM in the wide matrix. | `scripts/ci/plan_run.py` |diff --git a/scripts/ci/plan_run.py b/scripts/ci/plan_run.pyindex b029617e8a..7c2b4097c9 100644--- a/scripts/ci/plan_run.py+++ b/scripts/ci/plan_run.py@@ -14,13 +14,13 @@ run has to prove, not what could be run:the merge queue.``queue`` A merge-queue group, or a push that reached main without one. Theblocking proof of the exact tree main gets: everything ``pr`` runs- plus every macOS leg of the affected lanes, short and long (the- real runtimes and the real browser included). Nothing- macOS-specific that a lane tests lands unproven, and the five- slots are spent once per change, not once per push.- The whole Python suite on macOS is 27 runner-minutes: a group- runs the macOS tests its change can reach (select_tests.py), in- one job for an ordinary change.+ plus AT MOST TWO macOS jobs. One runs the macOS tests the change+ can reach (select_tests.py; the macOS-focused set when the change+ reaches everything). The other builds the Apple Silicon desktop+ bundle when the macOS lane is affected. Five macOS slots serve+ every group and every rebuild of one: with a macOS leg per lane+ plus the test shards a group carried eleven macOS jobs, and on+ 2026-10-13 those waited 30 to 54 minutes for a slot.``full`` Nightly, a release tag, a manual full dispatch. The wide matrix:Intel macOS, the ARM runners, every interpreter, the macOS testshards, and the Hermes install on Windows (14 to 23 minutes). A@@ -97,9 +97,9 @@ def decide("full_mode": full,"macos": macos,"pr_mode": pr_mode,- # The macOS legs of the affected lanes: in the queue, and wherever- # the caller asked for macOS.- "mac_lanes": tier == "queue" or macos,+ # A macOS leg per affected lane: only where the caller asked for+ # macOS (nightly, release, a dispatch with include_macos).+ "mac_lanes": macos,# The nightly run has no reader waiting for it but shares the macOS# slots with every merge group: its matrices run one leg at a time# instead of queueing 22 macOS jobs ahead of everybody else's.@@ -114,7 +114,7 @@ def matrices(tier: str, *, macos: bool) -> dict[str, Any]:"""Every job matrix of ci.yml for a tier. ``macos`` adds the wide legs."""if tier not in TIERS:raise ValueError(f"unknown tier {tier!r}")- mac_lanes = tier == "queue" or macos+ mac_lanes = macosqueue_legs = tier != "pr"base_os = [LINUX, WINDOWS]@@ -145,12 +145,11 @@ def matrices(tier: str, *, macos: bool) -> dict[str, Any]:{"runner": WINDOWS_ARM, "architecture": "arm64", "python": "3.14"},]- # Every change proves both real runtimes on Linux and OpenClaw on Windows,- # and in the queue both on macOS (10 and 7 minutes): a macOS failure must- # stop a change before it lands, not surface the morning after. The- # Hermes install on Windows waits for the nightly and release runs: 13- # minutes of upstream installer before the first turn, 14 to 23 minutes a- # job, and Windows is proven per change by OpenClaw and the unit suite.+ # Every change proves both real runtimes on Linux and OpenClaw on Windows.+ # The long legs wait for the nightly and release runs: both runtimes on+ # macOS (10 and 7 minutes of a macOS slot each) and the Hermes install on+ # Windows (13 minutes of upstream installer before the first turn, 14 to+ # 23 minutes a job).e2e = [{"os": LINUX, "runtime": "hermes"},{"os": LINUX, "runtime": "openclaw"},@@ -178,7 +177,7 @@ def matrices(tier: str, *, macos: bool) -> dict[str, Any]:"browser_os": browser,# Skipped on a pull request; the queue proves the Apple Silicon# bundle, the wide matrix adds both Intel rows.- "desktop_legs": "all" if macos else ("primary" if mac_lanes else "none"),+ "desktop_legs": "all" if macos else ("primary" if tier == "queue" else "none"),"linux_shards": list(range(1, LINUX_SHARDS + 1)),"windows_shards": list(range(1, WINDOWS_SHARDS + 1)),}diff --git a/scripts/ci/select_tests.py b/scripts/ci/select_tests.pyindex 47408c9614..414bdd800f 100644--- a/scripts/ci/select_tests.py+++ b/scripts/ci/select_tests.py@@ -18,6 +18,11 @@ Selection is textual and deliberately generous — FAIL OPEN:* conftest, packaging, lockfiles or the pipeline itself select EVERYTHING,and so does a selection larger than :data:`ALL_RATIO` of the suite.+``--one-runner`` bounds the selection to what one runner does in a few+minutes: a change that reaches everything (or more than+:data:`SHARD_FILES` files) runs the macOS-focused set instead, the tests of+the code that asks for or acts on a macOS facility.+Writes the file list to ``--out`` and ``mode=all|selected|none``,``count=N`` and ``shards=[...]`` (how many runners the selection needs) to``$GITHUB_OUTPUT``.@@ -36,7 +41,7 @@ REPO_ROOT = Path(__file__).resolve().parents[2]if str(REPO_ROOT) not in sys.path:sys.path.insert(0, str(REPO_ROOT))-from scripts.ci import agent_runtime_suite # noqa: E402+from scripts.ci import agent_runtime_suite, classify_changes # noqa: E402from scripts.ci.run_tests_parallel import discover # noqa: E402ALL_RATIO = 0.35@@ -119,6 +124,23 @@ def select(changed: list[str], tests: list[str], texts: dict[str, str]) -> tuplereturn "selected", sorted(chosen)+def mac_focus(tests: list[str]) -> list[str]:+ """The tests of the macOS lane's own code, plus the contract guards.++ About 200 files and two to three minutes on one runner: what a merge+ group runs on macOS when its change reaches the whole suite.+ """+ prefixes = tuple(p for p in classify_changes._MACOS_PREFIXES if p.startswith("tests/"))+ return sorted({t for t in tests if t.startswith(prefixes)} | {t for t in SMOKE if t in tests})+++def one_runner(mode: str, chosen: list[str], tests: list[str]) -> tuple[str, list[str]]:+ """Bound a selection to one runner; ``none`` stays ``none``."""+ if mode == "all" or len(chosen) > SHARD_FILES:+ return "selected", mac_focus(tests)+ return mode, chosen++def shards_for(mode: str, count: int) -> list[int]:"""The runners a selection needs: none, one, two, or the full split."""if mode == "none":@@ -132,6 +154,11 @@ def main(argv: list[str] | None = None) -> int:parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])parser.add_argument("--changed-from", type=Path, help="File with changed paths (else stdin).")parser.add_argument("--out", type=Path, default=Path("selected-tests.txt"))+ parser.add_argument(+ "--one-runner",+ action="store_true",+ help="Bound the selection to one runner (the macOS-focused set for a wide change).",+ )args = parser.parse_args(argv)if args.changed_from:@@ -144,6 +171,8 @@ def main(argv: list[str] | None = None) -> int:for t in tests}mode, chosen = select(changed, tests, texts)+ if args.one_runner:+ mode, chosen = one_runner(mode, chosen, tests)args.out.write_text("\n".join(chosen) + ("\n" if chosen else ""), encoding="utf-8")print(f"mode={mode} count={len(chosen)} of {len(tests)}")output = os.environ.get("GITHUB_OUTPUT")diff --git a/tests/unit/ci/test_agent_runtime_lane.py b/tests/unit/ci/test_agent_runtime_lane.pyindex e2daefa819..7aa2463966 100644--- a/tests/unit/ci/test_agent_runtime_lane.py+++ b/tests/unit/ci/test_agent_runtime_lane.py@@ -104,20 +104,19 @@ def test_ci_runs_the_lane_on_every_os_and_the_gate_waits_for_it():jobs = yaml.safe_load((ROOT / ".github/workflows/ci.yml").read_text(encoding="utf-8"))["jobs"]assert "agent_runtimes" in jobs["detect"]["outputs"]assert LANE_JOBS <= set(jobs["gate"]["needs"])- # Before anything lands (the merge queue) the unit suite has run on all- # three OSes, both real runtimes on Linux and macOS and OpenClaw on- # Windows; the nightly and release runs add the Hermes install on- # Windows. ci.yml reads the plan.+ # Every change runs the lane on Linux and Windows: the unit suite, both+ # real runtimes on Linux, OpenClaw on Windows. On macOS a merge group+ # runs the suite's tests through the impact selection; the nightly and+ # release runs run the lane itself on all three OSes. ci.yml reads the plan.oses = {"ubuntu-latest", "windows-latest", "macos-latest"}queue = plan_run.plan("merge_group")- assert set(queue["lane_os"]) == oses+ assert set(queue["lane_os"]) == oses - {"macos-latest"}assert {(leg["os"], leg["runtime"]) for leg in queue["e2e_matrix"]} == {("ubuntu-latest", "hermes"),("ubuntu-latest", "openclaw"),("windows-latest", "openclaw"),- ("macos-latest", "hermes"),- ("macos-latest", "openclaw"),}+ assert set(plan_run.plan("schedule")["lane_os"]) == osesassert {(leg["os"], leg["runtime"]) for leg in plan_run.plan("schedule")["e2e_matrix"]} == {(os, runtime) for os in oses for runtime in ("hermes", "openclaw")}diff --git a/tests/unit/ci/test_pipeline_audit.py b/tests/unit/ci/test_pipeline_audit.pyindex e5980af24f..121190fe75 100644--- a/tests/unit/ci/test_pipeline_audit.py+++ b/tests/unit/ci/test_pipeline_audit.py@@ -260,26 +260,34 @@ def test_a_pull_request_never_takes_a_macos_runner():assert {"os": "windows-latest", "python": "3.12"} in sized["updater_matrix"]-def test_nothing_macos_specific_lands_unproven():+def test_a_merge_group_takes_at_most_two_macos_runners():+ # Five macOS slots serve every group and every rebuild of one. With a+ # macOS leg per lane plus three test shards a group carried eleven macOS+ # jobs, and they waited 30 to 54 minutes for a slot (2026-10-13).sized = plan_run.plan("merge_group")- assert sized["mac_lanes"] and not sized["macos"]- assert sized["lane_os"] == ["ubuntu-latest", "windows-latest", "macos-latest"]- assert sized["desktop_legs"] == "primary"- # A macOS failure stops a change in the queue instead of surfacing the- # morning after: every macOS leg of the affected lanes, the real runtimes- # and the real browser included, runs before anything lands. Only the- # Hermes install on Windows (14 to 23 minutes) stays in the nightly and- # release runs.- assert {"os": "macos-latest", "python": "3.12"} in sized["updater_matrix"]- assert any(leg["runner"] == "macos-15-intel" for leg in sized["crypto_matrix"])- assert sized["browser_os"] == ["ubuntu-latest", "windows-latest", "macos-latest"]- assert {(leg["os"], leg["runtime"]) for leg in sized["e2e_matrix"]} == {- ("ubuntu-latest", "hermes"),- ("ubuntu-latest", "openclaw"),- ("windows-latest", "openclaw"),- ("macos-latest", "hermes"),- ("macos-latest", "openclaw"),- }+ assert not sized["mac_lanes"] and not sized["macos"]+ matrices = [v for k, v in sized.items() if k not in ("macos", "mac_lanes", "mac_impact")]+ assert "macos" not in json.dumps(matrices)+ # The two: the macOS tests the change can reach, on one runner, and the+ # Apple Silicon desktop bundle when the macOS lane is affected.+ assert sized["mac_impact"] is True and sized["desktop_legs"] == "primary"+ tests = ["tests/unit/platform/test_a.py", "tests/unit/brain/test_routing.py", "tests/x.py"]+ assert select_tests.one_runner("all", tests, tests) == (+ "selected",+ ["tests/unit/brain/test_routing.py", "tests/unit/platform/test_a.py"],+ )+ many = [f"tests/unit/z/test_{i}.py" for i in range(select_tests.SHARD_FILES + 1)]+ assert select_tests.one_runner("selected", many, many + tests)[1] == [+ "tests/unit/brain/test_routing.py",+ "tests/unit/platform/test_a.py",+ ]+ assert select_tests.one_runner("selected", tests[:1], tests) == ("selected", tests[:1])+ assert select_tests.one_runner("none", [], tests) == ("none", [])+ assert select_tests.shards_for("selected", 2) == [1]+ # The wide matrix keeps every macOS leg of every lane.+ wide = plan_run.plan("schedule")+ assert wide["lane_os"][-1] == "macos-latest" and "macos-latest" in wide["browser_os"]+ assert {"os": "macos-latest", "python": "3.12"} in wide["updater_matrix"]# The second Windows interpreter of the updater is the queue's one extra.assert {"os": "windows-latest", "python": "3.11"} in sized["updater_matrix"]wide = plan_run.plan("schedule")@@ -288,10 +296,6 @@ def test_nothing_macos_specific_lands_unproven():for os in ("ubuntu-latest", "windows-latest", "macos-latest")for runtime in ("hermes", "openclaw")}- # Exactly one macOS leg in each of these lanes: five macOS slots serve- # every agent's merge group at once.- for key in ("updater_matrix", "crypto_matrix"):- assert sum("macos" in json.dumps(leg) for leg in sized[key]) == 1, key# jarvisctl, dragdrop and the installer smoke have no macOS-specific code.assert sized["os_matrix"] == ["ubuntu-latest", "windows-latest"]# A push that reached main without the queue gets the same proof.@@ -322,7 +326,7 @@ def test_nightly_release_and_macos_dispatch_keep_the_wide_matrix():# The merge train's stand-in for a push on main gets a push's proof,# never the narrower one of a branch run.stand_in = plan_run.plan("workflow_dispatch", ref="refs/heads/main")- assert stand_in["tier"] == "queue" and not stand_in["pr_mode"] and stand_in["mac_lanes"]+ assert stand_in["tier"] == "queue" and not stand_in["pr_mode"] and stand_in["mac_impact"]assert plan_run.plan("workflow_dispatch", ref="refs/heads/claude/x")["tier"] == "pr"# The merge train's macOS-free full dispatch stays off macOS.train = plan_run.plan("workflow_dispatch", full_input=True)@@ -461,7 +465,7 @@ def test_a_red_nightly_reaches_someone_and_only_a_nightly_on_main_can_write_issu# The legs that left the per-change tiers are exactly what the nightly keeps.nightly, queue = plan_run.plan("schedule"), plan_run.plan("merge_group")only_nightly = [leg for leg in nightly["e2e_matrix"] if leg not in queue["e2e_matrix"]]- assert only_nightly == [{"os": "windows-latest", "runtime": "hermes"}]+ assert {"os": "windows-latest", "runtime": "hermes"} in only_nightly and len(only_nightly) == 3def test_the_nightly_run_never_queues_its_macos_legs_ahead_of_a_merge_group():@@ -524,7 +528,7 @@ def test_a_merge_group_runs_the_macos_tests_its_change_can_reach():# empty matrix can never reach the job.detect = ci["detect"]select = next(s for s in detect["steps"] if s.get("id") == "mactests")["run"]- assert "select_tests.py --changed-from changed.txt --out mac_tests.txt" in select+ assert "select_tests.py --one-runner --changed-from changed.txt --out mac_tests.txt" in selectassert "'[1]'" in detect["outputs"]["mac_test_shards"]shared = next(s for s in detect["steps"] if s.get("name") == "Share duration snapshot with every shard"