probe_gfx1036_vcmp16: fix its usage line and name a missing vk_compute_test or spirv-as in one line #951

Closed
barkodr wants to merge 1 commit from upstream-pr/951 into main
barkodr commented 2026-11-24 15:37:11 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by barkodr on 2026-11-24T15:37:11Z.


Claimed in the coordination issue as: claiming: tools/probe_gfx1036_vcmp16.py's usage names a private C:\Leonida-worktrees wrapper and the wrong folder (scripts/); fix the usage line and print one clear line when vk_compute_test.exe or spirv-as is missing. Tools only. AI-assisted.

What and why

The usage line of tools/probe_gfx1036_vcmp16.py named a private C:\Leonida-worktrees wrapper and the wrong folder (scripts/). It now gives the command from the checkout root and its prerequisites. The probe says in one line when vk_compute_test or spirv-as is missing and exits 1, and it has a test (tests/test_probe_gfx1036_vcmp16.py).

Tested

On macOS 26.6.2 with Python 3.12.16 and on Ubuntu 26.04 (WSL2) with Python 3.14.4, from the checkout root with python -I: tests/test_probe_gfx1036_vcmp16.py, tests/test_text_write_line_endings.py and tests/test_docs_python_deps.py pass on both. Not run on a gfx1036 GPU; only the prerequisite checks and usage text are tested.

GPUs tested: none (no GPU code changed)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5475316372 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/951). Originally posted by [barkodr](https://github.com/barkodr) on 2026-11-24T15:37:11Z. --- Claimed in the coordination issue as: claiming: tools/probe_gfx1036_vcmp16.py's usage names a private C:\Leonida-worktrees wrapper and the wrong folder (scripts/); fix the usage line and print one clear line when vk_compute_test.exe or spirv-as is missing. Tools only. AI-assisted. ### What and why The usage line of `tools/probe_gfx1036_vcmp16.py` named a private `C:\Leonida-worktrees` wrapper and the wrong folder (`scripts/`). It now gives the command from the checkout root and its prerequisites. The probe says in one line when `vk_compute_test` or `spirv-as` is missing and exits 1, and it has a test (`tests/test_probe_gfx1036_vcmp16.py`). ### Tested On macOS 26.6.2 with Python 3.12.16 and on Ubuntu 26.04 (WSL2) with Python 3.14.4, from the checkout root with `python -I`: `tests/test_probe_gfx1036_vcmp16.py`, `tests/test_text_write_line_endings.py` and `tests/test_docs_python_deps.py` pass on both. Not run on a gfx1036 GPU; only the prerequisite checks and usage text are tested. GPUs tested: none (no GPU code changed) AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed.
KernelSmoker commented 2026-11-24 15:41:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KernelSmoker on 2026-11-24T15:41:35Z.

Review: APPROVED


Verified on exact head ea70e33857df850e8b85d9eb9256759717a24b58. On Linux, tests/test_probe_gfx1036_vcmp16.py passed 3/3, tests/test_text_write_line_endings.py 3/3, and tests/test_docs_python_deps.py 3/3. Python compile, check_no_game_data.py, and git diff --check passed. The missing-prerequisite checks validate the executable and spirv-as error paths without requiring a GPU; I did not run the gfx1036 silicon probe (the local RTX 3090 is not gfx1036). No game data used.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6042458840 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/951#pullrequestreview-6042458840). Originally posted by [KernelSmoker](https://github.com/KernelSmoker) on 2026-11-24T15:41:35Z. **Review:** APPROVED --- Verified on exact head `ea70e33857df850e8b85d9eb9256759717a24b58`. On Linux, `tests/test_probe_gfx1036_vcmp16.py` passed 3/3, `tests/test_text_write_line_endings.py` 3/3, and `tests/test_docs_python_deps.py` 3/3. Python compile, `check_no_game_data.py`, and `git diff --check` passed. The missing-prerequisite checks validate the executable and `spirv-as` error paths without requiring a GPU; I did not run the gfx1036 silicon probe (the local RTX 3090 is not gfx1036). No game data used.
MoonEyes commented 2026-11-28 18:02:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T18:02:03Z.


Hi @barkodr, thanks for this pull request. It currently conflicts with main (conflicting file(s): tests/test_probe_gfx1036_vcmp16.py), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7243476992 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/951#issuecomment-7243476992). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T18:02:03Z. --- Hi @barkodr, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `tests/test_probe_gfx1036_vcmp16.py`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
kurrutako commented 2026-12-01 08:47:53 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kurrutako on 2026-12-01T08:47:53Z.


Tested on Windows 11, Python 3.14.6, head ea70e33.

  • pytest tests/test_probe_gfx1036_vcmp16.py: 3 passed.
  • No runtime/build: one ERROR: vk_compute_test not found ... line, exit 1 (main: a 35-line FileNotFoundError traceback).
  • A stub exe with spirv-as off PATH: one ERROR: spirv-as not found on PATH ... line, exit 1.

Merging current main gives an add/add conflict: main (c7b374f32) added its own tests/test_probe_gfx1036_vcmp16.py. The tool itself merges cleanly.

With both test files combined, main's test_all_probe_functions_pass_with_fake_silicon_oracle fails, because main() now returns early when no vk_compute_test is built. Adding mock.patch.object(pr, "missing_prerequisite", return_value=None) to that test fixes it: 14 passed.

No GPU probe run.

AI-assisted (Claude Code)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7305797875 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/951#issuecomment-7305797875). Originally posted by [kurrutako](https://github.com/kurrutako) on 2026-12-01T08:47:53Z. --- Tested on Windows 11, Python 3.14.6, head ea70e33. - `pytest tests/test_probe_gfx1036_vcmp16.py`: 3 passed. - No `runtime/build`: one `ERROR: vk_compute_test not found ...` line, exit 1 (main: a 35-line `FileNotFoundError` traceback). - A stub exe with spirv-as off PATH: one `ERROR: spirv-as not found on PATH ...` line, exit 1. Merging current main gives an add/add conflict: main (c7b374f32) added its own `tests/test_probe_gfx1036_vcmp16.py`. The tool itself merges cleanly. With both test files combined, main's `test_all_probe_functions_pass_with_fake_silicon_oracle` fails, because `main()` now returns early when no vk_compute_test is built. Adding `mock.patch.object(pr, "missing_prerequisite", return_value=None)` to that test fixes it: 14 passed. No GPU probe run. AI-assisted (Claude Code)
aslan2142 commented 2026-12-01 11:53:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T11:53:03Z.

Review: CHANGES_REQUESTED


Reviewed against current main: the usage line and missing-tool error fixes in tools/probe_gfx1036_vcmp16.py look good, but this branch conflicts with main in tests/test_probe_gfx1036_vcmp16.py. Please rebase onto current main so CI runs cleanly.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6130713249 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/951#pullrequestreview-6130713249). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T11:53:03Z. **Review:** CHANGES_REQUESTED --- Reviewed against current `main`: the usage line and missing-tool error fixes in `tools/probe_gfx1036_vcmp16.py` look good, but this branch conflicts with `main` in `tests/test_probe_gfx1036_vcmp16.py`. Please rebase onto current `main` so CI runs cleanly. *(AI-assisted review.)*
aslan2142 commented 2026-12-01 17:21:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T17:21:30Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7319170808 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/951#issuecomment-7319170808). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T17:21:30Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

Pull request closed

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
ProjectLeonida/mandy!951
No description provided.