build: warn when fixture Python is missing #148

Manually merged
github merged 2 commits from gh-pr/148/head into gh-pr/148/base 2026-11-26 21:30:23 +00:00
Owner

@⁠Neygen8 on GitHub · 2026-11-21 17:16 UTC · original
Neygen8:codex/warn-missing-fixture-python → main · +7 −1 · 2 files · 2 commits · merged 2026-11-21 17:24 UTC

Change

CMake now warns at configure time when the path in INTAKE_PYTHON is missing. The warning names the disabled Python-driven tests, shows the configured path and points to the setup instructions. The first-build guide explains the warning.

Refs #132 (configure check).

Verification

Tested commit 4607f00 on macOS with CMake 4.4.2. Using cmake -DINTAKE_PYTHON:FILEPATH="<path>" -P out/configure-warning-check/check.cmake on the extracted fixture guard, the base commit printed no warning for a missing path. The patch printed the warning and exited with code 0 for the missing path. With an existing interpreter, it exited with code 0 without the warning. The script returned before the Windows-only build commands.

The six platform-independent checks passed with Python 3.11. The import-path check used pefile==2024.8.26.

for check in script_state_check bcpack_check resource_ranges_check dxcontainer_part_offsets_check layout_chunks_check intake/paths_check; do
  out/pe-env/bin/python -B "tests/$check.py" || exit $?
done
git diff --check

Evidence and follow-up

To check the warning in a Windows developer shell, run the first command with a path that does not exist. It should configure successfully and print the warning. The second command should list no CPU tests. Run the Python setup and configure with the valid interpreter to register those tests.

cmake --preset dev -B out/build/no-fixture-python "-DINTAKE_PYTHON:FILEPATH=$PWD/out/missing-fixture-python.exe"
ctest --test-dir out/build/no-fixture-python -N -R '^cpu_'

The full build ran in GitHub Actions. The Windows build and tests, standalone GPU check smoke test, Linux Python checks, and gfx1013 fixture checks passed. Workflow run

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated the first-build documentation.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted.

**@⁠Neygen8** on GitHub · 2026-11-21 17:16 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/148) `Neygen8:codex/warn-missing-fixture-python` → `main` · +7 −1 · 2 files · 2 commits · merged 2026-11-21 17:24 UTC ## Change CMake now warns at configure time when the path in `INTAKE_PYTHON` is missing. The warning names the disabled Python-driven tests, shows the configured path and points to the setup instructions. The first-build guide explains the warning. Refs #132 (configure check). ## Verification Tested commit `4607f00` on macOS with CMake 4.4.2. Using `cmake -DINTAKE_PYTHON:FILEPATH="<path>" -P out/configure-warning-check/check.cmake` on the extracted fixture guard, the base commit printed no warning for a missing path. The patch printed the warning and exited with code 0 for the missing path. With an existing interpreter, it exited with code 0 without the warning. The script returned before the Windows-only build commands. The six platform-independent checks passed with Python 3.11. The import-path check used `pefile==2024.8.26`. ```bash for check in script_state_check bcpack_check resource_ranges_check dxcontainer_part_offsets_check layout_chunks_check intake/paths_check; do out/pe-env/bin/python -B "tests/$check.py" || exit $? done git diff --check ``` ## Evidence and follow-up To check the warning in a Windows developer shell, run the first command with a path that does not exist. It should configure successfully and print the warning. The second command should list no CPU tests. Run the [Python setup](https://github.com/R0Y00/Xbox2Windows/blob/main/README.md#first-build) and configure with the valid interpreter to register those tests. ```powershell cmake --preset dev -B out/build/no-fixture-python "-DINTAKE_PYTHON:FILEPATH=$PWD/out/missing-fixture-python.exe" ctest --test-dir out/build/no-fixture-python -N -R '^cpu_' ``` The full build ran in GitHub Actions. The Windows build and tests, standalone GPU check smoke test, Linux Python checks, and gfx1013 fixture checks passed. [Workflow run](https://github.com/R0Y00/Xbox2Windows/actions/runs/44929171906) ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated the first-build documentation. - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:30:23 +00:00
github manually merged commit ca7504f206 into gh-pr/148/base 2026-11-26 21:30:23 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.