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.

test(install): isolate CI package manager and verify older releases

rubenluetke10-beepb97256ea397f
diff --git a/.github/workflows/installer-smoke.yml b/.github/workflows/installer-smoke.yml
index ce916391e8..a878f08402 100644
--- a/.github/workflows/installer-smoke.yml
+++ b/.github/workflows/installer-smoke.yml
@@ -428,6 +428,10 @@ jobs:
env:
JARVIS_INSTALL_TAG: ${{ steps.tag.outputs.tag }}
JARVIS_INSTALL_DIR: /tmp/jarvis-smoke-install
+ # This job verifies the latest published release even weeks later.
+ # Its signature chain still runs; only the 24-hour recency policy is
+ # waived for this historical artifact in CI.
+ JARVIS_INSTALL_ALLOW_STALE: "1"
run: |
set -euo pipefail
REL_BASE="https://github.com/${{ github.repository }}/releases/download/${JARVIS_INSTALL_TAG}"
diff --git a/tests/unit/install/test_install_sh_stage1.py b/tests/unit/install/test_install_sh_stage1.py
index 3c8fdc0518..f776500e40 100644
--- a/tests/unit/install/test_install_sh_stage1.py
+++ b/tests/unit/install/test_install_sh_stage1.py
@@ -72,13 +72,15 @@ class LinuxStage1BootstrapTests(unittest.TestCase):
encoding="utf-8",
)
apt.chmod(0o755)
+ # Hosted CI runners are non-root; their real sudo resets PATH and
+ # would run the real apt-get instead of the harmless test stub.
+ sudo = stubs / "sudo"
+ sudo.write_text('#!/bin/sh\n"$@"\n', encoding="utf-8")
+ sudo.chmod(0o755)
if pretend_unprivileged:
user_id = stubs / "id"
user_id.write_text('#!/bin/sh\nprintf "1000\\n"\n', encoding="utf-8")
user_id.chmod(0o755)
- sudo = stubs / "sudo"
- sudo.write_text('#!/bin/sh\n"$@"\n', encoding="utf-8")
- sudo.chmod(0o755)
source = INSTALL_SH.read_text(encoding="utf-8")
self.assertIn(STOP_BEFORE_CLONE, source)