Skip to content

ci: run WER tests on Windows - #2350

Merged
jpnurmi merged 10 commits into
v1from
jpnurmi/ci/wer
Nov 27, 2026
Merged

jpnurmi merged 10 commits into
v1from
jpnurmi/ci/wer

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

WER tests never ran on CI. With --with_wer enabled, WER produced no reports:

  • Runner images set AllowTelemetry=0, so WER discards reports. Raise it.
  • SEM_NOGPFAULTERRORBOX keeps crashes from reaching WER. Clear it in pytest.

Then platform-specific failures:

  • UTF-8 paths: crash output fails cp1252 decoding. Decode as UTF-8.
  • Windows Server 2022: AppX manifest rejected. Declare unvirtualizedResources.
  • ARM64: heap corruption is reported as a fast fail. Expect that code.
  • MinGW: fast-fail crashes aren't compiled. Skip those tests.

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.

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
jpnurmi merged commit 2a39296 into v1 Nov 27, 2026
75 checks passed
@jpnurmi
jpnurmi deleted the jpnurmi/ci/wer branch November 27, 2026 10:01
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants