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

Closed
leonida/mandy
barkodr wants to merge 0 commits from fix/probe-vcmp16-usage into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

barkodr commented 2026-11-24 15:37:11 +00:00

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.
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 approved these changes 2026-11-24 15:41:35 +00:00
KernelSmoker left a comment

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.

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

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).

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

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)

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 reviewed 2026-12-01 11:53:03 +00:00
aslan2142 left a comment
No description provided.
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

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.

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.
Sign in to join this conversation.
No description provided.