Repository navigation
run_wine_tests: keep one wineserver, disable winedbg, add --jobs (TEST-WINE-FAST) - #1354
Conversation
Run one after another, each Windows test under Wine took several seconds, most of it a wineserver starting and stopping around every test. The runner now keeps one wineserver alive for the run (`wineserver -p`, the one $WINESERVER or the --wine command uses) and stops it at the end, also after a failure or Ctrl+C. It starts the prefix's services first with `wine wineboot` and no output: the first program a server runs starts them, they inherit its output pipe, and with a kept server they hold it open until the timeout. Each test's WINEDLLOVERRIDES gains winedbg.exe=d (a crash fails at once instead of waiting in the debugger) and winemenubuilder.exe=d (no menu entries or file associations in the user's profile); an entry of the caller's or the test's for the same program wins. --jobs N (default 1) runs N tests at a time, keeping RUN_SERIAL tests alone, tests that share a RESOURCE_LOCK apart and DEPENDS in order, and reports them in the same order as --jobs 1. docs/testing.md gains the fast local recipe for the cross-build with measured times, the menu-builder note and --jobs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merged by me although it is my own PR: the local Windows check under Wine is what every Checked on
Not tested: the CI Heads-up for #999 and #1015: both now conflict with AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5). |
Claimed in the coordination issue as: TEST-WINE-FAST (#14 (comment))
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.)