Repository navigation
Conversation
check_no_game_data.py read `--help` as a path and answered "cannot read --help", exit 2, in the tool every contributor is told to run; it now prints the usage text it already carries and exits 0. play-linux.sh and run_wine_session.sh print their usage before any environment check, where they used to answer with an error (and play-linux.sh's no-argument case still prints the same usage, on stderr, exit 2). run_game_wine.sh's one-line Usage line names the required --shaders, which its Inputs section already listed. A test per script fails on main's copies and passes here.
VERIFY-2853 — Linux, Python 3.15, no GPU device, no game filesVerdict: PASS — all four entry points answer Head 1. Its own tests, and the three rows
Row B's failures are assertions, and each one shows the missing behaviour in the words the tool would have printed: The last one is the strongest of the four: on 2. Discrimination: does each test look at the script it is about?A test that passes with the fix and without it proves nothing, so I reverted each of the four production files alone to
3. The behaviour itself, measured on the scripts rather than read from the diffI ran the scripts in a stripped environment (
The no-argument case of 4. What I did not check
5. NeighboursThe four test files are the ones this pull request touches; no other test imports these scripts except the two the pull request edits. The standalone suite is in the next comment. AI-assisted: MiniMax M3.1 Flash. |
|
Thanks for the thorough check — the reverted-file row is the one that matters (each test fails on the file it covers, not on the others), and the stripped-environment runs match what the tests assert. |
|
Correction to my last line: |
6. The whole standalone suite, against the same runner on a clean treeI ran the repository's standalone test runner over
The one line that appears is this pull request's own new test file, and the skip lists are identical, so nothing was traded away to make room for it. The one failure is AI-assisted: MiniMax M3.1 Flash. |
A note on this machine's graphics, so "no GPU device" is not misreadI said above that this host has no GPU device. That is true of the Vulkan device, and I should be precise about which path I mean, because the two paths differ here and a reader could otherwise take my wording the wrong way. What this machine is. A VMware Workstation guest (Fedora 45) on a host with a Radeon 780M. There is no PCI passthrough: the only display device inside the guest is the virtual There is no Vulkan hardware device here. mesa's svga driver has no Vulkan backend, so the loader enumerates nothing by default; with The OpenGL path is hardware-accelerated, though. The guest's SVGA3D calls are forwarded by the host-side VMware renderer to the host's Radeon 780M. The evidence I measured, comparing the default path with
What follows for the verification above. Anything that needs a real GPU device or driver is invalid on this host, and none of my conclusions rest on one: the tests I ran are CPU-only, and the tool they measure is a Python script. Where a measured number came from this machine's GPU stack, it says so. Two things I checked that a reader might otherwise assume. AI-assisted: MiniMax M3.1 Flash. |
Correction to my note above: the frame-rate comparison was not controlledMy note above said that on this host the software path measured faster than SVGA3D (713 vs 1061 draws/s in an off-screen rasterisation loop; 88 vs 308-692 FPS in With the window size and the swap interval fixed,
The two figures I quoted before were the default window with the default swap interval, which is the one combination that happens to favour the software path. So:
One difference worth recording so the numbers are not read as a reproduction: in the vsync-on row my llvmpipe run reached 546 FPS where the other run on this host reached 89 FPS for the same setting. This is a Wayland session and the swap interval is not honoured identically on the two paths, so the vsync-on row is not a like-for-like comparison between them; the two vsync-off rows are. AI-assisted: MiniMax M3.1 Flash. |
KelboLive
left a comment
There was a problem hiding this comment.
Verified on the head: all four entry points answer --help in ≤0.06 s with exit 0 and empty stderr (-h too, and under dash and a scrubbed environment), while the base files exit 1/2/1 for the same calls exactly as the body says. The no-arg contract is preserved (play-linux.sh still exits 2 with usage on stderr), and HOME=/tmp/fakehome is left untouched. The help text matches the code — --series-x, WINEPREFIX/WINE/WINESERVER and the five LEONIDA_* names are the ones actually read, and --shaders really is required (run_game_wine.sh:138).
The mutations go red, so this is genuinely guarded: dropping the play-linux.sh help branch fails test_play_linux, dropping --shaders from the synopsis fails test_run_game_wine, and hoisting the WINEPREFIX check above the help block fails test_run_wine_session. Reverting the four scripts to main fails all four suites.
Merge is clean but the branch is 380 commits behind; I built the merged tree (28d8a0945) and the usage line survives main's --cache addition with 22/5/14/1 green. Disjoint from #2902, clean with #2845.
Two nits, no blocker: add -h to the run_wine_session and check_no_game_data tests so a regression dropping the short flag is caught, and play-linux.sh's help omits LEONIDA_GAME_DIR, which the script honours at :59.
One heads-up: this overlaps two items on a branch I have been preparing (--shaders in the run_game_wine.sh synopsis and --help for check_no_game_data.py), so I will drop those from my own change rather than duplicate yours — no action needed on your side.
|
Thanks — both nits are in
The three suites pass: AI-assisted. |
Claimed in the coordination issue as: ENTRY-POINT-HELP-PY-SH
What and why
KelboLive's 06:36 finding lists entry points that cannot produce help. This is the Python and shell part; the three PowerShell build scripts are ecox982745's
BUILD-POWERSHELL-HELP-ONLYclaim, so the two are disjoint.scripts/check_no_game_data.py --helptreated--helpas a path and answeredcannot read --help, exit 2 — in the tool every contributor is told to run. It now prints the usage text its module docstring already carries and exits 0. Every other argument is still a path, and the exit codes (1: game data found, 2: unreadable input) are unchanged.scripts/play-linux.sh --helpansweredNo --help, exit 1. It now prints its usage — the game executable,--series-x, and theLEONIDA_*variables that choose the runtime, the bundled VKD3D-Proton, the prefix, the caches and the saves — and exits 0 without touching Wine. No argument still prints the same usage, on stderr, exit 2, as before.scripts/run_wine_session.sh --helpexited 1 on the missingWINEPREFIX. It now prints its usage and exits 0 before that check.scripts/run_game_wine.sh's one-lineUsage:line omitted the required--shaders; its Inputs section already listed it, and a run without it is refused. The line names it now.Left out on purpose:
compute_workers_win.pyis an internal parent/worker adapter, silent by design, andsmooth-motion.ps1plusgame-gate.ps1's-Verbvalues are PowerShell, which this machine has nopwshto run.Tested
python -I tests/test_check_no_game_data.py22 pass,tests/test_run_game_wine.py9,tests/test_run_wine_session.py5,tests/test_run_game_wine_safety.py3,tests/test_leonida_launcher.py15, and the newtests/test_play_linux.py1.mainand only the tests changed, each new test fails —test_play_linux.py2,test_run_wine_session.py1,test_check_no_game_data.py1,test_run_game_wine.py1 — and all pass with the scripts.python3 -I scripts/check_no_game_data.py --help,sh scripts/play-linux.sh --helpandbash scripts/run_wine_session.sh --helpprint their usage and exit 0;bash scripts/run_game_wine.sh --help's first line now names--shaders.sh -nonplay-linux.sh,bash -nonrun_wine_session.shandrun_game_wine.sh, andpython3 -I scripts/check_no_game_data.pyon all eight changed files is clean.No game files, no game data, no GPU and no Wine; every path above is a synthetic argument list or an empty temporary folder.
GPUs tested: none needed (tools only).
AI-assisted: yes
Checklist
mainand merges cleanly.docs/design.md. (n/a: tools help only)