Review/1348 ctest dependency tests #1384

Closed
xel1uz wants to merge 2 commits from upstream-pr/1384 into main
xel1uz commented 2026-11-24 23:01:56 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by xel1uz on 2026-11-24T23:01:56Z.


Claimed in the coordination issue as: WINE-CTEST-DEPENDENCY-LISTS (original claim by @delysidemanYT1).

Depends on: #1348. This branch includes @delysidemanYT1's input validation. The follow-up commit adds regression coverage.

What and why

The Wine runner reads DEPENDS, FIXTURES_SETUP, and FIXTURES_REQUIRED from CTest's JSON inventory. Each property must be a list of strings. Malformed values could reach the dependency graph, where a string could be treated as individual characters or a non-iterable value could raise an exception.

The new test supplies four invalid values for each property: "setup", null, 7, and ["setup", 7]. For all 12 combinations, it checks that the runner exits with code 2, prints the invalid-inventory diagnostic, and stops before setting up a drive mapping or launching a test.

Tested

  • On the base revision 4a50cafc, the new test exposed all 12 cases: six assertion failures and six errors.
  • On 8be6484f, all 12 subcases passed.
  • Ran python -I tests/test_run_wine_tests.py on Windows with Python 3.14.6: 55 passed, 9 skipped, 0 failed. The tests used synthetic CTest input; Wine itself was not run.
  • git diff --check and scripts/check_no_game_data.py passed for both changed files.

GPUs tested: n/a (runner input validation).

AI-assisted: yes, OpenAI Codex.

Checklist

  • Verified a clean merge against upstream main at 28a32e19.
  • One topic: reject malformed CTest dependency lists before launch.
  • No game data, keys or decryption.
  • Translator contract table: n/a. No translator rule changed.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5481789076 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1384). Originally posted by [xel1uz](https://github.com/xel1uz) on 2026-11-24T23:01:56Z. --- Claimed in the coordination issue as: [WINE-CTEST-DEPENDENCY-LISTS](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145900346) (original claim by @delysidemanYT1). Depends on: #1348. This branch includes @delysidemanYT1's input validation. The follow-up commit adds regression coverage. ### What and why The Wine runner reads `DEPENDS`, `FIXTURES_SETUP`, and `FIXTURES_REQUIRED` from CTest's JSON inventory. Each property must be a list of strings. Malformed values could reach the dependency graph, where a string could be treated as individual characters or a non-iterable value could raise an exception. The new test supplies four invalid values for each property: `"setup"`, `null`, `7`, and `["setup", 7]`. For all 12 combinations, it checks that the runner exits with code 2, prints the invalid-inventory diagnostic, and stops before setting up a drive mapping or launching a test. ### Tested - On the base revision `4a50cafc`, the new test exposed all 12 cases: six assertion failures and six errors. - On `8be6484f`, all 12 subcases passed. - Ran `python -I tests/test_run_wine_tests.py` on Windows with Python 3.14.6: 55 passed, 9 skipped, 0 failed. The tests used synthetic CTest input; Wine itself was not run. - `git diff --check` and `scripts/check_no_game_data.py` passed for both changed files. GPUs tested: n/a (runner input validation). AI-assisted: yes, OpenAI Codex. ### Checklist - [x] Verified a clean merge against upstream `main` at `28a32e19`. - [x] One topic: reject malformed CTest dependency lists before launch. - [x] No game data, keys or decryption. - Translator contract table: n/a. No translator rule changed.
PierreEbele commented 2026-11-25 15:16:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T15:16:49Z.


Reviewed 8be6484f2: 2-line validation in scripts/run_wine_tests.py (DEPENDS/FIXTURES_SETUP/FIXTURES_REQUIRED must be lists of strings) plus a regression test; the branch base is 435 commits behind main but merge-tree applies it to current main cleanly. Ran (Python 3.12) the full tests/test_run_wine_tests.py (64, OK) and tests/test_run_wine_test_fixtures.py (6, OK) on the PR; the PR's test file on main fails exactly in the new test (exit 0 vs 2, TypeError on None/7), so it covers the fix. A probe on both trees confirms the bug: with FIXTURES_SETUP=7 main dies with a TypeError traceback (exit 1), and with DEPENDS="setup" main launches the consumer before its setup (exit 0, silent misorder); the PR rejects both with the standard one-line exit-2 error, while a valid DEPENDS list behaves identically. Main's own test_run_wine_tests.py shows 3 errors in its newer wineserver tests here, caused by this environment not allowing execution of #! scripts from /tmp, so unrelated to this PR.

AI-assisted review.

Recommendation: Merge

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7166589118 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1384#issuecomment-7166589118). Originally posted by [PierreEbele](https://github.com/PierreEbele) on 2026-11-25T15:16:49Z. --- Reviewed 8be6484f2: 2-line validation in scripts/run_wine_tests.py (DEPENDS/FIXTURES_SETUP/FIXTURES_REQUIRED must be lists of strings) plus a regression test; the branch base is 435 commits behind main but merge-tree applies it to current main cleanly. Ran (Python 3.12) the full tests/test_run_wine_tests.py (64, OK) and tests/test_run_wine_test_fixtures.py (6, OK) on the PR; the PR's test file on main fails exactly in the new test (exit 0 vs 2, TypeError on None/7), so it covers the fix. A probe on both trees confirms the bug: with FIXTURES_SETUP=7 main dies with a TypeError traceback (exit 1), and with DEPENDS="setup" main launches the consumer before its setup (exit 0, silent misorder); the PR rejects both with the standard one-line exit-2 error, while a valid DEPENDS list behaves identically. Main's own test_run_wine_tests.py shows 3 errors in its newer wineserver tests here, caused by this environment not allowing execution of `#!` scripts from /tmp, so unrelated to this PR. AI-assisted review. **Recommendation:** Merge
OreoFR commented 2026-11-28 21:49:34 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:49:34Z.


Verified by OreoFR

  • Base: main 3408969a7 + PR head 8be6484f2
  • Test: python -I tests/test_run_wine_tests.py
  • Red on main: 76 tests, 6 FAIL + 6 ERROR (TypeError on malformed DEPENDS/FIXTURES_* lists): the missing validation itself
  • Green with the PR: 76 OK (13 skipped)
  • Verdict: READY
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246301672 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1384#issuecomment-7246301672). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-28T21:49:34Z. --- **Verified by OreoFR** - Base: main `3408969a7` + PR head `8be6484f2` - Test: `python -I tests/test_run_wine_tests.py` - Red on main: 76 tests, 6 FAIL + 6 ERROR (TypeError on malformed DEPENDS/FIXTURES_* lists): the missing validation itself - Green with the PR: 76 OK (13 skipped) - Verdict: READY - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
aslan2142 commented 2026-12-01 16:35:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:35:06Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7317848445 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1384#issuecomment-7317848445). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T16:35:06Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

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!1384
No description provided.