Skip to content

The agent that grows with you

test(install-e2e): every desktop checkpoint chats through the journey mock

Teknium4174156c0d45
diff --git a/tests/install/macos-desktop-e2e.sh b/tests/install/macos-desktop-e2e.sh
index 2cf461f508c..c81049a4958 100755
--- a/tests/install/macos-desktop-e2e.sh
+++ b/tests/install/macos-desktop-e2e.sh
@@ -268,6 +268,14 @@ phase_install() {
}
}
}' "$installed_bin" || fail "installed app did not close normally; no smoke launch attempted"
+ # One journey mock from the first checkpoint on, as installer-script-e2e.sh does: the gateway
+ # this checkpoint starts is detached, survives this step, and keeps the provider URL it read
+ # at boot; phase_update's mock_start rebinds that URL's port. Without it the smoke starts a
+ # private mock whose port nothing can reclaim.
+ # shellcheck source=../install/e2e-assets/mock-provider.sh
+ source "$ASSETS/mock-provider.sh"
+ PATH="$(dirname "$HERMES_E2E_NODE"):$PATH" mock_start "$WORK_ROOT"
+ trap mock_stop EXIT
desktop_checkpoint old "$OLD_SHA" desktop-installer@latest
}
diff --git a/tests/install/windows-e2e.ps1 b/tests/install/windows-e2e.ps1
index 24fc0d62a28..145b2e0aa73 100644
--- a/tests/install/windows-e2e.ps1
+++ b/tests/install/windows-e2e.ps1
@@ -171,6 +171,10 @@ function Start-JourneyChat {
}
function Invoke-DesktopCheckpoint([string]$ChatPhase, [string]$Commit, [string]$Method) {
+ # Every checkpoint chats through the journey mock. Without it the smoke starts a private mock,
+ # and the detached gateway that checkpoint leaves running keeps that dead URL into later steps;
+ # the journey mock's URL file lets a later step's mock rebind the same port.
+ Start-JourneyChat
$script:ChatFailure = $true
$prevEap = $ErrorActionPreference
try {