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

Closed
leonida/mandy
delysidemanYT1 wants to merge 0 commits from wine-ctest-dependency-lists into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

delysidemanYT1 commented 2026-11-24 22:12:10 +00:00

Claimed in the coordination issue as: WINE-CTEST-DEPENDENCY-LISTS
Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145900346

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

Claimed in the coordination issue as: WINE-CTEST-DEPENDENCY-LISTS Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145900346 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).
whoalin1 commented 2026-11-24 23:26:31 +00:00

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.
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.
DadaCap commented 2026-11-28 10:32:52 +00:00

Thanks for the contribution! This PR was reviewed by the maintainers and is being closed as part of a large batch of closures.

Reason: superseded by #1384.

If this looks like a mistake, mention @DadaCap here at any time and it will be looked at again.

AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.

Thanks for the contribution! This PR was reviewed by the maintainers and is being closed as part of a large batch of closures. Reason: superseded by #1384. If this looks like a mistake, mention @DadaCap here at any time and it will be looked at again. AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.
Sign in to join this conversation.
No description provided.