docs: fix the non-Windows Python check lists #656

Merged
louisdibiasi merged 1 commit from upstream-pr/662 into main 2026-11-22 18:46:24 +00:00
louisdibiasi commented 2026-11-22 18:29:41 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by louisdibiasi on 2026-11-22T18:29:41Z.


Change

docs/non-windows-hosts.md has two copies of the platform-independent check loop, and both disagree with the CI Python job in .github/workflows/windows.yml:

  • The macOS loop installs only pefile (#396: on Apple Silicon pip builds iced-x86 from source and fails without Rust) but still runs tests/form_coverage_check.py, whose first check imports iced_x86 through form_reference. The loop stops with ModuleNotFoundError on that host.
  • Both loops omit tests/bc7_tiles_check.py, which CI and AGENTS.md run.

This removes form_coverage_check.py from the macOS loop, adds a sentence saying it and xmem_attribute_scan_check.py need iced-x86 (so run them on Linux or Windows), and adds bc7_tiles_check.py to both loops.

Independent problem, no linked issue.

Verification

Commit under test: 22deabc on 719552e. I did not run this on a Mac.

  • Before (719552e): comparing each loop with the CI Python job gives CI-not-listed=['tests/bc7_tiles_check.py', 'tests/xmem_attribute_scan_check.py'] for macOS (the xmem check is the deliberate omission) and ['tests/bc7_tiles_check.py'] for Linux.
  • To simulate a pefile-only environment I put a sitecustomize.py on PYTHONPATH that raises ModuleNotFoundError for iced_x86. On 719552e, python -B tests/form_coverage_check.py then fails: form_coverage_check.py -> form_reference.py:56 -> ModuleNotFoundError: No module named 'iced_x86', exit 1. bc7_tiles_check.py passes in the same environment.
  • On this branch, every script in the macOS loop (19) passes with iced_x86 blocked. The Linux loop (21 scripts) passes with the normal environment, and its list now equals the CI job's tests (gpu_report_format_check.py is listed in the docs but not in that CI job, unchanged).
  • python -B tests/docs_links_check.py -> Checked 10 Markdown files and 126 links.

Evidence and follow-up

Docs only. The iced-x86 simulation is an import block, not a real macOS install. #396's description records the source-build failure on Apple Silicon.

Checklist

  • One reviewable behavior (keep the non-Windows lists consistent with CI).
  • Exact commands and results above.
  • Docs link check passes.
  • No game files, dumps, links or secrets.

AI-assisted: I used Claude to find the mismatch and draft the change. I ran the commands above myself.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6546091359 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/662). Originally posted by [louisdibiasi](https://github.com/louisdibiasi) on 2026-11-22T18:29:41Z. --- ## Change `docs/non-windows-hosts.md` has two copies of the platform-independent check loop, and both disagree with the CI Python job in `.github/workflows/windows.yml`: - The macOS loop installs only `pefile` (#396: on Apple Silicon pip builds `iced-x86` from source and fails without Rust) but still runs `tests/form_coverage_check.py`, whose first check imports `iced_x86` through `form_reference`. The loop stops with `ModuleNotFoundError` on that host. - Both loops omit `tests/bc7_tiles_check.py`, which CI and AGENTS.md run. This removes `form_coverage_check.py` from the macOS loop, adds a sentence saying it and `xmem_attribute_scan_check.py` need `iced-x86` (so run them on Linux or Windows), and adds `bc7_tiles_check.py` to both loops. Independent problem, no linked issue. ## Verification Commit under test: 22deabc on 719552e. I did not run this on a Mac. - Before (719552e): comparing each loop with the CI Python job gives `CI-not-listed=['tests/bc7_tiles_check.py', 'tests/xmem_attribute_scan_check.py']` for macOS (the xmem check is the deliberate omission) and `['tests/bc7_tiles_check.py']` for Linux. - To simulate a pefile-only environment I put a `sitecustomize.py` on `PYTHONPATH` that raises `ModuleNotFoundError` for `iced_x86`. On 719552e, `python -B tests/form_coverage_check.py` then fails: `form_coverage_check.py -> form_reference.py:56 -> ModuleNotFoundError: No module named 'iced_x86'`, exit 1. `bc7_tiles_check.py` passes in the same environment. - On this branch, every script in the macOS loop (19) passes with `iced_x86` blocked. The Linux loop (21 scripts) passes with the normal environment, and its list now equals the CI job's tests (`gpu_report_format_check.py` is listed in the docs but not in that CI job, unchanged). - `python -B tests/docs_links_check.py` -> `Checked 10 Markdown files and 126 links.` ## Evidence and follow-up Docs only. The iced-x86 simulation is an import block, not a real macOS install. #396's description records the source-build failure on Apple Silicon. ## Checklist - [x] One reviewable behavior (keep the non-Windows lists consistent with CI). - [x] Exact commands and results above. - [x] Docs link check passes. - [x] No game files, dumps, links or secrets. AI-assisted: I used Claude to find the mismatch and draft the change. I ran the commands above myself.
upstream-sync closed this pull request 2026-11-24 06:44:12 +00:00
legacy-code-archaeologist commented 2026-11-24 06:48:39 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-22T18:37:58Z.


Checked 22deabc, which merges cleanly with main, against the CI job it aims to match: the python-linux job in .github/workflows/windows.yml at this commit, which runs 20 check scripts.

  • Linux/Windows loop: it lists all 20 of the job's scripts, including the added tests/bc7_tiles_check.py. It also lists tests/gpu_report_format_check.py, which the job does not run.
  • macOS loop: it lists the same scripts except form_coverage_check.py and xmem_attribute_scan_check.py, which matches the new sentence about iced-x86.

I ran every script of the Linux/Windows loop at this head on Windows 11 26100.9168 with Python 3.12.10: 21 of 21 pass.

The only remaining difference from CI is tests/gpu_report_format_check.py, which already appears twice in this doc on main, so this PR did not introduce it. It passes locally. If the goal is an exact match with the CI job, it would either join the job or be marked as an extra local check.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7083751160 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/662#issuecomment-7083751160). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-22T18:37:58Z. --- Checked `22deabc`, which merges cleanly with `main`, against the CI job it aims to match: the `python-linux` job in `.github/workflows/windows.yml` at this commit, which runs 20 check scripts. - **Linux/Windows loop:** it lists all 20 of the job's scripts, including the added `tests/bc7_tiles_check.py`. It also lists `tests/gpu_report_format_check.py`, which the job does not run. - **macOS loop:** it lists the same scripts except `form_coverage_check.py` and `xmem_attribute_scan_check.py`, which matches the new sentence about `iced-x86`. I ran every script of the Linux/Windows loop at this head on Windows 11 26100.9168 with Python 3.12.10: 21 of 21 pass. The only remaining difference from CI is `tests/gpu_report_format_check.py`, which already appears twice in this doc on `main`, so this PR did not introduce it. It passes locally. If the goal is an exact match with the CI job, it would either join the job or be marked as an extra local check. AI-assisted (Claude Code).
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!656
No description provided.