The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(e2e): wait for macOS setup completion before source verification
ethernet1a495c4033d7
diff --git a/tests/install/e2e-assets/drive-dmg-install.sh b/tests/install/e2e-assets/drive-dmg-install.shindex f69cbb1a00b..e56649092e5 100644--- a/tests/install/e2e-assets/drive-dmg-install.sh+++ b/tests/install/e2e-assets/drive-dmg-install.sh@@ -99,8 +99,9 @@ click_install() {# Use the same source-launcher selection as the later read-only checkpoint:# PM installs publish .hermes/bin/hermes; older releases use venv/bin/hermes.-# The desktop app build is near the end, so success requires all three or-# the EXIT trap kills the installer mid-build.+# The first packaged app can land before the products stage finishes (and can+# be rebuilt again). Wait for the bootstrap's terminal marker, published only+# after every stage succeeds, before the EXIT trap stops the installer.# shellcheck source=source-driver.shsource "$(dirname "${BASH_SOURCE[0]}")/source-driver.sh"installed_app() {@@ -114,7 +115,10 @@ installed_app() {return 1}install_complete() {- [ -d "$INSTALL_DIR/.git" ] && source_hermes "$INSTALL_DIR" >/dev/null 2>&1 && installed_app+ [ -f "$INSTALL_DIR/.hermes-bootstrap-complete" ] \+ && [ -d "$INSTALL_DIR/.git" ] \+ && source_hermes "$INSTALL_DIR" >/dev/null 2>&1 \+ && installed_app}# The bootstrap parks on an error screen instead of exiting when a stage# fails (e.g. a transient 429 downloading install.sh), with a Retry buttondiff --git a/tests/scripts/install/test_dmg_install_driver.py b/tests/scripts/install/test_dmg_install_driver.pyindex e082568367a..237659464ca 100644--- a/tests/scripts/install/test_dmg_install_driver.py+++ b/tests/scripts/install/test_dmg_install_driver.py@@ -1,4 +1,4 @@-"""The DMG driver must wait for the source launcher and packaged Desktop."""+"""The DMG driver must wait for bootstrap completion, not merely a packaged Desktop."""import osfrom pathlib import Path@@ -17,6 +17,7 @@ DRIVER = Path(__file__).resolve().parents[2] / "install/e2e-assets/drive-dmg-ins("checkout", False),("launcher", False),("app", False),+ ("completion", False),])def test_dmg_driver_requires_complete_pm_source_install(tmp_path, missing, expected):root = tmp_path / "installed source"@@ -33,6 +34,8 @@ def test_dmg_driver_requires_complete_pm_source_install(tmp_path, missing, expeclauncher.chmod(0o755)if missing != "app":(root / "apps/desktop/release/mac-arm64/Hermes.app").mkdir(parents=True)+ if missing != "completion":+ (root / ".hermes-bootstrap-complete").write_text("completed", encoding="utf-8")# The legacy file must not mask a missing PM publication.legacy = root / "venv/bin/hermes"legacy.parent.mkdir(parents=True)