Skip to content

The agent that grows with you

ci(install-e2e): collapse the method vocabulary - 3 install ids, install+2 update ids

ethernet6d7ba869630a
diff --git a/.github/workflows/install-e2e-macos-run.yml b/.github/workflows/install-e2e-macos-run.yml
index 51e28efb76a..5767986bf0b 100644
--- a/.github/workflows/install-e2e-macos-run.yml
+++ b/.github/workflows/install-e2e-macos-run.yml
@@ -11,8 +11,8 @@ name: Install & Update E2E — macOS (reusable)
# workflow's job-level `if`.
#
# Declared methods (see the generator's SPEC):
-# install: curl-bash, packaged-app
-# update: curl-bash, hermes-update, app-update
+# install: installer-script
+# update: installer-script, hermes-update, app-update
on:
workflow_call:
diff --git a/.github/workflows/install-e2e-run.yml b/.github/workflows/install-e2e-run.yml
index db88cfbcd00..021ce45ddf6 100644
--- a/.github/workflows/install-e2e-run.yml
+++ b/.github/workflows/install-e2e-run.yml
@@ -11,7 +11,8 @@ name: Install & Update E2E (reusable)
# shared.
#
# Method ids come from scripts/sandbox/generate-e2e-matrix.mjs. Supported
-# today: install via curl-bash, update via hermes-update or curl-bash.
+# today: install via installer-script, update via hermes-update or
+# installer-script (re-run the one-liner).
# Anything else NATIVELY SKIPS (grey check, no runner): capability
# knowledge lives here, next to the driver, so the caller can dispatch
# every declared combination without knowing which ones work.
@@ -22,7 +23,7 @@ name: Install & Update E2E (reusable)
# tip:
# uses: ./.github/workflows/install-e2e-run.yml
# with:
-# install-method: curl-bash
+# install-method: installer-script
# update-method: hermes-update
# install-ref: refs/heads/main
@@ -30,11 +31,11 @@ on:
workflow_call:
inputs:
install-method:
- description: 'How the starting version gets installed. Supported: curl-bash (the real curl | install.sh one-liner).'
+ description: 'How the starting version gets installed. Supported: installer-script (the real curl | install.sh one-liner).'
required: true
type: string
update-method:
- description: 'How the install updates to HEAD. Supported: hermes-update (the updater) or curl-bash (re-run the one-liner). Declared-but-TODO methods skip.'
+ description: 'How the install updates to HEAD. Supported: hermes-update (the updater) or installer-script (re-run the one-liner). Declared-but-TODO methods skip.'
required: true
type: string
install-ref:
@@ -65,7 +66,7 @@ jobs:
name: e2e
# The pairs the sandbox driver can run today; anything else is a
# declared TODO and natively skips.
- if: inputs.install-method == 'curl-bash' && contains(fromJSON('["hermes-update", "curl-bash"]'), inputs.update-method)
+ if: inputs.install-method == 'installer-script' && contains(fromJSON('["hermes-update", "installer-script"]'), inputs.update-method)
runs-on: ${{ inputs.runner }}
timeout-minutes: ${{ inputs.timeout-minutes }}
@@ -107,8 +108,8 @@ jobs:
# Method id -> the driver script's --route vocabulary. The one
# place that knows both names.
case '${{ inputs.update-method }}' in
- hermes-update) route=update ;;
- curl-bash) route=installer ;;
+ hermes-update) route=update ;;
+ installer-script) route=installer ;;
*) echo "unreachable: update-method passed the job-level gate but has no route mapping" >&2; exit 1 ;;
esac
tests/install/install-update-e2e.sh \
diff --git a/.github/workflows/install-e2e-windows-run.yml b/.github/workflows/install-e2e-windows-run.yml
index fdac6d6ce0a..90a010f3142 100644
--- a/.github/workflows/install-e2e-windows-run.yml
+++ b/.github/workflows/install-e2e-windows-run.yml
@@ -16,16 +16,16 @@ name: Install & Update E2E — Windows desktop (reusable)
# real user.
#
# Routes (from the update-method input):
-# desktop-app the app's own Update button: the installed
+# app-update the app's own Update button: the installed
# Hermes.exe runs under Playwright's Electron
# driver, which clicks Settings -> About ->
# "Update now"; the production hand-off chain runs
# untouched (marker, app quit, detached updater,
# hermes update, desktop rebuild, relaunch).
# hermes-update TODO: `hermes update` from the installed venv.
-# desktop-installer-rerun@latest
+# desktop-installer@latest
# TODO: re-run the bootstrap exe over the install.
-# irm-iex TODO: re-run the irm | iex one-liner.
+# installer-script TODO: re-run the irm | iex one-liner.
#
# Method pairs without a driver yet NATIVELY SKIP (grey check, no runner):
# the capability knowledge lives here, next to the driver, so the caller
@@ -38,7 +38,7 @@ name: Install & Update E2E — Windows desktop (reusable)
# uses: ./.github/workflows/install-e2e-windows-run.yml
# with:
# install-method: desktop-installer@latest
-# update-method: desktop-app
+# update-method: app-update
# install-ref: v2026.8.3
on:
@@ -49,7 +49,7 @@ on:
required: true
type: string
update-method:
- description: 'How the install updates to HEAD. Supported: desktop-app (Update button under Playwright). Declared-but-TODO methods skip.'
+ description: 'How the install updates to HEAD. Supported: app-update (Update button under Playwright). Declared-but-TODO methods skip.'
required: true
type: string
install-ref:
@@ -87,7 +87,7 @@ jobs:
# tag-has-desktop from the tag's own tree; releases before #20059 have
# no window to launch and no Update button to click). Anything else is
# a native skip: a declared-TODO method pair, or a pre-desktop tag.
- if: inputs.install-method == 'desktop-installer@latest' && inputs.update-method == 'desktop-app' && inputs.tag-has-desktop
+ if: inputs.install-method == 'desktop-installer@latest' && inputs.update-method == 'app-update' && inputs.tag-has-desktop
runs-on: windows-latest
timeout-minutes: ${{ inputs.timeout-minutes }}
diff --git a/scripts/sandbox/generate-e2e-matrix.mjs b/scripts/sandbox/generate-e2e-matrix.mjs
index ad836169ef9..31297e8a236 100644
--- a/scripts/sandbox/generate-e2e-matrix.mjs
+++ b/scripts/sandbox/generate-e2e-matrix.mjs
@@ -37,8 +37,14 @@ import { fileURLToPath } from 'node:url';
* @typedef {'latest'} InstallerVersion
* The artifact published on the website right now -- Hermes-Setup.exe has
* no versioned archive yet. Widen this union when one exists.
- * @typedef {'irm-iex' | 'desktop-installer' | 'curl-bash' | 'packaged-app'} InstallMethod
- * @typedef {InstallMethod | 'desktop-installer-rerun' | 'hermes-update' | 'app-update' | 'desktop-app'} UpdateMethod
+ * @typedef {'installer-script' | 'desktop-installer' | 'packaged-app'} InstallMethod
+ * installer-script is the platform's one-liner (curl | bash on
+ * linux/macos, irm | iex on windows); packaged-app is declared but not
+ * used by any OS spec yet.
+ * @typedef {InstallMethod | 'hermes-update' | 'app-update'} UpdateMethod
+ * Every install method doubles as an update method (re-run it over the
+ * existing install), plus the updater CLI and the running app's own
+ * Update button.
* @typedef {'linux' | 'windows' | 'macos'} Os
*
* @typedef {{method: InstallMethod, versions?: InstallerVersion[]}} InstallEntry
@@ -63,36 +69,35 @@ export const SPEC = {
windows: {
install: [
// irm https://hermes.nousresearch.com/install.ps1 | iex
- { method: 'irm-iex' },
+ { method: 'installer-script' },
// Website Hermes-Setup.exe, clicked through the GUI.
{ method: 'desktop-installer', versions: ['latest'] },
],
update: [
- { method: 'irm-iex' },
+ { method: 'installer-script' },
// Run the bootstrap exe again over an existing install (--update flow).
- { method: 'desktop-installer-rerun', versions: ['latest'] },
+ { method: 'desktop-installer', versions: ['latest'] },
{ method: 'hermes-update' },
// Settings -> About -> "Update now" inside the running desktop app.
- { method: 'desktop-app' },
+ { method: 'app-update' },
],
},
macos: {
install: [
- { method: 'curl-bash' },
- { method: 'packaged-app' },
+ { method: 'installer-script' },
],
update: [
- { method: 'curl-bash' },
+ { method: 'installer-script' },
{ method: 'hermes-update' },
{ method: 'app-update' },
],
},
linux: {
install: [
- { method: 'curl-bash' },
+ { method: 'installer-script' },
],
update: [
- { method: 'curl-bash' },
+ { method: 'installer-script' },
{ method: 'hermes-update' },
],
},
diff --git a/tests/install/windows-desktop-gui-e2e.ps1 b/tests/install/windows-desktop-gui-e2e.ps1
index afb8b5c29fc..ea0aff0d9e7 100644
--- a/tests/install/windows-desktop-gui-e2e.ps1
+++ b/tests/install/windows-desktop-gui-e2e.ps1
@@ -73,11 +73,11 @@ param(
# Update method to exercise in the update-gui phase, named by the same
# ids the combination generator (scripts/sandbox/generate-e2e-matrix
- # .mjs) declares. Only "desktop-app" (the app's own Update button) is
+ # .mjs) declares. Only "app-update" (the app's own Update button) is
# implemented; the others are declared arms so the surface is stable
# when they land.
- [ValidateSet("desktop-app", "hermes-update", "desktop-installer-rerun@latest", "irm-iex")]
- [string]$Route = "desktop-app",
+ [ValidateSet("app-update", "hermes-update", "desktop-installer@latest", "installer-script")]
+ [string]$Route = "app-update",
# The OLD version: the ref served as `main` while the installer runs,
# i.e. what the user starts on. The published Hermes-Setup.exe carries
@@ -658,7 +658,7 @@ function Invoke-GuiUpdateDesktopRoute([string]$TargetSha) {
function Invoke-PhaseUpdateGui {
$state = Read-State
switch ($Route) {
- "desktop-app" {
+ "app-update" {
Invoke-GuiUpdateDesktopRoute $state.current
}
"hermes-update" {
@@ -667,16 +667,16 @@ function Invoke-PhaseUpdateGui {
# app-quit dance.
throw "update method 'hermes-update' is not implemented yet"
}
- "desktop-installer-rerun@latest" {
+ "desktop-installer@latest" {
# TODO: re-run the bootstrap Hermes-Setup.exe over the existing
# install (its --update flow jumps straight to progress and
# runs unattended).
- throw "update method 'desktop-installer-rerun@latest' is not implemented yet"
+ throw "update method 'desktop-installer@latest' is not implemented yet"
}
- "irm-iex" {
+ "installer-script" {
# TODO: re-run the irm | iex one-liner over the existing
# install.
- throw "update method 'irm-iex' is not implemented yet"
+ throw "update method 'installer-script' is not implemented yet"
}
}
}