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: run the in-app updater suite on Windows, macOS and Linux
rubenluetke10-beep5e1d57a40fd4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 6341b6c4c0..43f907fbcd 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -90,6 +90,7 @@ jobs:browser: ${{ steps.lanes.outputs.browser }}macos_desktop: ${{ steps.lanes.outputs.macos_desktop }}installer: ${{ steps.lanes.outputs.installer }}+ updater: ${{ steps.lanes.outputs.updater }}macos: ${{ steps.mode.outputs.macos }}base: ${{ steps.mode.outputs.base }}pr_mode: ${{ steps.mode.outputs.pr_mode }}@@ -546,6 +547,51 @@ jobs:- name: Provider-neutral realtime contractrun: python -m pytest tests/contract/test_gpt_live.py tests/contract/test_realtime_provider_contract.py tests/contract/test_realtime_reliability_gate.py -q -p no:cacheprovider+ # 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,+ # so this lane is never narrowed to one runner the way PR test jobs are.+ updater:+ name: updater (${{ matrix.os }})+ needs: detect+ if: needs.detect.outputs.updater == 'true'+ strategy:+ fail-fast: false+ matrix:+ os: [ubuntu-latest, windows-latest, macos-latest]+ runs-on: ${{ matrix.os }}+ timeout-minutes: 25+ steps:+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2+ with:+ persist-credentials: false+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0+ with:+ python-version: "3.11"+ - name: Portable base + focused runner+ shell: bash+ run: |+ python -m pip install -e .+ python -m pip install pytest pytest-asyncio+ - name: Updater suite (status, verify, handover, restart, rollback)+ shell: bash+ run: |+ git config --global user.email [email protected]+ git config --global user.name ci+ python -m pytest -q -p no:cacheprovider -rs \+ tests/unit/core/test_installer_update.py \+ tests/unit/install/test_installer_update_contract.py \+ tests/unit/ui/test_relauncher.py \+ tests/unit/ui/test_relauncher_frozen.py \+ tests/unit/ui/test_relauncher_fresh_env.py \+ tests/unit/ui/test_relauncher_update_transaction.py \+ tests/unit/ui/web/test_update_routes.py \+ tests/unit/ui/web/test_update_routes_frozen.py \+ tests/unit/web/test_update_progress.py \+ tests/unit/web/test_update_progress_route.py \+ tests/unit/web/test_update_subprocess_stream.py \+ tests/integration/test_update_apply_real_git.py+realtime-slim:name: realtime on python:3.11-slim (no PortAudio)needs: detect@@ -667,6 +713,7 @@ jobs:- browser- macos-desktop- installer+ - updaterif: always()runs-on: ubuntu-latesttimeout-minutes: 5diff --git a/docs/ci-pipeline.md b/docs/ci-pipeline.mdindex c1e097fb19..61d4de0b0d 100644--- a/docs/ci-pipeline.md+++ b/docs/ci-pipeline.md@@ -25,7 +25,7 @@ agent branch ──► pull request ──► CI (lanes) ──► CI gate ─| `tests windows` | Four shards on full runs; on a pull request one runner takes only the tests the diff can reach. | `scripts/ci/select_tests.py` || `tests macos 1..3` | Nightly and manual runs only (~10x runner cost). | — || `test report + floor` | Sums all Linux shards, enforces the min-passed floor, lists baselined failures that now pass, and on main refreshes the per-file duration cache that balances the shards. | `scripts/ci/ratchet_tests.py` |-| Lanes | `frontend`, `jarvisctl`, `deps`, `realtime` (3 OS + slim container), `dragdrop`, `browser`, `macOS desktop`, `installer smoke` — each only when its paths change. | — |+| 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. | — || `CI gate` | Aggregates every job. **The only required check.** Skipped lanes pass; the nightly run is strict and fails on any skip. | `scripts/ci/required_results.py` |### Known failures: the ratchetdiff --git a/scripts/ci/classify_changes.py b/scripts/ci/classify_changes.pyindex 742e0a1202..d01bcbb73b 100644--- a/scripts/ci/classify_changes.py+++ b/scripts/ci/classify_changes.py@@ -142,6 +142,30 @@ _INSTALLER_FILES = {".github/workflows/sign-installer.yml",}+# In-app updater: status, download + verify, native handover, the restart+# helper that finishes it, and the installer scripts it hands over to. Each+# OS replaces a running app differently, so this lane runs on all three.+_UPDATER_PREFIXES = (+ "jarvis/core/installer_update",+ "jarvis/core/frozen",+ "jarvis/ui/relauncher",+ "jarvis/ui/web/update_routes",+ "packaging/",+ "tests/fakes/fake_installer_update",+ "tests/integration/test_update_",+ "tests/unit/core/test_installer_update",+ "tests/unit/install/test_installer_update",+ "tests/unit/ui/test_relauncher",+ "tests/unit/ui/web/test_update_routes",+ "tests/unit/web/test_update_",+)+_UPDATER_FILES = {+ "jarvis/__main__.py",+ "jarvis/ui/desktop_app.py",+ "jarvis/ui/web/settings_routes.py",+ ".github/workflows/desktop-installers.yml",+} | _DEPS_FILES+LANES = ("python","frontend",@@ -152,6 +176,7 @@ LANES = ("browser","macos_desktop","installer",+ "updater",)@@ -194,6 +219,7 @@ def classify(paths: Iterable[str], *, full: bool = False) -> dict[str, bool]:"browser": _any(changed, _BROWSER_PREFIXES, _BROWSER_FILES),"macos_desktop": _any(changed, _MACOS_PREFIXES, _MACOS_FILES),"installer": _any(changed, _INSTALLER_PREFIXES, _INSTALLER_FILES),+ "updater": _any(changed, _UPDATER_PREFIXES, _UPDATER_FILES),"full": False,}diff --git a/tests/unit/ci/test_pipeline_scripts.py b/tests/unit/ci/test_pipeline_scripts.pyindex fcad7c9db6..b65f2d6442 100644--- a/tests/unit/ci/test_pipeline_scripts.py+++ b/tests/unit/ci/test_pipeline_scripts.py@@ -54,6 +54,22 @@ def test_route_change_turns_on_cli_lane_and_windows_path_is_normalized():assert result["python"] is True+def test_updater_change_turns_on_the_cross_os_updater_lane():+ for path in (+ "jarvis/core/installer_update.py",+ "jarvis\\ui\\relauncher.py",+ "packaging/windows/PersonalJarvis.iss",+ "tests/unit/ui/web/test_update_routes_frozen.py",+ ):+ assert classify_changes.classify([path])["updater"] is True, path+++def test_unrelated_python_change_leaves_the_updater_lane_off():+ result = classify_changes.classify(["jarvis/society/roster.py"])+ assert result["python"] is True+ assert result["updater"] is False++def test_lockfile_change_reaches_deps_realtime_and_installer():result = classify_changes.classify(["requirements.txt"])assert result["deps"] and result["realtime"] and result["installer"]