You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: Replace wine tests with real tests on Windows? #31071
The Wine tests are annoying, because they frequently fail (for more than a decade now), with no fix in sight.
Also, they are less useful than running on a real Windows.
My suggestion would be to replace the win64-cross CI task with one on GitHub Actions, using a real Windows. The cross compilation would still be done normally (to mimic guix), inside WSL. However, the unit tests would be run on the real Windows.
I won't be working on this myself, but I am happy to answer any questions on how to implement this, if they arise.
I'm presuming that it may need WSL2 for the build, not the test stage?
If so, we could consider using two GH jobs to split/run this test in two stages; one which does the cross-compile on ubuntu and saves the build artefacts, which, if successful, are then restored by the second (native windows) job to be executed natively under Windows.
This could prove more tricky to actually execute in practice than it appears to me here though.
Concept ACK. WINE tests are better than nothing, but clearly running the tests on real windows is better. It is not our job to test WINE. They were introduced because there were no usable CI systems for windows at the time.
(But yeah we want to test the mingw cross-built Windows binaries, not just MSVC-geneated ones, because those are what we ship)
Activity
maflcko commentedon Oct 11, 2024
Ugh, this may require WSL2, which isn't yet available on GHA?
willcl-ark commentedon Oct 11, 2024
I'm presuming that it may need WSL2 for the build, not the test stage?
If so, we could consider using two GH jobs to split/run this test in two stages; one which does the cross-compile on ubuntu and saves the build artefacts, which, if successful, are then restored by the second (native windows) job to be executed natively under Windows.
This could prove more tricky to actually execute in practice than it appears to me here though.
hebasto commentedon Oct 11, 2024
The recent discussion is here.
laanwj commentedon Oct 22, 2024
Concept ACK. WINE tests are better than nothing, but clearly running the tests on real windows is better. It is not our job to test WINE. They were introduced because there were no usable CI systems for windows at the time.
(But yeah we want to test the mingw cross-built Windows binaries, not just MSVC-geneated ones, because those are what we ship)
maflcko commentedon Dec 3, 2024
Let's continue discussion in #31176
Merge #31176: ci: Test cross-built Windows executables on Windows nat…
Merge bitcoin/bitcoin#31176: ci: Test cross-built Windows executables…
Merge bitcoin/bitcoin#31176: ci: Test cross-built Windows executables…
Merge bitcoin/bitcoin#31176: ci: Test cross-built Windows executables…