run_wine_tests: warm an adopted persistent server (TEST-WINE-WARM-EXISTING) #1402

Open
github-bot wants to merge 1 commit from github-bot/gh-1402 into main AGit
Owner

@⁠Okachamie on GitHub · 2026-11-24 23:29 UTC · original
Okachamie:tests/wine-warm-existing → main · +24 −6 · 2 files · 1 commits · open

Claimed in the coordination issue as: TEST-WINE-WARM-EXISTING (#14)

What and why

KeptServer.__enter__ returned as soon as it adopted a pre-existing persistent wineserver, before the wine wineboot warm-up added by #1354. The first test then started the prefix's services itself; on a crashing test those services held the output pipe open until the runner's timeout.

The existing warm-up is now a small _warmup() helper called for both runner-started and adopted persistent servers. An adopted server still has started == False, so __exit__ does not send wineserver -k; the caller's server remains alive after the suite.

Tested

Based on 3a0af1f15; head 8dd20f6a80e7b5d6cec4e053004f878ce3f58537. Linux, Python 3.14.10, Wine 11.22, no game files or GPU tests.

  • python -I tests/test_run_wine_tests.py -> 73 tests, OK (5.255 s). The new adopted-server regression failed before the fix because the warm-up command was called zero times.
  • python -I tests/test_text_write_line_endings.py -> 3 tests, OK.
  • python -I tests/test_tool_stdout_encoding.py -> 4 tests, OK.
  • python -m compileall -q scripts tests, python -I scripts/check_no_game_data.py scripts/run_wine_tests.py tests/test_run_wine_tests.py, and git diff --check HEAD^ HEAD -> clean.
  • Real Wine control in a fresh isolated prefix with a hand-built 63,488-byte crashing PE and synthetic CTest JSON. Before the fix the adopted-server run reported timed out after 15.0 s; at this head it reported exit 5 in 0.0 s. A launcher trace recorded wineboot followed by the crashing PE, confirming the runner used wine wineboot, not standalone wineboot --init.
  • The adopted wineserver kept PID 151519 across the run. Afterwards wineserver -p returned 2 (already running) and a 3-second wineserver -w control timed out with 124, proving the server was still persistent. It was stopped manually after the check.

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly.
  • 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.)
**@⁠Okachamie** on GitHub · 2026-11-24 23:29 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1402) `Okachamie:tests/wine-warm-existing` → `main` · +24 −6 · 2 files · 1 commits · open Claimed in the coordination issue as: TEST-WINE-WARM-EXISTING (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### What and why `KeptServer.__enter__` returned as soon as it adopted a pre-existing persistent wineserver, before the `wine wineboot` warm-up added by #1354. The first test then started the prefix's services itself; on a crashing test those services held the output pipe open until the runner's timeout. The existing warm-up is now a small `_warmup()` helper called for both runner-started and adopted persistent servers. An adopted server still has `started == False`, so `__exit__` does not send `wineserver -k`; the caller's server remains alive after the suite. ### Tested Based on `3a0af1f15`; head `8dd20f6a80e7b5d6cec4e053004f878ce3f58537`. Linux, Python 3.14.10, Wine 11.22, no game files or GPU tests. - `python -I tests/test_run_wine_tests.py` -> 73 tests, OK (5.255 s). The new adopted-server regression failed before the fix because the warm-up command was called zero times. - `python -I tests/test_text_write_line_endings.py` -> 3 tests, OK. - `python -I tests/test_tool_stdout_encoding.py` -> 4 tests, OK. - `python -m compileall -q scripts tests`, `python -I scripts/check_no_game_data.py scripts/run_wine_tests.py tests/test_run_wine_tests.py`, and `git diff --check HEAD^ HEAD` -> clean. - Real Wine control in a fresh isolated prefix with a hand-built 63,488-byte crashing PE and synthetic CTest JSON. Before the fix the adopted-server run reported `timed out after 15.0 s`; at this head it reported `exit 5 in 0.0 s`. A launcher trace recorded `wineboot` followed by the crashing PE, confirming the runner used `wine wineboot`, not standalone `wineboot --init`. - The adopted wineserver kept PID `151519` across the run. Afterwards `wineserver -p` returned `2` (already running) and a 3-second `wineserver -w` control timed out with `124`, proving the server was still persistent. It was stopped manually after the check. GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly. - [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.)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:50:10 +00:00
Author
Owner

@⁠Okachamie on GitHub · 2026-11-25 02:27 UTC · original

I reran the adopted-persistent-server control on CachyOS Wine 10.0-20260425, in separate fresh prefixes. The parent timed out after 15 seconds. At PR head 8dd20f6a8, the runner reported the synthetic crash as exit 5 immediately and left the existing wineserver running. All 73 runner unit tests passed at that head. This adds a second Wine version to the 11.22 result above. Game-free and AI-assisted.

**@⁠Okachamie** on GitHub · 2026-11-25 02:27 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1402#issuecomment-7150756533) I reran the adopted-persistent-server control on CachyOS Wine `10.0-20260425`, in separate fresh prefixes. The parent timed out after 15 seconds. At PR head `8dd20f6a8`, the runner reported the synthetic crash as exit 5 immediately and left the existing wineserver running. All 73 runner unit tests passed at that head. This adds a second Wine version to the 11.22 result above. Game-free and AI-assisted.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1402/head:github-bot/gh-1402'
git switch 'github-bot/gh-1402'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1402'
git switch 'github-bot/gh-1402'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1402'
git switch 'github-bot/gh-1402'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1402'
git switch 'main'
git merge --squash 'github-bot/gh-1402'
git switch 'main'
git merge --ff-only 'github-bot/gh-1402'
git switch 'main'
git merge 'github-bot/gh-1402'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.