WINE-RESOURCE-LOCK-SHAPE: Validate CTest resource locks before scheduling Wine tests #1845

Merged
leonida/mandy
delysidemanYT1 merged 1 commit from wine-resource-lock-shape into main 2026-11-28 19:29:21 +00:00

Pull request successfully merged and closed

delysidemanYT1 commented 2026-11-25 12:59:56 +00:00

Claimed in the coordination issue as: WINE-RESOURCE-LOCK-SHAPE
Claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163027205

Reject malformed RESOURCE_LOCK entries in the CTest inventory instead of passing them to the parallel scheduler. Accept the string and list-of-strings forms the scheduler already supports. A synthetic inventory with an object in the list reproduced the previous crash; no Wine execution was required. The new inventory test and an isolated lock-scheduling run passed. The full suite intermittently loses lines from the parallel timing journal on Windows. I reproduced the same missing timing event on unchanged main in one of six isolated runs.

Targeted checks on Windows: python -m unittest discover -s tests -p test_run_wine_tests.py -k resource_lock_inventory and git diff --check. No game files. AI-assisted (Codex).

Claimed in the coordination issue as: WINE-RESOURCE-LOCK-SHAPE Claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163027205 Reject malformed RESOURCE_LOCK entries in the CTest inventory instead of passing them to the parallel scheduler. Accept the string and list-of-strings forms the scheduler already supports. A synthetic inventory with an object in the list reproduced the previous crash; no Wine execution was required. The new inventory test and an isolated lock-scheduling run passed. The full suite intermittently loses lines from the parallel timing journal on Windows. I reproduced the same missing timing event on unchanged main in one of six isolated runs. Targeted checks on Windows: python -m unittest discover -s tests -p test_run_wine_tests.py -k resource_lock_inventory and git diff --check. No game files. AI-assisted (Codex).
DeadlyChirp commented 2026-11-25 15:37:41 +00:00

Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main.

python -m pytest -q tests/test_run_wine_tests.py:

  • PR: 61 passed, 12 skipped.
  • main: 1 failed, 59 passed, 12 skipped.
  • The skips are the same POSIX-only cases in both runs (a symlink as the Wine executable, and a #! fake wineserver).

(AI-assisted test run; output checked by hand.)

Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main. `python -m pytest -q tests/test_run_wine_tests.py`: - PR: 61 passed, 12 skipped. - main: **1 failed**, 59 passed, 12 skipped. - The skips are the same POSIX-only cases in both runs (a symlink as the Wine executable, and a `#!` fake wineserver). (AI-assisted test run; output checked by hand.)
MoonEyes reviewed 2026-11-25 17:12:09 +00:00
MoonEyes left a comment
No description provided.
Independent test report (Windows 11, Python 3.14, origin/main + PR head). Verdict: LGTM tests/test_run_wine_tests.py: main 60 passed / 12 skipped; PR head 61 passed / 12 skipped (+1 test, 8 subtests). Mutation check (PR test against the old scripts/run_wine_tests.py): 5 subtests fail (None, 4, False, [{}], ["gpu", 2]); the accepted values ("gpu", list of str, []) pass either way, so the test is a true regression guard for the rejects. The one-line change reuses the existing string-or-list-of-strings rule. No Windows issue seen; the suite ran in about 12-24 s here. AI-assisted: yes (Claude Code ran the tests; I read them).
MoonEyes commented 2026-11-28 19:29:19 +00:00

Red/green: tests/test_run_wine_tests.py fails 5 assertions on main (RESOURCE_LOCK values that are not strings are accepted) and passes with the PR merged, on GitHub Actions Linux and natively on Windows.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)

Red/green: tests/test_run_wine_tests.py fails 5 assertions on main (RESOURCE_LOCK values that are not strings are accepted) and passes with the PR merged, on GitHub Actions Linux and natively on Windows. Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure. AI-assisted (Claude Code, Claude Opus 5.5)
OreoFR commented 2026-11-28 21:55:10 +00:00

Verified by OreoFR

  • Base: main 4a54aedcb + PR head 0f71fcbcb
  • Test: python -I tests/test_run_wine_tests.py
  • Red on main: 5 subtests fail (non-string RESOURCE_LOCK accepted)
  • Green with the PR: 74 OK (12 skipped, Linux only)
  • Verdict: READY
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

AI-assisted (Claude Code, Claude Opus 5.5).

**Verified by OreoFR** - Base: main `4a54aedcb` + PR head `0f71fcbcb` - Test: `python -I tests/test_run_wine_tests.py` - Red on main: 5 subtests fail (non-string RESOURCE_LOCK accepted) - Green with the PR: 74 OK (12 skipped, Linux only) - Verdict: READY - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No description provided.