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
run_wine_tests: warm an adopted persistent server (TEST-WINE-WARM-EXISTING) - #1402
Claimed in the coordination issue as: TEST-WINE-WARM-EXISTING (#14 (comment))
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.)
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.
Red/green: pytest tests/test_run_wine_tests.py fails on main (1 failed, 60 passed, 12 skipped, 71 subtests passed) and passes on head 8dd20f6 merged with main (61 passed, 12 skipped, 71 subtests passed).
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main d48a957 in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: TEST-WINE-WARM-EXISTING (#14 (comment))
What and why
KeptServer.__enter__returned as soon as it adopted a pre-existing persistent wineserver, before thewine winebootwarm-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 hasstarted == False, so__exit__does not sendwineserver -k; the caller's server remains alive after the suite.Tested
Based on
3a0af1f15; head8dd20f6a80e7b5d6cec4e053004f878ce3f58537. 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, andgit diff --check HEAD^ HEAD-> clean.timed out after 15.0 s; at this head it reportedexit 5 in 0.0 s. A launcher trace recordedwinebootfollowed by the crashing PE, confirming the runner usedwine wineboot, not standalonewineboot --init.151519across the run. Afterwardswineserver -preturned2(already running) and a 3-secondwineserver -wcontrol timed out with124, proving the server was still persistent. It was stopped manually after the check.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly.docs/design.md, with how it was confirmed. (No translator rule.)