docs/testing: a Windows quick start and how to test someone else's PR (DOC-TESTING-WINDOWS-QUICKSTART) #1727

Merged
potatoe0100 merged 3 commits from upstream-pr/1727 into main 2026-11-28 08:03:37 +00:00
potatoe0100 commented 2026-11-25 09:51:40 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by potatoe0100 on 2026-11-25T09:51:40Z.


Claimed in the coordination issue as: DOC-TESTING-WINDOWS-QUICKSTART (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7158856504)

What and why

docs/testing.md has everything a Windows tester needs, but spread over many sections, so a first-time tester has to piece the order together. This adds two short sections near the top, linking to the detailed ones rather than repeating them:

  • Quick start on Windows: five steps from a fresh PC to a gpu-test-results/ record: what to install, scripts\build_runtime.ps1, the native and LEONIDA_W64_EMULATE=1 runs (with the --disasm-dir fallback when llvm-mc is missing), the commands that collect commit, GPU, driver, subgroup range and Windows build, and which existing record to copy.
  • Testing someone else's pull request: fetching a PR branch, rebuilding, running it next to main, and a one-line format for the result comment, since testing is what many open PRs wait for.

Written after a first-time run on an RTX 4060. On that run the Visual Studio 2026 linker crashed (LNK1000), which upstream #1147 fixes; the quick start mentions building from a VS 2022 developer prompt as a fallback.

The quick start says Python 3.12+, matching #1471 (DOC-TESTING-PYTHON-MIN); the existing "What you need" line still says 3.11+ until that lands.

Tested

Docs only. Checked that every path and command referenced exists on current main (scripts/build_runtime.ps1, scripts/build_llvm_mc.ps1, tools/vk_subgroup_info.py, tests/semantic/fixtures/disasm, gpu-test-results/RTX3060Ti-Windows.txt) and that the in-page anchors match existing headings.

GPUs tested: n/a (docs only; the steps follow a run on NVIDIA GeForce RTX 4060, driver 621.14, Windows 11)

