[PR #1384] Review/1348 ctest dependency tests #1414

Open
opened 2026-11-26 20:21:10 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1384
Author: @xel1uz
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: review/1348-ctest-dependency-tests


📝 Commits (2)

  • e0c8c85 WINE-CTEST-DEPENDENCY-LISTS: Validate CTest dependency lists before building the Wine test graph
  • 8be6484 Cover malformed CTest dependency lists before launching Wine tests

📊 Changes

2 files changed (+15 additions, -0 deletions)

View changed files

📝 scripts/run_wine_tests.py (+2 -0)
📝 tests/test_run_wine_tests.py (+13 -0)

📄 Description

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.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1384 **Author:** [@xel1uz](https://github.com/xel1uz) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `review/1348-ctest-dependency-tests` --- ### 📝 Commits (2) - [`e0c8c85`](https://github.com/ubiquitarianism/leonida/commit/e0c8c85d95825b86f5195b788839f31a9c300103) WINE-CTEST-DEPENDENCY-LISTS: Validate CTest dependency lists before building the Wine test graph - [`8be6484`](https://github.com/ubiquitarianism/leonida/commit/8be6484f271d80c0885bd1ed412145064f688f67) Cover malformed CTest dependency lists before launching Wine tests ### 📊 Changes **2 files changed** (+15 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `scripts/run_wine_tests.py` (+2 -0) 📝 `tests/test_run_wine_tests.py` (+13 -0) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#1414
No description provided.