Skip to content

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.

ci: run the whole Windows suite on pull requests (#484)

Ruben Lütke55585ce7dbf8
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6e1e3765bc..bd19f821e7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -30,8 +30,10 @@
# Windows suite, and only a green `CI gate` there lands it. This is what keeps
# main green when PRs that pass alone break together.
#
-# Windows: the full sharded suite on merge groups / main / nightly / dispatch;
-# on a pull request only the tests the diff can reach (scripts/ci/select_tests.py).
+# Windows: the full suite in four shards on every run that has the python
+# lane, pull requests included, so a Windows-only failure blocks before the
+# merge instead of turning main red after it (the organisation runs on GitHub
+# Team: 60 concurrent jobs, 5 of them macOS).
# macOS (~10x runner cost): nightly and manual dispatch, plus the path-gated
# realtime contract and macOS desktop lanes.
#
@@ -130,10 +132,10 @@ jobs:
PR_BASE: ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha }}
run: |
# A merge-queue group and a push to main classify their lanes like a
- # pull request (the concurrent-job limit is shared by every agent's
- # PR), but always run the WHOLE test suite on Linux and Windows: the
- # proof that lands on main is never narrowed. A merge group's lanes
- # are classified against the queue base (main or the entry ahead).
+ # pull request (runners are shared by every agent's PR, and macOS
+ # has only five slots), and like a pull request they run the WHOLE
+ # test suite on Linux and Windows. A merge group's lanes are
+ # classified against the queue base (main or the entry ahead).
# Nightly and manual full runs force everything.
full=false; macos=false; pr_mode=false; tests_full=false
case "$EVENT" in
@@ -199,22 +201,18 @@ jobs:
if-no-files-found: error
retention-days: 7
- # Linux always runs the whole suite in six shards. Windows runs the
- # whole suite in four shards on main, nightly, full manual runs and
- # pipeline changes; on a pull request one runner takes the tests the
- # diff can reach. A push always runs the python lane's test jobs.
+ # The whole suite on both: six Linux shards, four Windows shards, on
+ # every run with the python lane. Pull requests used to get one Windows
+ # runner with only the tests the diff could reach, which let Windows-only
+ # failures through to main; the 60-job limit makes room for the full
+ # matrix. scripts/ci/select_tests.py stays for agent_land.py's local run.
- name: Size the test matrices
id: shards
shell: bash
run: |
echo 'linux_shards=[1,2,3,4,5,6]' >> "$GITHUB_OUTPUT"
- if [ "${{ steps.mode.outputs.tests_full }}" = "true" ] || [ "${{ steps.lanes.outputs.full }}" = "true" ]; then
- echo 'windows_shards=[1,2,3,4]' >> "$GITHUB_OUTPUT"
- echo 'tests_full=true' >> "$GITHUB_OUTPUT"
- else
- echo 'windows_shards=[1]' >> "$GITHUB_OUTPUT"
- echo 'tests_full=false' >> "$GITHUB_OUTPUT"
- fi
+ echo 'windows_shards=[1,2,3,4]' >> "$GITHUB_OUTPUT"
+ echo 'tests_full=true' >> "$GITHUB_OUTPUT"
gates:
name: static gates
diff --git a/docs/ci-pipeline.md b/docs/ci-pipeline.md
index 1a110f88b2..a5b65e5e81 100644
--- a/docs/ci-pipeline.md
+++ b/docs/ci-pipeline.md
@@ -24,7 +24,7 @@ agent branch ──► pull request ──► CI (lanes) ──► CI gate ─
| `live third-party sites` | Nightly only and non-blocking: the opt-in live checks of pages the app parses (`JARVIS_LIVE_NETWORK_TESTS=1`, ollama.com's library). A site redesign shows as a failed step and a run warning, never as a red gate. | — |
| `python contracts (fast)` | Import cleanliness on the bare install, the named contract guards, skill-routing precision and recall, plugin auth. Blocking, no baseline. | — |
| `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). | `scripts/ci/run_tests_parallel.py` |
-| `tests windows` | Four shards on full runs (merge queue, main, nightly, manual); on a pull request one runner takes only the tests the diff can reach. | `scripts/ci/select_tests.py` |
+| `tests windows` | The whole suite in four shards on every run with the python lane, pull requests included, so Windows-only failures block before the merge. | — |
| `tests macos 1..3` | Nightly and manual runs only (~10x runner cost). | — |
| `test report + floor` | Proves the six Linux shards cover every discovered file exactly once, enforces the min-passed floor, and on main refreshes the duration cache. Detection freezes one shared duration snapshot for all shards, including partial reruns. | `scripts/ci/ratchet_tests.py` |
| Lanes | `frontend`, `jarvisctl`, `deps`, `realtime` (3 OS + slim container), `updater` (3 OS: in-app update, native handover, restart helper), `dragdrop`, `browser`, `macOS desktop`, `installer smoke` — each only when its paths change. | — |
diff --git a/tests/unit/ci/test_pipeline_audit.py b/tests/unit/ci/test_pipeline_audit.py
index 7340684cb3..ebe76c56ae 100644
--- a/tests/unit/ci/test_pipeline_audit.py
+++ b/tests/unit/ci/test_pipeline_audit.py
@@ -208,6 +208,13 @@ def test_live_site_checks_run_only_nightly_and_never_fail_the_run():
assert all(s.get("continue-on-error") for s in job["steps"] if "pytest" in s.get("run", ""))
+def test_pull_requests_run_the_whole_windows_suite():
+ steps = workflows()["ci.yml"]["jobs"]["detect"]["steps"]
+ sizing = next(s for s in steps if s.get("id") == "shards")["run"]
+ assert "windows_shards=[1,2,3,4]" in sizing and "windows_shards=[1]'" not in sizing
+ assert "tests_full=true" in sizing and "tests_full=false" not in sizing
+
+
def test_merge_queue_runs_the_whole_suite_and_is_never_cancelled():
ci = workflows()["ci.yml"]
triggers = ci.get("on", ci.get(True))