test: register the seven documented device-free checks in CTest #1922

Merged
ChazY11 merged 1 commit from upstream-pr/1929 into main 2026-11-24 21:54:02 +00:00
ChazY11 commented 2026-11-24 21:36:11 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T21:36:11Z.


Problem

AGENTS.md lists a set of checks that "do not need Windows, D3D12 or game files" and says the list matches the
platform-independent Python job. Seven of those checks are in the list and in .github/workflows/windows.yml, but
CMakeLists.txt had no add_test for any of them:

check in AGENTS in windows.yml add_test before
bidi_controls_check.py yes yes no
compat_report_check.py yes yes no
form_coverage_check.py yes yes no
gpu_report_format_check.py yes yes no
hardware_reports_check.py yes yes no
shader_corpus_report_check.py yes yes no
xgameruntime_table_check.py yes yes no

Their siblings in the same list (script_state_check.py, resource_root_check.py, bcpack_*.py, docs_links_check.py, …)
are registered, so a local ctest ran those and silently skipped these seven — the same shape as #1870, where an
unregistered check was only exercised by CI.

Change

Seven add_test entries, in the existing device-free block, named after the checks:

add_test(NAME form_coverage COMMAND "${INTAKE_PYTHON}" -B
    "${CMAKE_SOURCE_DIR}/tests/form_coverage_check.py")

No file, no fixture and no production code changes; the checks themselves are untouched.

Tested

cmake --preset dev
ctest --preset dev -R '^(bidi_controls|compat_report|form_coverage|gpu_report_format|hardware_reports|shader_corpus_report|xgameruntime_table)$'
1/7 Test #1199: bidi_controls ....................   Passed 1.27 sec
2/7 Test #1200: compat_report ...................   Passed 1.89 sec
3/7 Test #1201: form_coverage ...................   Passed 34.13 sec
4/7 Test #1202: gpu_report_format ...............   Passed 0.22 sec
5/7 Test #1203: hardware_reports ................   Passed 0.30 sec
6/7 Test #1204: shader_corpus_report ............   Passed 1.50 sec
7/7 Test #1205: xgameruntime_table ..............   Passed 0.13 sec
100% tests passed, 0 tests failed out of 7

Together with three already-registered neighbours (script_state_literals, resource_relocated_root, docs_links):
10/10 pass.

Negative control: removing the form_coverage entry and re-configuring drops it from ctest -N; re-adding it puts it
back. So the entries are what selects the tests, not something else.

Note on cost

form_coverage takes 34 s here, which is the whole added wall time; the other six are under 2 s each. If the debug preset
should stay short, that one could get a TIMEOUT or be left to the CI job — I kept all seven for consistency with the list.

