Repository navigation
ci: run WER tests on Windows - #2350
Merged
Merged
Conversation
WER ignores crashes in processes that inherit SEM_NOGPFAULTERRORBOX, which CI runners and other non-interactive parents commonly set. Clear it in pytest when WER tests are enabled, so that crashing test processes reach WER. Enable --with_wer on Windows, disable the WER UI so that a crash dialog cannot hang a job, and log the runner's error mode and WER configuration.
The runner images turn diagnostic data off, which makes WER discard reports before storing them. Raise AllowTelemetry on the policy keys so that the WER tests can find their reports.
The output contains the UTF-8 database path, which fails to decode with the cp1252 locale encoding in UTF-8 path builds and leaves the captured stdout empty.
The fast-fail, stack buffer overrun, and invalid parameter crashes are only available in MSVC builds.
Windows Server 2022 rejects the manifest without it, because the mediumIL application and its error reporting extension require the capability there.
ARM64 reports the corrupted heap entry as a fast fail with FAST_FAIL_UNEXPECTED_HEAP_EXCEPTION instead of raising STATUS_HEAP_CORRUPTION.
The WER tests now run on CI.
Each one builds the backend and waits for a WER report that never arrives, and the breakpad ones are retried three times via the flaky marker. Not running them saves several minutes of CI time per Windows job.
Drop the diagnostic logging now that the runner configuration is known, and avoid New-Item -Force, which clears an existing key.
The WER tests skip themselves outside Windows.
jpnurmi
force-pushed
the
jpnurmi/ci/wer
branch
from
November 26, 2026 15:07
25b7d80 to
5c2ce2b
Compare
mujacica
approved these changes
Nov 26, 2026
jpnurmi
added a commit
to getsentry/sentry-dotnet
that referenced
this pull request
Nov 27, 2026
WER doesn't store reports on the Windows runners, where diagnostic data is off. The submodule moves to the sentry-native commit that adds `configure-wer.ps1`, which CI now runs before the integration tests. The test also clears `SEM_NOGPFAULTERRORBOX`, because WER ignores crashes in processes that inherit it. Ref: getsentry/sentry-native#2350 Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WER tests never ran on CI. With
--with_werenabled, WER produced no reports:AllowTelemetry=0, so WER discards reports. Raise it.SEM_NOGPFAULTERRORBOXkeeps crashes from reaching WER. Clear it in pytest.Then platform-specific failures:
unvirtualizedResources.Enabling the WER tests added a lot of CI time. The breakpad and crashpad expected failures alone took about 5 minutes per Windows job, each building a backend and then timing out waiting for a WER report. They're still marked as expected failures but no longer run.