run_wine_tests: keep one wineserver, disable winedbg, add --jobs (TEST-WINE-FAST) #1354
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!1354
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1354/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@aslan2142 on GitHub · 2026-11-24 22:17 UTC · original
aslan2142:wine-tests-fast→main· +432 −18 · 3 files · 1 commits · merged 2026-11-24 22:20 UTCClaimed in the coordination issue as: TEST-WINE-FAST (#14)
Depends on: none. #919, #999 and #1015 also change
scripts/run_wine_tests.py: #919 merges cleanly with this branch; #999 (the docstring, the results loop inmain()) and #1015 (the imports,positive_seconds/--timeout) give small textual conflicts.What and why
Under Wine, each Windows test took several seconds, most of it a wineserver starting and stopping around every test.
wineserver -p;$WINESERVER, else the one next to--wine, else the one on PATH) and stops it with-kat the end, also after a failure or Ctrl+C. If a server is still shutting down, it waits for it first. A server someone else started with-pis used and left running. With no wineserver found, it prints one line and carries on.winebootwarm-up. After starting the server it runswine winebootwith no output. The first program a server runs starts the prefix's services, which inherit its stdout. With a kept server they hold the first test's pipe open until the timeout (measured: 120 s).WINEDLLOVERRIDESgetswinedbg.exe=d(a crash fails at once instead of waiting in the debugger) andwinemenubuilder.exe=d(no.desktopfiles or MIME entries in the user's profile). An entry of the caller's or of the test's CTestENVIRONMENTfor the same program wins.--jobs N(default 1, output unchanged).RUN_SERIALtests run alone, tests sharing aRESOURCE_LOCKnever overlap, andDEPENDSand fixtures are kept. Verdicts and the summary come out in the same order as with--jobs 1.docs/testing.md: the fast local recipe for the cross-build, the measured times, the menu-builder note, a pointer to "Known problems" for tests that share temp files, and--jobs.Tested
Wine 11.22 (Staging) on Linux under
xvfb-run, llvmpipe only, with a clang-cl (xwin) build of recentmain. No game files.| 40 tests with
ctest(-R '^(d3d12_[a-c]|vk_[a-d]|xg)'), one setting added at a time | Seconds ||---|---|
| one test after another, as the docs say today | 179 |
|
wineserver -pwithout the warm-up (the first test hung for 120 s) | 155 ||
wineserver -pwith thewinebootwarm-up | 35 || and
WINEDEBUG=-all, thenwinedbg.exe=d(no test crashed, so no change) | 35 || and
ctest -j 6| 5.6 |--jobs 1and 6.2 s with--jobs 6for those 40 tests, with the same verdicts in the same order. All 312 tests took 19 s with--jobs 6.tests/test_run_wine_tests.py: 72 tests pass; the 9 new ones each fail or error againstmain's script.test_text_write_line_endings,test_tool_stdout_encoding, all 12test_docs_*andcheck_no_game_data.pyon the changed files pass.winejob itself (it runs the MSVC build's artifact), and Wine versions other than 11.22.GPUs tested: n/a (Mesa llvmpipe, software Vulkan)
AI-assisted: yes (Claude Code, Claude Opus 5.5)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (No translator rule.)@aslan2142 on GitHub · 2026-11-24 22:21 UTC · original
Merged by me although it is my own PR: the local Windows check under Wine is what every
runtime/review and every rung of the boot stack now waits on, and this is what makes it take a minute instead of half an hour. It changes the test runner, its unit test anddocs/testing.mdonly, nothing inruntime/.Checked on
mainb6204ecdf+de3027cff(merges cleanly):tests/test_run_wine_tests.py: 72 tests pass. The 9 new ones fail or error againstmain's script.test_docs_*,test_text_write_line_endingsandtest_tool_stdout_encodingpass.check_no_game_data.pyon the three changed files: clean.ctest, and all 312 tests take 19 s through the runner with--jobs 6.Not tested: the CI
winejob itself, and Wine versions other than 11.22.--jobsdefaults to 1, so that job's output is unchanged; the kept server, thewinebootwarm-up and the two overrides do apply there. If the job misbehaves, say so here and I'll fix it forward or revert.Heads-up for #999 and #1015: both now conflict with
maininscripts/run_wine_tests.py, in small textual ways (#999: the docstring and the results loop inmain(); #1015: the imports and aroundpositive_seconds/--timeout). #919 still merges cleanly.AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).