Repository navigation
Keep Wine prefix setup and runtime tests on one Xvfb display - #4079
Conversation
|
I also ran the exact Wine workflow step from a clean local merge with #4041 ( |
Kam471
left a comment
There was a problem hiding this comment.
Checked 211dbd07 on Windows 11 (no Xvfb/Wine here, so this is static plus the Python-side tests):
bash -n scripts/run_wine_session.sh-> exit 0 in WSL..github/workflows/runtime.ymlparses with PyYAML.python -I tests/test_run_wine_tests.py-> 50 tests, OK (5 skipped).
The workflow now runs one xvfb-run -a bash scripts/run_wine_session.sh python3 -I scripts/run_wine_tests.py ..., so wineboot --init and the tests share a display; the script keeps the 5-minute init limit, set -e, </dev/null, and a wineserver -k EXIT trap while the display still exists. The CTest inventory/arguments are unchanged. No blocking issue.
|
Tested 211dbd0 merged with main d974c88 on Linux (WSL2), Python 3.12.16: pass (CI wiring only; no Wine or Xvfb here, no hosted run)
No issues found. |
Claim in coordination #3918.
What and why
The Wine job initializes its prefix on one Xvfb display, waits for Wine to exit, then starts the test suite on a second display. On Debian's Wine 10 build this repeatedly incurred Wine service startup during the test phase.
Initialize the job's disposable prefix and run the existing tests within one Xvfb session. Keep the five-minute initialization limit and stop that prefix's Wine processes on exit while its display is still available. The tests keep their CTest inventory, required names, timeouts, and summary.
Tested
49475796. Nine selected loader tests passed in both runs. The current workflow's test phase took 37 seconds after prefix initialization. The exact proposed workflow step took 7.46 seconds after mapping the prefix, with all nine passing and the Markdown summary recorded.git diff --check, and the 12 CI/CTest registration tests passed. The changes also merge cleanly with Run CTest CMake fixtures from Windows artifacts under Wine #4041 at22788c9.The timings are for the local synthetic sample. Hosted Wine variants still need a CI run. AI-assisted (Codex).