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

Closed
delysidemanYT1 wants to merge 1 commit from upstream-pr/1348 into main
delysidemanYT1 commented 2026-11-24 22:12:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by delysidemanYT1 on 2026-11-24T22:12:10Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5481193485 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1348). Originally posted by [delysidemanYT1](https://github.com/delysidemanYT1) on 2026-11-24T22:12:10Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-24T23:26:31Z.


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.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7147403730 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1348#issuecomment-7147403730). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-24T23:26:31Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-28T10:32:52Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7237966824 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1348#issuecomment-7237966824). Originally posted by [DadaCap](https://github.com/DadaCap) on 2026-11-28T10:32:52Z. --- 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.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!1348
No description provided.