Review/1348 ctest dependency tests #1384

Closed
leonida/mandy
xel1uz wants to merge 0 commits from review/1348-ctest-dependency-tests into main

Pull request closed

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

xel1uz commented 2026-11-24 23:01:56 +00:00

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

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

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

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

**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

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.

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.
Sign in to join this conversation.
No description provided.