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

Open
github-bot wants to merge 1 commit from github-bot/gh-1845 into main AGit
Owner

@⁠delysidemanYT1 on GitHub · 2026-11-25 12:59 UTC · original
delysidemanYT1:wine-resource-lock-shape → main · +11 −1 · 2 files · 1 commits · open

Claimed in the coordination issue as: WINE-RESOURCE-LOCK-SHAPE
Claim: #1608

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).

**@⁠delysidemanYT1** on GitHub · 2026-11-25 12:59 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1845) `delysidemanYT1:wine-resource-lock-shape` → `main` · +11 −1 · 2 files · 1 commits · open Claimed in the coordination issue as: WINE-RESOURCE-LOCK-SHAPE Claim: https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608 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).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:08:12 +00:00
Author
Owner

@⁠DeadlyChirp on GitHub · 2026-11-25 15:37 UTC · original

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.)

**@⁠DeadlyChirp** on GitHub · 2026-11-25 15:37 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1845#issuecomment-7167134852) 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.)
Author
Owner

@⁠MoonEyes on GitHub · 2026-11-25 17:12 UTC · original · reviewed

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** on GitHub · 2026-11-25 17:12 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1845#pullrequestreview-6061836166) · **reviewed** 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).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1845/head:github-bot/gh-1845'
git switch 'github-bot/gh-1845'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1845'
git switch 'github-bot/gh-1845'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1845'
git switch 'github-bot/gh-1845'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1845'
git switch 'main'
git merge --squash 'github-bot/gh-1845'
git switch 'main'
git merge --ff-only 'github-bot/gh-1845'
git switch 'main'
git merge 'github-bot/gh-1845'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.