Skip to content

fix: add basic Wine support and test pipeline - #2001

Merged
jpnurmi merged 9 commits into
masterfrom
jpnurmi/fix/wine
Aug 20, 2026
Merged

fix: add basic Wine support and test pipeline#2001
jpnurmi merged 9 commits into
masterfrom
jpnurmi/fix/wine

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

This is a minimal preparation step for #1995 to make the tree Wine-compatible:

  • fix cross-compilation by using portable header casing,
  • accept missing UBR registry metadata,
  • guard MSVC/UCRT-only abort setup in the example, and
  • deal with Wine-specific differences in the tests.

Cross-compile Windows test binaries with Clang and MinGW-w64 on Ubuntu, then run the test suite through Wine. This exercises actual Windows code paths from Linux CI. Crashpad is skipped because its vendored Windows build does not currently cross-compile with this toolchain; other skips cover host-only harnesses or specific Wine limitations.

Make the Windows build compatible with Wine cross-compilation by using portable
header casing, limiting MSVC-only abort setup, and accepting missing UBR
registry metadata.

Cross-compile Windows test binaries with Clang and MinGW-w64 on Ubuntu, then
run the test suite through Wine.

This exercises actual Windows code paths from Linux CI. Crashpad is skipped
because its vendored Windows build does not currently cross-compile with this
toolchain; other skips cover host-only harnesses or specific Wine limitations.
Comment thread tests/test_build_static.py

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit d154eb1. Configure here.

Comment thread .github/workflows/ci.yml
Comment thread src/sentry_os.c
Consume the request body before returning a proxy authentication challenge so
closing the connection does not produce a TCP reset. This lets Wine WinHTTP
receive the challenge and retry with credentials.
@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.66%. Comparing base (0596783) to head (f161069).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2001      +/-   ##
==========================================
+ Coverage   74.49%   74.66%   +0.16%     
==========================================
  Files         104      104              
  Lines       26189    26188       -1     
  Branches     4742     4741       -1     
==========================================
+ Hits        19509    19552      +43     
+ Misses       5352     5301      -51     
- Partials     1328     1335       +7     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jpnurmi
jpnurmi merged commit 638e43d into master Aug 20, 2026
68 checks passed
@jpnurmi
jpnurmi deleted the jpnurmi/fix/wine branch August 20, 2026 12:31
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.

3 participants