Skip to content

Commit 56c2bdd

Browse files
committed
Capture Comparer first-chance exception dump
1 parent 1b93105 commit 56c2bdd

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/store-validation-trial.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,17 @@ jobs:
188188
}
189189
190190
Capture-AppWindow "Viewer" "`"$reference`"" "artifacts\screenshots\viewer.png"
191+
$procdumpZip = Join-Path $env:TEMP "Procdump.zip"
192+
$procdumpDir = Join-Path $env:TEMP "Procdump"
193+
Invoke-WebRequest "https://download.sysinternals.com/files/Procdump.zip" -OutFile $procdumpZip
194+
Expand-Archive -Path $procdumpZip -DestinationPath $procdumpDir -Force
195+
$comparerExe = (Resolve-Path (Join-Path $env:DIST_DIR "Comparer.exe")).Path
196+
& (Join-Path $procdumpDir "procdump64.exe") -accepteula -ma -e 1 -n 1 -x $diagnostics `
197+
$comparerExe $reference $encoded
198+
Get-ChildItem $diagnostics | Format-Table Name, Length |
199+
Out-File "artifacts\diagnostics\procdump-files.txt"
200+
throw "Comparer first-chance diagnostic dump captured; inspect diagnostics artifact."
201+
191202
try {
192203
Capture-AppWindow "Comparer" "`"$reference`" `"$encoded`"" "artifacts\screenshots\comparer.png"
193204
}

0 commit comments

Comments
 (0)