Files
hermes-agent/tests/scripts/install
BearHuddleston 876db84dd7 test(install-e2e): keep App Installer's own diagnostic log when the update fails
App Installer writes its own log to
%LocalAppData%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
(Microsoft's App Installer troubleshooting page; @kvnloo on #155052).
On the Windows 11 x64 test VM, opening a corrupt .msixbundle showed the
"cannot parse" path: App Installer's log recorded "AppsInfo -> Error:
[0x8051100f]" and "Parsing error: corruptFile", while the four AppX logs
held only a fallback 0xC00CEE2D ".appinstaller XML not valid" event.

The collector now copies the files there written since the leg began
into proof/update-evidence/appinstaller-diagnostics and prints up to 20
ERROR lines from the AppInstaller-*.log files to the job log. A missing
directory is reported, not skipped silently. Run against that VM with
App Installer still showing the error, it copied the open log and printed
both lines above.

The new test seeds a DiagOutputDir under a temporary LOCALAPPDATA with a
log from before the leg and one from during it. It fails on the previous
collector; mutants that drop the time filter, drop the ERROR lines or
print every line each fail it.
2026-11-13 09:19:22 -06:00
..