Review/1348 ctest dependency tests #1384

Open
github-bot wants to merge 2 commits from github-bot/gh-1384 into main AGit
Owner

@⁠xel1uz on GitHub · 2026-11-24 23:01 UTC · original
xel1uz:review/1348-ctest-dependency-tests → main · +15 −0 · 2 files · 2 commits · open

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.
**@⁠xel1uz** on GitHub · 2026-11-24 23:01 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1384) `xel1uz:review/1348-ctest-dependency-tests` → `main` · +15 −0 · 2 files · 2 commits · open Claimed in the coordination issue as: [WINE-CTEST-DEPENDENCY-LISTS](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) (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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:49:33 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 15:16 UTC · original

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

**@⁠PierreEbele** on GitHub · 2026-11-25 15:16 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1384#issuecomment-7166589118) 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
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/1384/head:github-bot/gh-1384'
git switch 'github-bot/gh-1384'

Merge

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