WINE-RESOURCE-LOCK-SHAPE: Validate CTest resource locks before scheduling Wine tests #1845
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!1845
Loading…
Reference in a new issue
No description provided.
Delete branch "wine-resource-lock-shape"
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?
Pull request successfully merged and closed
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).
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.)
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)
Verified by OreoFR
4a54aedcb+ PR head0f71fcbcbpython -I tests/test_run_wine_tests.pyAI-assisted (Claude Code, Claude Opus 5.5).