Notes

  • AI-assisted.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6591894447 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1929). Originally posted by [ChazY11](https://github.com/ChazY11) on 2026-11-24T21:36:11Z. --- ## Problem `AGENTS.md` lists a set of checks that "do not need Windows, D3D12 or game files" and says the list matches the platform-independent Python job. Seven of those checks are in the list and in `.github/workflows/windows.yml`, but `CMakeLists.txt` had no `add_test` for any of them: | check | in AGENTS | in windows.yml | `add_test` before | |---|---|---|---| | `bidi_controls_check.py` | yes | yes | **no** | | `compat_report_check.py` | yes | yes | **no** | | `form_coverage_check.py` | yes | yes | **no** | | `gpu_report_format_check.py` | yes | yes | **no** | | `hardware_reports_check.py` | yes | yes | **no** | | `shader_corpus_report_check.py` | yes | yes | **no** | | `xgameruntime_table_check.py` | yes | yes | **no** | Their siblings in the same list (`script_state_check.py`, `resource_root_check.py`, `bcpack_*.py`, `docs_links_check.py`, …) *are* registered, so a local `ctest` ran those and silently skipped these seven — the same shape as #1870, where an unregistered check was only exercised by CI. ## Change Seven `add_test` entries, in the existing device-free block, named after the checks: ```cmake add_test(NAME form_coverage COMMAND "${INTAKE_PYTHON}" -B "${CMAKE_SOURCE_DIR}/tests/form_coverage_check.py") ``` No file, no fixture and no production code changes; the checks themselves are untouched. ## Tested ```powershell cmake --preset dev ctest --preset dev -R '^(bidi_controls|compat_report|form_coverage|gpu_report_format|hardware_reports|shader_corpus_report|xgameruntime_table)$' 1/7 Test #1199: bidi_controls .................... Passed 1.27 sec 2/7 Test #1200: compat_report ................... Passed 1.89 sec 3/7 Test #1201: form_coverage ................... Passed 34.13 sec 4/7 Test #1202: gpu_report_format ............... Passed 0.22 sec 5/7 Test #1203: hardware_reports ................ Passed 0.30 sec 6/7 Test #1204: shader_corpus_report ............ Passed 1.50 sec 7/7 Test #1205: xgameruntime_table .............. Passed 0.13 sec 100% tests passed, 0 tests failed out of 7 ``` Together with three already-registered neighbours (`script_state_literals`, `resource_relocated_root`, `docs_links`): 10/10 pass. **Negative control:** removing the `form_coverage` entry and re-configuring drops it from `ctest -N`; re-adding it puts it back. So the entries are what selects the tests, not something else. ## Note on cost `form_coverage` takes 34 s here, which is the whole added wall time; the other six are under 2 s each. If the debug preset should stay short, that one could get a `TIMEOUT` or be left to the CI job — I kept all seven for consistency with the list. ## Notes - AI-assisted.
upstream-sync closed this pull request 2026-11-24 22:00:54 +00:00
tedin7 commented 2026-11-24 22:00:55 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T21:54:03Z.

Review: COMMENTED


Review of head e557d74d2cee1e194038ec158cbfacfb71ca6eaa (CMakeLists.txt, +16).

Result: no P1, no P2, two P3 notes.

Checked:

  • All seven scripts exist under tests/ and each name is registered once (CMakeLists.txt:7288-7301). The new tests sit inside the existing if(EXISTS "${INTAKE_PYTHON}") guard, so builds without the Python env are unchanged.
  • The seven names match the pure-Python list in AGENTS.md and .github/workflows/windows.yml (lines 149-178).
  • git merge-tree --write-tree --name-only origin/main HEAD: clean, no conflicts.
  • gh pr checks 1929: Linux Python job, Windows build and gfx1013 fixtures pass. The /O2 job and chart publishing are skipped.

Commands run and results:

  • git diff --check origin/main...HEAD: clean.
  • python3 tests/bidi_controls_check.py: passed.
  • python3 tests/docs_links_check.py: passed (386 links).
  • Each of the seven checks run directly with system Python: 5 pass. compat_report and form_coverage fail only because pefile and iced_x86 are missing outside the pinned env. Both passed in the Windows env below.
  • python3 x2w_pipe.py win2025 1929 --wait 900 (Windows Server 2025, Debug and Release /O2): ctest 6/6 passed in both configs.

Mutation: I changed the hardware_reports script path to a misspelled file. The registered test failed (ctest reported hardware_reports (Failed)). I ran this in a stub project that holds only the new add_test lines, because the full configure needs dxc, which this host lacks. I then reverted the change.

P3:

  • CMakeLists.txt:7296: hardware_reports is the only one of the seven that the Windows pipeline run did not execute. Its ctest filter listed six names. It is registered correctly, and CI covers the script, but it was not run under ctest on Windows here.
  • CMakeLists.txt:7287: the comment says "never registered here". The wording will go stale. A short note that AGENTS.md and CI list these checks would age better.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6048014495 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1929#pullrequestreview-6048014495). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T21:54:03Z. **Review:** COMMENTED --- Review of head `e557d74d2cee1e194038ec158cbfacfb71ca6eaa` (CMakeLists.txt, +16). Result: no P1, no P2, two P3 notes. Checked: - All seven scripts exist under `tests/` and each name is registered once (`CMakeLists.txt:7288-7301`). The new tests sit inside the existing `if(EXISTS "${INTAKE_PYTHON}")` guard, so builds without the Python env are unchanged. - The seven names match the pure-Python list in `AGENTS.md` and `.github/workflows/windows.yml` (lines 149-178). - `git merge-tree --write-tree --name-only origin/main HEAD`: clean, no conflicts. - `gh pr checks 1929`: Linux Python job, Windows build and gfx1013 fixtures pass. The /O2 job and chart publishing are skipped. Commands run and results: - `git diff --check origin/main...HEAD`: clean. - `python3 tests/bidi_controls_check.py`: passed. - `python3 tests/docs_links_check.py`: passed (386 links). - Each of the seven checks run directly with system Python: 5 pass. `compat_report` and `form_coverage` fail only because `pefile` and `iced_x86` are missing outside the pinned env. Both passed in the Windows env below. - `python3 x2w_pipe.py win2025 1929 --wait 900` (Windows Server 2025, Debug and Release /O2): ctest 6/6 passed in both configs. Mutation: I changed the `hardware_reports` script path to a misspelled file. The registered test failed (ctest reported `hardware_reports (Failed)`). I ran this in a stub project that holds only the new `add_test` lines, because the full configure needs `dxc`, which this host lacks. I then reverted the change. P3: - `CMakeLists.txt:7296`: `hardware_reports` is the only one of the seven that the Windows pipeline run did not execute. Its ctest filter listed six names. It is registered correctly, and CI covers the script, but it was not run under ctest on Windows here. - `CMakeLists.txt:7287`: the comment says "never registered here". The wording will go stale. A short note that `AGENTS.md` and CI list these checks would age better. AI-assisted; commands listed were executed locally.
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
R0Y00/Xbox2Windows!1922
No description provided.