Run platform-independent Python checks on Linux #79

Merged
Vonsek merged 2 commits from upstream-pr/80 into main 2026-11-21 15:47:46 +00:00
Vonsek commented 2026-11-21 15:41:05 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T15:41:05Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6530892320 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/80). Originally posted by [Vonsek](https://github.com/Vonsek) on 2026-11-21T15:41:05Z. --- ## 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.
upstream-sync closed this pull request 2026-11-24 06:41:14 +00:00
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!79
No description provided.