Skip to content

Keep Wine prefix setup and runtime tests on one Xvfb display - #4079

Open
ligmaSec wants to merge 1 commit into
ItsNotRexed:mainfrom
ligmaSec:ci/wine-one-xvfb
Open

ligmaSec wants to merge 1 commit into
ItsNotRexed:mainfrom
ligmaSec:ci/wine-one-xvfb

Conversation

@ligmaSec

Copy link
Copy Markdown

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

  • Debian 13, Wine 10.0, Xvfb, with the matching synthetic Windows CI artifact from 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.
  • With an empty inventory, the exact step returned the runner's failure status for missing required tests. The disposable Wine server stopped after both the successful and failed runs.
  • ShellCheck, actionlint, 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 at 22788c9.

The timings are for the local synthetic sample. Hosted Wine variants still need a CI run. AI-assisted (Codex).

@ligmaSec

Copy link
Copy Markdown
Author

I also ran the exact Wine workflow step from a clean local merge with #4041 (22788c9a), using the matching 49475796 Windows artifact and fixture scripts. On Debian 13 / Wine 10 the combined step passed all 16 selected loader and CLI tests, including the four CMake-driven checks. The summary recorded 16 passed, 0 failed, 0 skipped. Total elapsed time including prefix initialization was 107 seconds. Synthetic inputs only. AI-assisted (Codex).

@Kam471 Kam471 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.yml parses 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants