[PR #1354] [MERGED] run_wine_tests: keep one wineserver, disable winedbg, add --jobs (TEST-WINE-FAST) #1384

Closed
opened 2026-11-26 20:21:03 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1354
Author: @aslan2142
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @aslan2142

Base: main ← Head: wine-tests-fast


📝 Commits (1)

  • de3027c run_wine_tests: keep one wineserver, disable winedbg, add --jobs

📊 Changes

3 files changed (+432 additions, -18 deletions)

View changed files

📝 docs/testing.md (+49 -1)
📝 scripts/run_wine_tests.py (+211 -17)
📝 tests/test_run_wine_tests.py (+172 -0)

📄 Description

Claimed in the coordination issue as: TEST-WINE-FAST (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145659035)

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 in main()) 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.

  • Kept-alive wineserver. The runner keeps one wineserver for the run (wineserver -p; $WINESERVER, else the one next to --wine, else the one on PATH) and stops it with -k at 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 -p is used and left running. With no wineserver found, it prints one line and carries on.
  • wineboot warm-up. After starting the server it runs wine wineboot with 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).
  • Overrides. Each test's WINEDLLOVERRIDES gets winedbg.exe=d (a crash fails at once instead of waiting in the debugger) and winemenubuilder.exe=d (no .desktop files or MIME entries in the user's profile). An entry of the caller's or of the test's CTest ENVIRONMENT for the same program wins.
  • --jobs N (default 1, output unchanged). RUN_SERIAL tests run alone, tests sharing a RESOURCE_LOCK never overlap, and DEPENDS and 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 recent main. 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 -p without the warm-up (the first test hung for 120 s) | 155 |
| wineserver -p with the wineboot warm-up | 35 |
| and WINEDEBUG=-all, then winedbg.exe=d (no test crashed, so no change) | 35 |
| and ctest -j 6 | 5.6 |

  • The runner itself on that build: 32 s with --jobs 1 and 6.2 s with --jobs 6 for 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 against main's script.
  • test_text_write_line_endings, test_tool_stdout_encoding, all 12 test_docs_* and check_no_game_data.py on the changed files pass.
  • Not tested: the CI wine job 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

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (No translator rule.)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1354 **Author:** [@aslan2142](https://github.com/aslan2142) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `wine-tests-fast` --- ### 📝 Commits (1) - [`de3027c`](https://github.com/ubiquitarianism/leonida/commit/de3027cff49f10ae6b5df650d09ed0a3bde9a4e6) run_wine_tests: keep one wineserver, disable winedbg, add --jobs ### 📊 Changes **3 files changed** (+432 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `docs/testing.md` (+49 -1) 📝 `scripts/run_wine_tests.py` (+211 -17) 📝 `tests/test_run_wine_tests.py` (+172 -0) </details> ### 📄 Description Claimed in the coordination issue as: TEST-WINE-FAST (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145659035) 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 in `main()`) 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. - **Kept-alive wineserver.** The runner keeps one wineserver for the run (`wineserver -p`; `$WINESERVER`, else the one next to `--wine`, else the one on PATH) and stops it with `-k` at 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 `-p` is used and left running. With no wineserver found, it prints one line and carries on. - **`wineboot` warm-up.** After starting the server it runs `wine wineboot` with 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). - **Overrides.** Each test's `WINEDLLOVERRIDES` gets `winedbg.exe=d` (a crash fails at once instead of waiting in the debugger) and `winemenubuilder.exe=d` (no `.desktop` files or MIME entries in the user's profile). An entry of the caller's or of the test's CTest `ENVIRONMENT` for the same program wins. - **`--jobs N`** (default 1, output unchanged). `RUN_SERIAL` tests run alone, tests sharing a `RESOURCE_LOCK` never overlap, and `DEPENDS` and 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 recent `main`. 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 -p` without the warm-up (the first test hung for 120 s) | 155 | | `wineserver -p` with the `wineboot` warm-up | 35 | | and `WINEDEBUG=-all`, then `winedbg.exe=d` (no test crashed, so no change) | 35 | | and `ctest -j 6` | 5.6 | - The runner itself on that build: 32 s with `--jobs 1` and 6.2 s with `--jobs 6` for 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 against `main`'s script. - `test_text_write_line_endings`, `test_tool_stdout_encoding`, all 12 `test_docs_*` and `check_no_game_data.py` on the changed files pass. - Not tested: the CI `wine` job 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 - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (No translator rule.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:21:03 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1384
No description provided.