Skip to content

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

Open
jpnurmi wants to merge 7 commits into
masterfrom
jpnurmi/fix/wine
Open

fix: add basic Wine support and test pipeline#2001
jpnurmi wants to merge 7 commits into
masterfrom
jpnurmi/fix/wine

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

Minimal changes 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.35%. Comparing base (85b229c) to head (a7facb3).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2001      +/-   ##
==========================================
- Coverage   74.41%   74.35%   -0.06%     
==========================================
  Files         104      104              
  Lines       25913    25912       -1     
  Branches     4691     4690       -1     
==========================================
- Hits        19282    19266      -16     
- Misses       5299     5317      +18     
+ Partials     1332     1329       -3     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant