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

Open
github-bot wants to merge 3 commits from github-bot/gh-1727 into main AGit
Owner

@⁠potatoe0100 on GitHub · 2026-11-25 09:51 UTC · original
potatoe0100:claude/project-thread-es80ya → main · +72 −0 · 1 files · 3 commits · open

Claimed in the coordination issue as: DOC-TESTING-WINDOWS-QUICKSTART (#1608)

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

**@⁠potatoe0100** on GitHub · 2026-11-25 09:51 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1727) `potatoe0100:claude/project-thread-es80ya` → `main` · +72 −0 · 1 files · 3 commits · open Claimed in the coordination issue as: DOC-TESTING-WINDOWS-QUICKSTART (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### 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)
Five steps from a fresh Windows PC to a gpu-test-results record: what to
install, build_runtime.ps1, the native and LEONIDA_W64_EMULATE=1 runs, the
commands that collect GPU, driver, subgroup range, OS build and commit, and
which existing record to copy. Links to the detailed sections instead of
repeating them. Follows a first-time run on an RTX 4060 (NVIDIA 621.14).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Rezn0r27's review on #1727: an older run_gpu_tests.py rejects options the quick start shows. Point artifact users at their commit's page and at --help.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:02:44 +00:00
Author
Owner

@⁠Rezn0r27 on GitHub · 2026-11-25 10:55 UTC · original

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.

**@⁠Rezn0r27** on GitHub · 2026-11-25 10:55 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1727#issuecomment-7160361058) 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.
Author
Owner

@⁠potatoe0100 on GitHub · 2026-11-25 11:01 UTC · original

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

**@⁠potatoe0100** on GitHub · 2026-11-25 11:01 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1727#issuecomment-7160487885) 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).
Author
Owner

@⁠Rezn0r27 on GitHub · 2026-11-25 13:12 UTC · original

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** on GitHub · 2026-11-25 13:12 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1727#issuecomment-7163450341) 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.
Author
Owner

@⁠Rezn0r27 on GitHub · 2026-11-26 14:31 UTC · original

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.

**@⁠Rezn0r27** on GitHub · 2026-11-26 14:31 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1727#issuecomment-7194953368) 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.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1727/head:github-bot/gh-1727'
git switch 'github-bot/gh-1727'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1727'
git switch 'github-bot/gh-1727'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1727'
git switch 'github-bot/gh-1727'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1727'
git switch 'main'
git merge --squash 'github-bot/gh-1727'
git switch 'main'
git merge --ff-only 'github-bot/gh-1727'
git switch 'main'
git merge 'github-bot/gh-1727'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.