Run platform-independent Python checks on Linux #80

Manually merged
github merged 2 commits from gh-pr/80/head into gh-pr/80/base 2026-11-26 21:25:47 +00:00
Owner

@⁠Vonsek on GitHub · 2026-11-21 15:41 UTC · original
Vonsek:linux-python-checks → main · +22 −1 · 2 files · 2 commits · merged 2026-11-21 15:47 UTC

Change

Adds a python-linux job to the existing workflow that runs the six Python checks that need no Windows-built binaries: script_state_check, bcpack_check, resource_ranges_check, dxcontainer_part_offsets_check, layout_chunks_check and intake/paths_check (registered in CMake as conditional_import_paths). These currently run only inside the Windows CTest job, so a Linux contributor gets no CI signal for them and a parser regression shows up only after the full Windows build. Refs #56.

CONTRIBUTING.md gets one sentence describing the new job. Action SHAs and persist-credentials: false match the existing jobs.

Verification

On Linux with Python 3.13 and pip install -r requirements-dev.txt:

python -B tests/script_state_check.py              # OK (3 tests)
python -B tests/bcpack_check.py                    # OK (2 tests)
python -B tests/resource_ranges_check.py           # OK (3 tests)
python -B tests/dxcontainer_part_offsets_check.py  # OK (4 tests)
python -B tests/layout_chunks_check.py             # layout chunk summary ok
python -B tests/intake/paths_check.py              # exit 0

The workflow YAML parses. The job itself (Python 3.12 on ubuntu-24.04) runs for the first time on this PR.

Windows: ctest --preset dev --no-tests=error -R '^(script_state_literals|bcpack_prefix_and_mip_tail|resource_range_controls|dxcontainer_part_offsets|layout_chunk_summary|conditional_import_paths)$' -V at 3e763a5 on Windows 11 build 26200.9974, VS Build Tools 2022 17.14 (MSVC 14.44.35207), Windows SDK 10.0.26100, Python 3.12, RTX 5080 (driver 32.0.16.1692): 6/6 passed.

Evidence and follow-up

No new fixtures. Every other script in tests/, tests/cpu and tests/intake was checked with no arguments: they need built binaries or tool paths, and cpu/native_map_check.py uses ctypes.WinDLL, so they stay Windows-only. The Windows CTest job is unchanged, so these six still run there too.

**@⁠Vonsek** on GitHub · 2026-11-21 15:41 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/80) `Vonsek:linux-python-checks` → `main` · +22 −1 · 2 files · 2 commits · merged 2026-11-21 15:47 UTC ## Change Adds a `python-linux` job to the existing workflow that runs the six Python checks that need no Windows-built binaries: `script_state_check`, `bcpack_check`, `resource_ranges_check`, `dxcontainer_part_offsets_check`, `layout_chunks_check` and `intake/paths_check` (registered in CMake as `conditional_import_paths`). These currently run only inside the Windows CTest job, so a Linux contributor gets no CI signal for them and a parser regression shows up only after the full Windows build. Refs #56. CONTRIBUTING.md gets one sentence describing the new job. Action SHAs and `persist-credentials: false` match the existing jobs. ## Verification On Linux with Python 3.13 and `pip install -r requirements-dev.txt`: ``` python -B tests/script_state_check.py # OK (3 tests) python -B tests/bcpack_check.py # OK (2 tests) python -B tests/resource_ranges_check.py # OK (3 tests) python -B tests/dxcontainer_part_offsets_check.py # OK (4 tests) python -B tests/layout_chunks_check.py # layout chunk summary ok python -B tests/intake/paths_check.py # exit 0 ``` The workflow YAML parses. The job itself (Python 3.12 on ubuntu-24.04) runs for the first time on this PR. Windows: `ctest --preset dev --no-tests=error -R '^(script_state_literals|bcpack_prefix_and_mip_tail|resource_range_controls|dxcontainer_part_offsets|layout_chunk_summary|conditional_import_paths)$' -V` at 3e763a5 on Windows 11 build 26200.9974, VS Build Tools 2022 17.14 (MSVC 14.44.35207), Windows SDK 10.0.26100, Python 3.12, RTX 5080 (driver 32.0.16.1692): 6/6 passed. ## Evidence and follow-up No new fixtures. Every other script in `tests/`, `tests/cpu` and `tests/intake` was checked with no arguments: they need built binaries or tool paths, and `cpu/native_map_check.py` uses `ctypes.WinDLL`, so they stay Windows-only. The Windows CTest job is unchanged, so these six still run there too.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:25:47 +00:00
github manually merged commit 3e763a5632 into gh-pr/80/base 2026-11-26 21:25:47 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.