WINE-CTEST-DEPENDENCY-LISTS: Validate CTest dependency lists before b… #1348

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

@⁠delysidemanYT1 on GitHub · 2026-11-24 22:12 UTC · original
delysidemanYT1:wine-ctest-dependency-lists → main · +2 −0 · 1 files · 1 commits · open

Claimed in the coordination issue as: WINE-CTEST-DEPENDENCY-LISTS
Claim: #14

Reject malformed DEPENDS, FIXTURES_SETUP and FIXTURES_REQUIRED entries as invalid CTest inventory. This avoids tracebacks and prevents string values from being interpreted as individual characters.

Reproduced crashes with synthetic JSON on Windows. Verified that 12 malformed inventory cases now exit 2 with the existing diagnostic. The runner suite reported 54 passed and 9 skipped. Wine itself was not run. git diff --check passed. No game files. AI-assisted (Codex).

**@⁠delysidemanYT1** on GitHub · 2026-11-24 22:12 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1348) `delysidemanYT1:wine-ctest-dependency-lists` → `main` · +2 −0 · 1 files · 1 commits · open Claimed in the coordination issue as: WINE-CTEST-DEPENDENCY-LISTS Claim: https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14 Reject malformed DEPENDS, FIXTURES_SETUP and FIXTURES_REQUIRED entries as invalid CTest inventory. This avoids tracebacks and prevents string values from being interpreted as individual characters. Reproduced crashes with synthetic JSON on Windows. Verified that 12 malformed inventory cases now exit 2 with the existing diagnostic. The runner suite reported 54 passed and 9 skipped. Wine itself was not run. git diff --check passed. No game files. AI-assisted (Codex).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:48:19 +00:00
Author
Owner

@⁠whoalin1 on GitHub · 2026-11-24 23:26 UTC · original

Independent verification (AI-assisted, overnight review batch):

  • Checked out e0c8c85; diff is a 2-line guard in scripts/run_wine_tests.py:303-304 rejecting DEPENDS / FIXTURES_SETUP / FIXTURES_REQUIRED properties that are not lists of strings.
  • Wine is NOT installed on this machine, so I verified the list-validation logic CPU-side only (same scope the PR describes):
    • New code: synthetic ctest --show-only=json-v1 docs with DEPENDS as string/int/dict/mixed-list and FIXTURES_SETUP/FIXTURES_REQUIRED as string/null are all rejected by read_tests (exit-2 diagnostic path); valid list-of-str and unrelated properties still pass.
    • Old code (origin/main copy): the same malformed docs were ACCEPTED, and FIXTURES_SETUP=5 then crashed fixture_dependencies with an uncaught TypeError; DEPENDS="t2" was silently iterated per-character.
  • python -I -m pytest tests/test_run_wine_tests.py: 54 passed, 9 skipped, 63 subtests. Also ran tests/test_run_wine_test_fixtures.py (see output).
  • py -3.14 -m compileall -q tools tests make_game.py: clean.
  • No Wine execution, no GPU, no game files. Logic verified; LGTM.
**@⁠whoalin1** on GitHub · 2026-11-24 23:26 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1348#issuecomment-7147403730) Independent verification (AI-assisted, overnight review batch): - Checked out e0c8c85; diff is a 2-line guard in `scripts/run_wine_tests.py:303-304` rejecting DEPENDS / FIXTURES_SETUP / FIXTURES_REQUIRED properties that are not lists of strings. - Wine is NOT installed on this machine, so I verified the list-validation logic CPU-side only (same scope the PR describes): - New code: synthetic ctest --show-only=json-v1 docs with DEPENDS as string/int/dict/mixed-list and FIXTURES_SETUP/FIXTURES_REQUIRED as string/null are all rejected by read_tests (exit-2 diagnostic path); valid list-of-str and unrelated properties still pass. - Old code (origin/main copy): the same malformed docs were ACCEPTED, and FIXTURES_SETUP=5 then crashed fixture_dependencies with an uncaught TypeError; DEPENDS="t2" was silently iterated per-character. - `python -I -m pytest tests/test_run_wine_tests.py`: 54 passed, 9 skipped, 63 subtests. Also ran tests/test_run_wine_test_fixtures.py (see output). - `py -3.14 -m compileall -q tools tests make_game.py`: clean. - No Wine execution, no GPU, no game files. Logic verified; LGTM.
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/1348/head:github-bot/gh-1348'
git switch 'github-bot/gh-1348'

Merge

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