Suggested commit message:

Fix Windows CI crash-dump registry configuration

Configure WER LocalDumps under HKLM instead of HKCU so unit-test
crashes can produce dumps for the existing artifact upload step.
This commit is contained in:
Martín Lucas Golini
2026-10-26 01:28:29 -03:00
parent 2f3f663cbb
commit ccdc3a5d08
@@ -87,7 +87,8 @@ jobs:
shell: powershell
run: |
$dumpDir = (New-Item -ItemType Directory -Force -Path "bin\unit_tests\output").FullName
$dumpKey = "HKCU:\Software\Microsoft\Windows\Windows Error Reporting\LocalDumps\eepp-unit_tests.exe"
# WER reads per-application LocalDumps settings from HKLM, including on CI runners.
$dumpKey = "HKLM:\Software\Microsoft\Windows\Windows Error Reporting\LocalDumps\eepp-unit_tests.exe"
New-Item -Path $dumpKey -Force | Out-Null
New-ItemProperty -Path $dumpKey -Name DumpFolder -PropertyType ExpandString -Value $dumpDir -Force | Out-Null
New-ItemProperty -Path $dumpKey -Name DumpType -PropertyType DWord -Value 2 -Force | Out-Null