AI-assisted: yes (written and opened with Claude Code)

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. (n/a, docs only)

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5488982821 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1727). Originally posted by [potatoe0100](https://github.com/potatoe0100) on 2026-11-25T09:51:40Z. --- Claimed in the coordination issue as: DOC-TESTING-WINDOWS-QUICKSTART (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7158856504) ### What and why `docs/testing.md` has everything a Windows tester needs, but spread over many sections, so a first-time tester has to piece the order together. This adds two short sections near the top, linking to the detailed ones rather than repeating them: - **Quick start on Windows**: five steps from a fresh PC to a `gpu-test-results/` record: what to install, `scripts\build_runtime.ps1`, the native and `LEONIDA_W64_EMULATE=1` runs (with the `--disasm-dir` fallback when `llvm-mc` is missing), the commands that collect commit, GPU, driver, subgroup range and Windows build, and which existing record to copy. - **Testing someone else's pull request**: fetching a PR branch, rebuilding, running it next to `main`, and a one-line format for the result comment, since testing is what many open PRs wait for. Written after a first-time run on an RTX 4060. On that run the Visual Studio 2026 linker crashed (LNK1000), which upstream #1147 fixes; the quick start mentions building from a VS 2022 developer prompt as a fallback. The quick start says Python 3.12+, matching #1471 (DOC-TESTING-PYTHON-MIN); the existing "What you need" line still says 3.11+ until that lands. ### Tested Docs only. Checked that every path and command referenced exists on current `main` (`scripts/build_runtime.ps1`, `scripts/build_llvm_mc.ps1`, `tools/vk_subgroup_info.py`, `tests/semantic/fixtures/disasm`, `gpu-test-results/RTX3060Ti-Windows.txt`) and that the in-page anchors match existing headings. GPUs tested: n/a (docs only; the steps follow a run on NVIDIA GeForce RTX 4060, driver 621.14, Windows 11) AI-assisted: yes (written and opened with Claude Code) ### 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. (n/a, docs only) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Rezn0r27 commented 2026-11-25 10:55:47 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Rezn0r27 on 2026-11-25T10:55:47Z.


I tested runtime-windows build #2676 on Windows 11 using its matching checkout (4eb6155d3). When I copied the command from the newer guide, that version of run_gpu_tests.py rejected --disasm-dir and --assembler before any GPU test started.

Could the Windows quick start remind readers using a prebuilt runtime to open docs/testing.md at the commit that built their artifact? A tip to run py -3.12 -I scripts/run_gpu_tests.py --help from that checkout would also help beginners see which options are available.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7160361058 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1727#issuecomment-7160361058). Originally posted by [Rezn0r27](https://github.com/Rezn0r27) on 2026-11-25T10:55:47Z. --- I tested runtime-windows build #2676 on Windows 11 using its matching checkout (4eb6155d3). When I copied the command from the newer guide, that version of run_gpu_tests.py rejected --disasm-dir and --assembler before any GPU test started. Could the Windows quick start remind readers using a prebuilt runtime to open docs/testing.md at the commit that built their artifact? A tip to run `py -3.12 -I scripts/run_gpu_tests.py --help` from that checkout would also help beginners see which options are available.
potatoe0100 commented 2026-11-25 11:01:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by potatoe0100 on 2026-11-25T11:01:37Z.


Thanks @Rezn0r27, good catch. Added in 3f2bda31d: step 3 of the quick start now tells anyone using a prebuilt runtime-windows artifact to check out the commit that built it and read this page at that commit, and to run python -I scripts\run_gpu_tests.py --help from that checkout to see which options it takes. Also rebased on main bcaa13dad; the tests/test_docs* checks pass.

AI-assisted (non-developer tester).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7160487885 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1727#issuecomment-7160487885). Originally posted by [potatoe0100](https://github.com/potatoe0100) on 2026-11-25T11:01:37Z. --- Thanks @Rezn0r27, good catch. Added in `3f2bda31d`: step 3 of the quick start now tells anyone using a prebuilt `runtime-windows` artifact to check out the commit that built it and read this page at that commit, and to run `python -I scripts\run_gpu_tests.py --help` from that checkout to see which options it takes. Also rebased on `main` `bcaa13dad`; the `tests/test_docs*` checks pass. AI-assisted (non-developer tester).
Rezn0r27 commented 2026-11-25 13:12:45 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Rezn0r27 on 2026-11-25T13:12:45Z.


Thanks! The new note makes it clear which guide to use with a prebuilt runtime and how to check the supported options. That addresses the issue I ran into with build #2676 on Windows.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7163450341 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1727#issuecomment-7163450341). Originally posted by [Rezn0r27](https://github.com/Rezn0r27) on 2026-11-25T13:12:45Z. --- Thanks! The new note makes it clear which guide to use with a prebuilt runtime and how to check the supported options. That addresses the issue I ran into with build #2676 on Windows.
Rezn0r27 commented 2026-11-26 14:31:53 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Rezn0r27 on 2026-11-26T14:31:53Z.


Small suggestion for “Testing someone else’s pull request”: could we add a note before git fetch origin ...? “Run git remote -v first. If the project repository is listed as upstream, use git fetch upstream in the example below.” In my clone, git ls-remote upstream refs/pull/1818/head returned 05626b30e, the exact commit I tested on Windows.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7194953368 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1727#issuecomment-7194953368). Originally posted by [Rezn0r27](https://github.com/Rezn0r27) on 2026-11-26T14:31:53Z. --- Small suggestion for “Testing someone else’s pull request”: could we add a note before git fetch origin ...? “Run git remote -v first. If the project repository is listed as upstream, use git fetch upstream in the example below.” In my clone, git ls-remote upstream refs/pull/1818/head returned 05626b30e, the exact commit I tested on Windows.
DadaCap commented 2026-11-28 08:03:41 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-28T08:03:41Z.


Merged into main (merge commit 6a5219f60), approved by DadaCap (maintainer). Thanks!

Checked before merging: Tested in our local release candidate (main + 41 PRs): translator suite 512 files / 6,442 tests clean, Python suite with no new failure versus main, and 360 s game runs on an RTX 5080 with no regression. The merge was pinned to the head commit that was tested (59c128236).

AI-assisted (Claude Code), posted for DadaCap.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7236336263 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1727#issuecomment-7236336263). Originally posted by [DadaCap](https://github.com/DadaCap) on 2026-11-28T08:03:41Z. --- Merged into `main` (merge commit 6a5219f60), approved by DadaCap (maintainer). Thanks! Checked before merging: Tested in our local release candidate (main + 41 PRs): translator suite 512 files / 6,442 tests clean, Python suite with no new failure versus main, and 360 s game runs on an RTX 5080 with no regression. The merge was pinned to the head commit that was tested (59c128236). _AI-assisted (Claude Code), posted for DadaCap._
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!1727
No description provided.