The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(install-e2e): complete updates before macOS desktop smoke
ethernet9bc4fef2ecff
diff --git a/tests/install/installer-script-e2e.sh b/tests/install/installer-script-e2e.shindex 4a957db3326..f662a4f4a7f 100755--- a/tests/install/installer-script-e2e.sh+++ b/tests/install/installer-script-e2e.sh@@ -475,22 +475,20 @@ esac# the flag inside makes this second call a no-op on those legs.collect_install_side_logs-# A pre-handoff release cannot complete inside `hermes update`: its update path-# has no retired-hook seam to reach, so the update ends with the tree at HEAD-# and no published launcher. The NEXT ordinary startup is what completes it-# (hermes_bootstrap -> prepare_launch -> sync PM, publish launchers, re-exec).-# Drive that startup here, WITHOUT the lazy-install ban, and only when the-# launcher is missing -- so a healthy update is still judged by the strict-# checkpoint below, and `--version` probes keep their ban. A probe must never-# complete an unfinished update; a real startup is exactly how a user does it.-if ! source_hermes "$INSTALL_DIR" >/dev/null 2>&1; then- step "next ordinary startup after the update (completes a pre-handoff release)"+# The update may publish a launcher before its installed dependency inputs are+# current. The next non-metadata startup then owns source completion, including+# rebuilding the packaged desktop app. Launching that app directly first lets+# its backend replace the live bundle and kills Playwright's renderer target.+# Desktop legs must therefore drive the ordinary CLI startup even when the+# launcher exists. No-desktop legs retain the legacy missing-launcher recovery.+if [ "$EXPECT_DESKTOP" = "present" ] || ! source_hermes "$INSTALL_DIR" >/dev/null 2>&1; then+ step "next ordinary startup after the update (completes deferred source-update work)"STARTUP_HERMES="$(source_hermes_for_startup "$INSTALL_DIR")" \|| fail "no installed command to start after the update"startup_rc=0- "$STARTUP_HERMES" status > "$LOG_DIR/post-update-startup.log" 2>&1 || startup_rc=$?+ source_build_env "$STARTUP_HERMES" status > "$LOG_DIR/post-update-startup.log" 2>&1 || startup_rc=$?log_group "post-update startup" "$LOG_DIR/post-update-startup.log"- ok "first startup after the update ran (exit $startup_rc); the checkpoint below asserts the launcher it must have published"+ ok "post-update startup ran (exit $startup_rc); the read-only checks below assert completion"fiassert_checkout "$TARGET_SHA" "$TARGET_LABEL"diff --git a/tests/install/macos-desktop-e2e.sh b/tests/install/macos-desktop-e2e.shindex ab0b8f2f42a..8ff5e82deb5 100755--- a/tests/install/macos-desktop-e2e.sh+++ b/tests/install/macos-desktop-e2e.sh@@ -390,23 +390,19 @@ PYEOFls -la "$INSTALL_DIR/venv" > "$ildest/venv-ls.txt" 2>/dev/null || trueok "collected install-side logs to $ildest"- # A pre-handoff release cannot complete inside `hermes update`: its update- # path reaches no retired-hook seam, so the update ends with the tree at HEAD- # and no published launcher. The NEXT ordinary startup completes it- # (hermes_bootstrap -> prepare_launch -> sync PM, publish launchers, re-exec).- # Drive that startup here, WITHOUT the lazy-install ban, and only when the- # launcher is missing -- so a healthy update is still judged by the strict- # check below, and `--version` probes keep their ban. A probe must never- # complete an unfinished update; a real startup is exactly how a user does it.- if ! source_hermes "$INSTALL_DIR" >/dev/null 2>&1; then- step "next ordinary startup after the update (completes a pre-handoff release)"- local startup_hermes startup_rc=0- startup_hermes="$(source_hermes_for_startup "$INSTALL_DIR")" \- || fail "no installed command to start after the update"- "$startup_hermes" status > "$LOG_DIR/post-update-startup.log" 2>&1 || startup_rc=$?- log_group "post-update startup" "$LOG_DIR/post-update-startup.log"- ok "first startup after the update ran (exit $startup_rc); the check below asserts the launcher it must have published"- fi+ # The update may publish a launcher before its installed dependency inputs+ # are current. The next non-metadata startup then owns source completion,+ # including rebuilding the packaged desktop app. Launching that app directly+ # first lets its backend replace the live bundle and kills Playwright's+ # renderer target. Always drive the ordinary CLI startup before inspecting or+ # launching the app; launcher presence alone does not prove completion.+ step "next ordinary startup after the update (completes deferred source-update work)"+ local startup_hermes startup_rc=0+ startup_hermes="$(source_hermes_for_startup "$INSTALL_DIR")" \+ || fail "no installed command to start after the update"+ source_build_env "$startup_hermes" status > "$LOG_DIR/post-update-startup.log" 2>&1 || startup_rc=$?+ log_group "post-update startup" "$LOG_DIR/post-update-startup.log"+ ok "post-update startup ran (exit $startup_rc); the read-only checks below assert completion"local commandcommand="$(source_hermes "$INSTALL_DIR")" || fail "no installed command after update"