Skip to content

The agent that grows with you

fix(install): drop dead -RetirementWork branch from windows e2e script

ethernetdf31163cbb12
diff --git a/apps/desktop/electron/updater/channel-strategy.ts b/apps/desktop/electron/updater/channel-strategy.ts
index c5d5c62ea69..493bab75290 100644
--- a/apps/desktop/electron/updater/channel-strategy.ts
+++ b/apps/desktop/electron/updater/channel-strategy.ts
@@ -57,8 +57,8 @@ export class ChannelStrategy implements UpdaterStrategy {
if (result.kind === 'retirement') {
// In-place retirement IS a same-identity update to the pinned stable
// build: run it through the native factory (app-installer/electron-updater
- // available → download → apply), identical to a stable update. Only the
- // suffixed-identity tier talks to the migration machinery.
+ // available → download → apply), identical to a stable update. The
+ // suffixed-identity tier never updates at all.
if (result.retirement.receiverKind === 'in-place') {
// Sequence counters are per-channel; a retired preview's sequence says
// nothing about the pinned stable build. The native strategy's own
@@ -101,7 +101,7 @@ export class ChannelStrategy implements UpdaterStrategy {
if (!this.selection) { await this.select() }
const selected = this.selection
- if (selected?.kind === 'retirement') { return { ok: false, error: 'Retirement requires explicit migration consent.' } }
+ if (selected?.kind === 'retirement') { return { ok: false, error: 'This build is discontinued; uninstall it and install an official release.' } }
if (selected?.kind === 'native' && selected.available) { return await selected.strategy.apply() }
diff --git a/tests/install/windows-bundled-e2e.ps1 b/tests/install/windows-bundled-e2e.ps1
index 947f09c3c94..72383f1c18a 100644
--- a/tests/install/windows-bundled-e2e.ps1
+++ b/tests/install/windows-bundled-e2e.ps1
@@ -1,7 +1,6 @@
# Native package replacement acceptance. Never run on a developer desktop.
param(
[string]$ManifestUrl,
- [string]$RetirementWork,
[ValidateSet('x64','arm64')][string]$Arch = 'x64'
)
$ErrorActionPreference = 'Stop'
@@ -9,12 +8,6 @@ Set-StrictMode -Version Latest
if ($env:GITHUB_ACTIONS -ne 'true' -or $env:OS -ne 'Windows_NT') { throw 'Disposable Windows Actions runner required' }
$Repo = [IO.Path]::GetFullPath((Join-Path $PSScriptRoot '..\..'))
$Assets = Join-Path $PSScriptRoot 'e2e-assets'
-if ($RetirementWork) {
- # Keep natural HOME/AppData for OS-activated receivers and distinct locks.
- & node (Join-Path $PSScriptRoot 'channel-retirement-e2e.mjs') --work $RetirementWork --arch $Arch
- if ($LASTEXITCODE -ne 0) { throw 'Native retirement journey failed' }
- return
-}
if (-not $ManifestUrl) { throw 'ManifestUrl is required for ordinary package updates' }
$Work = Join-Path $env:RUNNER_TEMP 'hermes-bundled-update'
if (Test-Path $Work) { throw "Refusing to reuse $Work" }