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
ci: show macOS failures before the merge, not the morning after (#586)
Ruben Lütkeabbb81cfba6a
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 395e1b0b3e..b3757762c9 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -38,15 +38,15 @@# times - pull request, merge queue, and again on the push that landed the# very same commit.# pr pull request: the whole Linux + Windows suite and every affected-# lane on Linux and Windows. No macOS.-# queue merge-queue group: everything `pr` runs plus one SHORT macOS leg-# per affected lane. The blocking macOS proof per change; several-# groups share the five macOS slots, and no leg takes much longer-# than the test shards.+# lane on Linux, Windows and macOS. The macOS legs here are the+# short ones (one to four minutes): a macOS failure shows on the+# pull request, and they end before the Windows shards do.+# queue merge-queue group: everything `pr` runs plus the long macOS legs+# (real runtimes, real browser). Nothing macOS-specific that a lane+# tests lands unproven; the groups share the five macOS slots.# full nightly, release tags, manual full dispatch: Intel macOS, the ARM-# runners, every interpreter, the macOS test shards, and the long-# real-product legs (the Hermes install on Windows, the real-# runtimes and the real browser on macOS). A red nightly opens an+# runners, every interpreter, the macOS test shards, and the+# Hermes install on Windows (14-23 minutes). A red nightly opens an# issue (nightly-alert.yml).# A push to main whose commit the merge queue already passed runs nothing# but `detect` and the gate (`proven`); a push that bypassed the queue runs@@ -781,8 +781,8 @@ jobs:if: needs.detect.outputs.deps == 'true'strategy:fail-fast: false- # 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 and Intel macOS on every change, both interpreters and+ # Apple Silicon in the wide matrix (plan_run.py).matrix:include: ${{ fromJSON(needs.detect.outputs.crypto_matrix) }}runs-on: ${{ matrix.runner }}@@ -856,8 +856,8 @@ jobs:# The in-app updater on every OS it ships to. Each one replaces a running# 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+ # A pull request runs Linux, macOS and the real Windows upgrade; the merge+ # queue adds the second Windows interpreter; the wide matrix adds the# Intel Mac (scripts/ci/plan_run.py).## Python: 3.11 is the floor, 3.12 is what the native installers freeze.@@ -1047,9 +1047,9 @@ 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 before anything lands. Fakes only: no- # key, no network to a model.+ # and society code that drives them, on all three OSes on every pull+ # request: a macOS failure shows before the queue. Fakes only: no key, no+ # network to a model.agent-runtimes-unit:needs: detectif: needs.detect.outputs.agent_runtimes == 'true'@@ -1108,8 +1108,9 @@ 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; nightly and release runs add the Hermes- # install on Windows (14-23 minutes) and both macOS legs+ # 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)# (scripts/ci/plan_run.py).agent-runtimes-e2e:needs: detectdiff --git a/AGENTS.md b/AGENTS.mdindex dcfba9b6e9..8fa6dde6db 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -255,7 +255,8 @@ 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; macOS runs in the merge+a person. A pull request runs Linux, Windows and the short macOS checks;+the long macOS checks (real runtimes, real browser) run in the mergequeue (`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 adiff --git a/docs/agent-runtimes.md b/docs/agent-runtimes.mdindex 0b6caf77bf..50c3c130ea 100644--- a/docs/agent-runtimes.md+++ b/docs/agent-runtimes.md@@ -407,16 +407,16 @@ 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, Windows and macOS on every pull request and merge group; 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 and merge group: Linux × Hermes, OpenClaw and Windows × OpenClaw. Nightly and release: Windows × Hermes and macOS × Hermes, OpenClaw 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. |+| `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 OpenClaw on Windows-(`scripts/ci/plan_run.py` sizes the matrices). The Hermes install on Windows-(14 to 23 minutes a job, 13 of them the upstream installer) and the real-runtimes on macOS (10 and 7 minutes, on five runner slots shared with every-merge group) run nightly, on release tags and on request+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(`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 e8d7b63c1d..21c500a9b5 100644--- a/docs/ci-pipeline.md+++ b/docs/ci-pipeline.md@@ -24,9 +24,9 @@ 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 one short macOS leg per affected lane (realtime contract, updater, agent-runtime unit suite, native crypto on Intel, the Apple Silicon desktop bundle). 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 long real-product legs: the Hermes install on Windows, the real runtimes and the real browser on macOS. A red nightly opens the issue "Nightly CI is red" (`nightly-alert.yml`). | ~40 min |+| `pr` | pull request, branch run dispatched by the merge train | Static gates, the whole Linux + Windows suite, every affected lane on Linux, Windows and macOS. The macOS legs here are the short ones, one to four minutes (realtime contract, updater, agent-runtime unit suite, native crypto on Intel, the Apple Silicon desktop bundle): a macOS failure shows on the pull request, and they end before the Windows shards do. | ~10 min |+| `queue` | merge-queue group; a push that reached main without the queue | Everything `pr` runs plus the long macOS legs: both real runtimes and the real browser on macOS (5 to 10 minutes each). The blocking proof of the exact tree main gets; nothing macOS-specific that a lane tests lands unproven. | ~11-13 min, longer when several groups need the five macOS slots at once |+| `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 |A queue group and the push that lands it are one commit, so the push run@@ -40,12 +40,19 @@ first queue runs of this design carried six to eight macOS legs each: threegroups and one manual full run waited more than half an hour on macOS alone.And the Hermes install on Windows (13 minutes of upstream installer beforethe first turn, 14 to 23 minutes a job) was the last job of three in four-merge groups. So a group keeps macOS legs of one to four minutes, and the-long real-product legs run nightly and on release tags: the Hermes install-on Windows, the two real-runtime legs on macOS (10 and 7 minutes) and the-real-browser leg on macOS. A regression that only shows 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.+merge groups. The Hermes install on Windows therefore runs nightly and on+release tags; a regression that only shows 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.++macOS is different: a macOS failure must stop a change, not surface the+morning after. The short macOS legs run on every pull request, where they+finish inside the time the Windows shards take anyway. The long ones (both+real runtimes, 10 and 7 minutes, and the real browser) run once per change,+in the merge queue, which builds three groups at a time. When several+groups carry them at once they wait for one of the five macOS slots, and+the queue run takes that much longer. The whole Python suite on macOS+(three shards of nine minutes) still runs nightly and on release tags only.A branch gets the whole macOS matrix before the queue with`gh workflow run ci.yml --ref <branch> -f full=false -f include_macos=true`.diff --git a/scripts/ci/plan_run.py b/scripts/ci/plan_run.pyindex 8e316d035e..0a862c7fa6 100644--- a/scripts/ci/plan_run.py+++ b/scripts/ci/plan_run.py@@ -8,19 +8,20 @@ run has to prove, not what could be run:``pr`` A pull request (or a branch run the merge train dispatched). Fastfeedback: the whole Linux and Windows suite and every affected lane- on Linux and Windows, no macOS. It is the admission ticket to the+ on Linux, Windows and macOS. The macOS legs here are the short+ ones (one to four minutes): they end inside the nine minutes the+ Windows shards take, so a macOS failure shows on the pull request+ and costs the run no time. It is the admission ticket to themerge 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 one SHORT macOS leg per affected lane. Several groups build- at once on five macOS slots, and the gate waits for the slowest- job, so no leg of a group may take much longer than the test- shards do.+ plus the long macOS legs, the real runtimes and the real browser+ (5 to 10 minutes each). Nothing macOS-specific that a lane tests+ lands unproven; the price is paid once per change, not per push.``full`` Nightly, a release tag, a manual full dispatch. The wide matrix:Intel macOS, the ARM runners, every interpreter, the macOS test- shards, and the long real-product legs: the Hermes install on- Windows, the real runtimes and the real browser on macOS. A red- nightly opens an issue (.github/workflows/nightly-alert.yml).+ shards, and the Hermes install on Windows (14 to 23 minutes). A+ red nightly opens an issue (.github/workflows/nightly-alert.yml).``macos`` (nightly, tags, a dispatch with ``include_macos``) selects the widematrix on any tier: ``gh workflow run ci.yml --ref <branch> -f full=false@@ -92,9 +93,9 @@ def decide("full_mode": full,"macos": macos,"pr_mode": pr_mode,- # One macOS leg per affected lane: in the queue, and wherever the- # caller asked for macOS.- "mac_lanes": tier == "queue" or macos,+ # One macOS leg per affected lane on every per-change tier; a full+ # run carries them only when the caller asked for macOS.+ "mac_lanes": tier != "full" or macos,}@@ -102,8 +103,10 @@ 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 = tier != "full" or macosqueue_legs = tier != "pr"+ # The long macOS legs: once per change, in the queue, and in the wide matrix.+ long_mac = tier == "queue" or macosbase_os = [LINUX, WINDOWS]updater = [@@ -133,27 +136,27 @@ 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.- # The long legs wait for the nightly and release runs: the Hermes install- # on Windows is 13 minutes of upstream installer before the first turn (14- # to 23 minutes a job, the last job of three in four merge groups), and- # the two macOS legs (10 and 7 minutes) held every macOS slot for half an- # hour with three groups in the queue.+ # 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.e2e = [{"os": LINUX, "runtime": "hermes"},{"os": LINUX, "runtime": "openclaw"},{"os": WINDOWS, "runtime": "openclaw"},]+ if long_mac:+ e2e += [{"os": MACOS, "runtime": "hermes"}, {"os": MACOS, "runtime": "openclaw"}]if macos:- e2e += [- {"os": WINDOWS, "runtime": "hermes"},- {"os": MACOS, "runtime": "hermes"},- {"os": MACOS, "runtime": "openclaw"},- ]+ e2e.append({"os": WINDOWS, "runtime": "hermes"})browser = list(base_os)+ if long_mac:+ browser.append(MACOS)if macos:- browser += [MACOS, LINUX_ARM, WINDOWS_ARM, MACOS_INTEL]+ browser += [LINUX_ARM, WINDOWS_ARM, MACOS_INTEL]return {# jarvisctl, dragdrop and the installer smoke stay off macOS unless@@ -164,8 +167,8 @@ def matrices(tier: str, *, macos: bool) -> dict[str, Any]:"crypto_matrix": crypto,"e2e_matrix": e2e,"browser_os": browser,- # Skipped on a pull request; the queue proves the Apple Silicon- # bundle, the wide matrix adds both Intel rows.+ # Every change proves the Apple Silicon bundle (four minutes); the+ # wide matrix adds both Intel rows."desktop_legs": "all" if macos else ("primary" if mac_lanes else "none"),"linux_shards": list(range(1, LINUX_SHARDS + 1)),"windows_shards": list(range(1, WINDOWS_SHARDS + 1)),diff --git a/tests/unit/ci/test_agent_runtime_lane.py b/tests/unit/ci/test_agent_runtime_lane.pyindex 908665bb06..04151b5a26 100644--- a/tests/unit/ci/test_agent_runtime_lane.py+++ b/tests/unit/ci/test_agent_runtime_lane.py@@ -104,17 +104,20 @@ 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 OpenClaw on Windows; the- # nightly and release runs add the Hermes install on Windows and both- # runtimes on macOS. ci.yml reads the plan.+ # A pull request runs the unit suite on all three OSes. Before anything+ # lands (the merge queue) both real runtimes have run on Linux and macOS+ # and OpenClaw on Windows; the nightly and release runs add the Hermes+ # install on Windows. ci.yml reads the plan.oses = {"ubuntu-latest", "windows-latest", "macos-latest"}+ assert set(plan_run.plan("pull_request")["lane_os"]) == osesqueue = plan_run.plan("merge_group")assert set(queue["lane_os"]) == osesassert {(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 {(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 86f2faa56c..a911448270 100644--- a/tests/unit/ci/test_pipeline_audit.py+++ b/tests/unit/ci/test_pipeline_audit.py@@ -243,11 +243,18 @@ def test_merge_queue_runs_the_whole_suite_and_is_never_cancelled():# --------------------------------------------------------------------------- tiers-def test_a_pull_request_never_takes_a_macos_runner():+def test_a_pull_request_shows_macos_failures_with_short_legs_only():sized = plan_run.plan("pull_request")- assert sized["tier"] == "pr" and sized["pr_mode"] and not sized["mac_lanes"]- assert sized["desktop_legs"] == "none"- assert "macos" not in json.dumps([v for k, v in sized.items() if k != "macos"])+ assert sized["tier"] == "pr" and sized["pr_mode"] and sized["mac_lanes"]+ # One short macOS leg per affected lane: a macOS failure shows on the+ # pull request, and the legs end before the Windows shards do.+ assert sized["lane_os"] == ["ubuntu-latest", "windows-latest", "macos-latest"]+ assert sized["desktop_legs"] == "primary"+ assert {"os": "macos-latest", "python": "3.12"} in sized["updater_matrix"]+ # The long macOS legs (real runtimes, real browser) run once per change, in the queue.+ assert "macos" not in json.dumps([sized["e2e_matrix"], sized["browser_os"]])+ # Nothing in jarvisctl, dragdrop or the installer smoke is macOS-specific.+ assert sized["os_matrix"] == ["ubuntu-latest", "windows-latest"]# The slowest real-runtime leg never runs per change.assert {"os": "windows-latest", "runtime": "hermes"} not in sized["e2e_matrix"]assert {"os": "windows-latest", "runtime": "openclaw"} in sized["e2e_matrix"]@@ -255,20 +262,22 @@ def test_a_pull_request_never_takes_a_macos_runner():assert {"os": "windows-latest", "python": "3.12"} in sized["updater_matrix"]-def test_the_merge_queue_proves_one_short_macos_leg_per_lane_and_the_slow_legs():+def test_nothing_macos_specific_lands_unproven():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"- # The gate waits for the slowest job and five macOS slots serve every- # merge group: the long legs (the Hermes install on Windows, the real- # runtimes and the real browser on macOS) run nightly and on release.- assert sized["browser_os"] == ["ubuntu-latest", "windows-latest"]- assert sized["e2e_matrix"] == plan_run.plan("pull_request")["e2e_matrix"]+ # A macOS failure stops a change in the queue instead of surfacing the+ # morning after: the real runtimes and the real browser run on macOS+ # before anything lands. Only the Hermes install on Windows (14 to 23+ # minutes) stays in the nightly and release runs.+ 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"),}# The second Windows interpreter of the updater is the queue's one extra.assert {"os": "windows-latest", "python": "3.11"} in sized["updater_matrix"]@@ -451,7 +460,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 {"os": "windows-latest", "runtime": "hermes"} in only_nightly and len(only_nightly) == 3+ assert only_nightly == [{"os": "windows-latest", "runtime": "hermes"}]def test_only_a_complete_green_run_on_main_writes_the_duration_caches():