WINE-RESOURCE-LOCK-SHAPE: Validate CTest resource locks before scheduling Wine tests #1845
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1845"
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?
Imported from ubiquitarianism/leonida. Originally posted by delysidemanYT1 on 2026-11-25T12:59:56Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by DeadlyChirp on 2026-11-25T15:37:41Z.
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:#!fake wineserver).(AI-assisted test run; output checked by hand.)
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-25T17:12:09Z.
Review: COMMENTED
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).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T19:29:19Z.
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
7daa4a4a5in GitHub Actions: no new failure.AI-assisted (Claude Code, Claude Opus 5.5)
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:55:10Z.
Verified by OreoFR
4a54aedcb+ PR head0f71fcbcbpython -I tests/test_run_wine_tests.pyAI-assisted (Claude Code, Claude Opus 5.5).