Files
hermes-agent/tests/scripts/install
BearHuddleston 968a1bdf7e fix(install-e2e): answer App Installer's metered-connection warning
In rehearsal rc.7-v0.23.2 the Windows x64 upgrade leg found and pressed
App Installer's Update for the first time (#155621), and still failed
with "Native update did not automatically relaunch the new package".
App Installer's log stops at DisplayAppsInfoState: nothing deployed.
The screenshot taken after the press shows why. App Installer 1.26
opened "Warning: Metered Connection. The network you are connected to
is metered. Would you like to proceed? (extra charges may apply)" over
the prompt, with Yes and No. The runner's network is metered, and the
driver never answered.

Confirm-AppInstallerPrompt presses the prompt's Update or Install, then
watches for 20 s (MeteredWarningTimeoutSec) for that warning's Yes, as a
user on a metered network would. Yes counts only after the prompt was
pressed. On an unmetered network the warning never comes, and the
driver goes on after the 20 s. The driver's result JSON lists what it
pressed (appInstallerPressed).

Checked on a Windows 11 x64 VM with App Installer 1.26.510 and its
network set to metered (DusmSvc UserCost 2, cost type Fixed). The same
warning opened over the prompt. The driver's Invoke-Button pressed
Update at 17:56:29 and Yes at 17:56:32, App Installer went to
GoToPreparingDeploymentState at 17:56:32, NEW reported
DeploymentSuccessState at 18:04:39, and App Installer relaunched it
20 s after the package changed.
2026-11-14 12:41:51 -06:00
..