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(browser): preserve native wheel linkage diagnostics

rubenluetke10-beepcbdd662f71f2
diff --git a/.github/workflows/desktop-installers.yml b/.github/workflows/desktop-installers.yml
index 1f16d9a5d4..0f1fd49f0f 100644
--- a/.github/workflows/desktop-installers.yml
+++ b/.github/workflows/desktop-installers.yml
@@ -201,6 +201,14 @@ jobs:
chmod +x packaging/macos/build.sh
./packaging/macos/build.sh
+ - name: Preserve native wheel diagnostics on build failure
+ if: failure() && hashFiles('jarvis/assets/browser/wheels/*.whl') != ''
+ uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
+ with:
+ name: browser-wheel-diagnostic-macos-${{ matrix.arch }}
+ path: jarvis/assets/browser/wheels/*.whl
+ retention-days: 3
+
- name: Verify the DMG browser provisioning and restart
shell: bash
run: |
diff --git a/scripts/prepare_browser_wheelhouse.py b/scripts/prepare_browser_wheelhouse.py
index 23a5a41029..c7f02ea80d 100644
--- a/scripts/prepare_browser_wheelhouse.py
+++ b/scripts/prepare_browser_wheelhouse.py
@@ -94,10 +94,13 @@ def main() -> int:
binary = Path(scratch) / Path(name).name
binary.write_bytes(archive.read(name))
links = run(["otool", "-L", str(binary)], capture_output=True).stdout
+ print(links, flush=True)
for line in links.splitlines()[1:]:
dependency = line.strip().split(" ", 1)[0]
if not dependency.startswith(("/usr/lib/", "/System/Library/")):
- raise RuntimeError("Cryptography wheel links a non-system shared library")
+ raise RuntimeError(
+ f"Cryptography wheel links a non-system shared library: {dependency}"
+ )
(assets / "requirements-bundled.lock").write_text(
add_wheel_hash(lock, built[0]), encoding="utf-8"
)