[PR #707] tools: provide synthetic test inventory and subsystem map (DX-10) #745

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/707
Author: @abnalstlll-byte
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: feat/dx10-test-inventory


📝 Commits (3)

  • b7d276d tools: provide synthetic test inventory and subsystem map (DX-10)
  • c06abf9 test_inventory: ignore pycache, mirror semantic discovery, distinguish optional retail hints
  • 52f1da2 test_inventory: guard stdout encoding in main block

📊 Changes

3 files changed (+430 additions, -0 deletions)

View changed files

➕ docs/test_inventory.md (+41 -0)
➕ tests/test_test_inventory.py (+117 -0)
➕ tools/test_inventory.py (+272 -0)

📄 Description

Summary

Implements DX-10: Synthetic test inventory and subsystem map tool.

Provides an authoritative CLI scanner (\ ools/test_inventory.py) and comprehensive architectural reference (\docs/test_inventory.md) that catalogs all 1,177 repository tests across four major subsystems (\shader,
untime, \ ools, \ iewer), verifying that 99.2% (1,168 tests) are fully synthetic and executable without retail game packages.

Features

  • Authoritative Subsystem Taxonomy: Classifies test suites into \shader\ (600), \ ools\ (315),
    untime\ (228), and \ iewer\ (34).
  • Runner Categorization: Analyzes runner requirements across \python_unittest\ (918), \ctest_cpp\ (226), \pytest\ (31), and
    ode_test\ (2).
  • Prerequisite Detection: Identifies optional hardware/software prerequisites (\ ulkan, \wine, \llvm, \pytest,
    ode, \dotnet).
  • Retail Dependency Isolation (Gaps): Flags the 9 tests that require \LEONIDA_GAME_DIR\ or \LEONIDA_MOVIE.
  • Machine-Readable Reports: Supports --json\ and --summary\ flags.

Verification

  • Tested with standard library: \python -I tests/test_test_inventory.py\ (5/5 PASS in 9.9s).
  • Clean-room check: \python -I scripts/check_no_game_data.py\ clean (0 issues).
  • Zero dependencies outside the Python standard library.
  • AI-assisted (Claude Code).

🔄 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/707 **Author:** [@abnalstlll-byte](https://github.com/abnalstlll-byte) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/dx10-test-inventory` --- ### 📝 Commits (3) - [`b7d276d`](https://github.com/ubiquitarianism/leonida/commit/b7d276df9f3c80caa9d7b6c044627805c64bd9d7) tools: provide synthetic test inventory and subsystem map (DX-10) - [`c06abf9`](https://github.com/ubiquitarianism/leonida/commit/c06abf9184eb473c30d77601b8800d810944bebd) test_inventory: ignore pycache, mirror semantic discovery, distinguish optional retail hints - [`52f1da2`](https://github.com/ubiquitarianism/leonida/commit/52f1da2884eef59071aee358226cbdaeaa5b9c56) test_inventory: guard stdout encoding in __main__ block ### 📊 Changes **3 files changed** (+430 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `docs/test_inventory.md` (+41 -0) ➕ `tests/test_test_inventory.py` (+117 -0) ➕ `tools/test_inventory.py` (+272 -0) </details> ### 📄 Description ### Summary Implements **DX-10**: Synthetic test inventory and subsystem map tool. Provides an authoritative CLI scanner (\ ools/test_inventory.py\) and comprehensive architectural reference (\docs/test_inventory.md\) that catalogs all 1,177 repository tests across four major subsystems (\shader\, \ untime\, \ ools\, \ iewer\), verifying that 99.2% (1,168 tests) are fully synthetic and executable without retail game packages. ### Features - **Authoritative Subsystem Taxonomy**: Classifies test suites into \shader\ (600), \ ools\ (315), \ untime\ (228), and \ iewer\ (34). - **Runner Categorization**: Analyzes runner requirements across \python_unittest\ (918), \ctest_cpp\ (226), \pytest\ (31), and \ ode_test\ (2). - **Prerequisite Detection**: Identifies optional hardware/software prerequisites (\ ulkan\, \wine\, \llvm\, \pytest\, \ ode\, \dotnet\). - **Retail Dependency Isolation (Gaps)**: Flags the 9 tests that require \LEONIDA_GAME_DIR\ or \LEONIDA_MOVIE\. - **Machine-Readable Reports**: Supports \--json\ and \--summary\ flags. ### Verification - Tested with standard library: \python -I tests/test_test_inventory.py\ (5/5 PASS in 9.9s). - Clean-room check: \python -I scripts/check_no_game_data.py\ clean (0 issues). - Zero dependencies outside the Python standard library. - AI-assisted (Claude Code). --- <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#745
No description provided.