mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:30:52 +01:00
[PR #1402] run_wine_tests: warm an adopted persistent server (TEST-WINE-WARM-EXISTING) #1431
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1431
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1402
Author: @Okachamie
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:tests/wine-warm-existing📝 Commits (1)
8dd20f6tests: warm an adopted persistent wineserver📊 Changes
2 files changed (+24 additions, -6 deletions)
View changed files
📝
scripts/run_wine_tests.py(+10 -6)📝
tests/test_run_wine_tests.py(+14 -0)📄 Description
Claimed in the coordination issue as: TEST-WINE-WARM-EXISTING (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7147210658)
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.)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.