WIP: [pr-docs][startup] Add docs/testing-prs.md: build and test a pull request without having built Darner before #203

Draft
Jesper-A wants to merge 1 commit from Jesper-A/Darner:up-docs-testing-prs into main
Contributor

Related: #167 asks whether dev builds should have one way in; the page names today's scripts\play-nvidia.ps1 and will follow if that changes.

What it changes

  • The problem on main: read from the repository only. There is no page that tells a player who has never built Darner how to try a pull request. CONTRIBUTING.md says testing someone else's pull request is the most useful thing to do, but gives no steps.

Adds docs/testing-prs.md, a copy-and-paste guide, and one sentence in CONTRIBUTING.md that links to it. It covers:

  • winget installs of Git, Rustup and the Visual Studio 2022 Build Tools with the C++ workload (Microsoft.VisualStudio.Workload.VCTools, with --includeRecommended, and --wait --passive because --override replaces winget's own installer arguments);
  • a fresh clone per pull request, git fetch origin refs/pull/<N>/head, then git checkout <the verified 40-character commit>;
  • Get-NVIDIA-DLSS.cmd, then scripts\play-nvidia.ps1 -Exe ... -More '<SWITCH>';
  • a note for AMD and Intel cards (skip the DLSS download, add -Dlss off);
  • what to report, and which log to attach.

Why a pinned commit and a build, not a downloaded exe: testers build a commit that someone checked first, named by its full hash. A pull request can be changed after it was checked, and a downloaded exe from an unchecked pull request could be malicious. If the pull request moved, git checkout fails with "reference is not a tree" and the page tells the tester to wait. This came out of a Fluxer discussion on 2026-12-04 with xrobau and TrustNo1. The Fluxer bot will post a thread per pull request that fills in N, the commit and the switch, and links to this page.

How it was tested

  • Tested revision: the commit of this branch (up-docs-testing-prs, based on trustno1/main f3840d73d).
  • Commands and results: no code changed, so no cargo gate was run. Of the three gates in AGENTS.md (cargo clippy --workspace --all-targets --locked -- -D warnings, the same with --all-features, cargo test --workspace --locked) none applies to a docs-only diff and none was run. cargo xtask policy: not run. The facts the page states were checked against trustno1/main by reading scripts/play-nvidia.ps1, rust-toolchain.toml and Get-NVIDIA-DLSS.cmd.
  • The install lines were tried on a fresh Windows install (2026-12-04).
  • Changes a default: no.
  • A/B result: not applicable (docs only).
  • Gameplay, when relevant: not run. The play-nvidia.ps1 line with -More was not run end to end from a fresh clone of the final page.
  • Shader wave sizes tested: not applicable.
  • Hardware dependence: likely general for the Windows steps. The AMD and Intel note is untested elsewhere.
  • Coverage gaps:
    • AMD and Intel: not tried in practice. The note comes from reading play-nvidia.ps1: without the NVIDIA files it prints launcher.sdk.nvidia_missing and plays on, and -Dlss off skips the check.
    • If #167's rework lands (xrobau's branch has scripts/build-darner.ps1 and play.ps1), the page follows the new names.

Spec dependence

Likely general: the page is about Windows tools and git. The play line was read for an NVIDIA card; AMD and Intel are untested. Nothing here depends on the author's hardware (RTX 2070 SUPER, ReBAR off).

Checklist

  • I ran this change in the game, or say below why it can't be (docs, tests only). Docs only: nothing in the game changes.
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md. No game data, names or screenshots.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: #180 (README header and "tester guide"; touches README.md only, no install or refs/pull steps), #152 (docs/ab-testing.md). Related issue: #167 (question about launcher names).
  • Replaces or overlaps: none found.

This change was made with AI assistance (Claude Code).

<!-- Thanks for the pull request. Start the title with its type (pr-fix, pr-feature, pr-performance, pr-diagnostics, pr-refactor, pr-docs or pr-tests) and the area tags, like [pr-fix][memory]. This host has no labels yet, so the tags stay in the title. --> Related: #167 asks whether dev builds should have one way in; the page names today's `scripts\play-nvidia.ps1` and will follow if that changes. ## What it changes - The problem on main: read from the repository only. There is no page that tells a player who has never built Darner how to try a pull request. `CONTRIBUTING.md` says testing someone else's pull request is the most useful thing to do, but gives no steps. Adds `docs/testing-prs.md`, a copy-and-paste guide, and one sentence in `CONTRIBUTING.md` that links to it. It covers: - `winget` installs of Git, Rustup and the Visual Studio 2022 Build Tools with the C++ workload (`Microsoft.VisualStudio.Workload.VCTools`, with `--includeRecommended`, and `--wait --passive` because `--override` replaces winget's own installer arguments); - a fresh clone per pull request, `git fetch origin refs/pull/<N>/head`, then `git checkout <the verified 40-character commit>`; - `Get-NVIDIA-DLSS.cmd`, then `scripts\play-nvidia.ps1 -Exe ... -More '<SWITCH>'`; - a note for AMD and Intel cards (skip the DLSS download, add `-Dlss off`); - what to report, and which log to attach. Why a pinned commit and a build, not a downloaded exe: testers build a commit that someone checked first, named by its full hash. A pull request can be changed after it was checked, and a downloaded exe from an unchecked pull request could be malicious. If the pull request moved, `git checkout` fails with "reference is not a tree" and the page tells the tester to wait. This came out of a Fluxer discussion on 2026-12-04 with xrobau and TrustNo1. The Fluxer bot will post a thread per pull request that fills in N, the commit and the switch, and links to this page. ## How it was tested - Tested revision: the commit of this branch (`up-docs-testing-prs`, based on `trustno1/main` f3840d73d). - Commands and results: no code changed, so no cargo gate was run. Of the three gates in AGENTS.md (`cargo clippy --workspace --all-targets --locked -- -D warnings`, the same with `--all-features`, `cargo test --workspace --locked`) none applies to a docs-only diff and none was run. `cargo xtask policy`: not run. The facts the page states were checked against `trustno1/main` by reading `scripts/play-nvidia.ps1`, `rust-toolchain.toml` and `Get-NVIDIA-DLSS.cmd`. - The install lines were tried on a fresh Windows install (2026-12-04). - Changes a default: no. - A/B result: not applicable (docs only). - Gameplay, when relevant: not run. The `play-nvidia.ps1` line with `-More` was not run end to end from a fresh clone of the final page. - Shader wave sizes tested: not applicable. - Hardware dependence: likely general for the Windows steps. The AMD and Intel note is untested elsewhere. - Coverage gaps: - AMD and Intel: not tried in practice. The note comes from reading `play-nvidia.ps1`: without the NVIDIA files it prints `launcher.sdk.nvidia_missing` and plays on, and `-Dlss off` skips the check. - If #167's rework lands (xrobau's branch has `scripts/build-darner.ps1` and `play.ps1`), the page follows the new names. ## Spec dependence Likely general: the page is about Windows tools and git. The play line was read for an NVIDIA card; AMD and Intel are untested. Nothing here depends on the author's hardware (RTX 2070 SUPER, ReBAR off). ## Checklist - [ ] I ran this change in the game, or say below why it can't be (docs, tests only). Docs only: nothing in the game changes. - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. No game data, names or screenshots. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: #180 (README header and "tester guide"; touches `README.md` only, no install or `refs/pull` steps), #152 (`docs/ab-testing.md`). Related issue: #167 (question about launcher names). - Replaces or overlaps: none found. This change was made with AI assistance (Claude Code).
A page for players who have never built Darner: install the tools with
winget, fetch the pull request's verified commit through refs/pull/<N>/head,
build and play it with scripts\play-nvidia.ps1 and the change's switch in
-More, and report. CONTRIBUTING.md points to it.

This change was made with AI assistance (Claude Code).
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'up-docs-testing-prs:Jesper-A-up-docs-testing-prs'
git switch 'Jesper-A-up-docs-testing-prs'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'Jesper-A-up-docs-testing-prs'
git switch 'Jesper-A-up-docs-testing-prs'
git rebase 'main'
git switch 'main'
git merge --ff-only 'Jesper-A-up-docs-testing-prs'
git switch 'Jesper-A-up-docs-testing-prs'
git rebase 'main'
git switch 'main'
git merge --no-ff 'Jesper-A-up-docs-testing-prs'
git switch 'main'
git merge --squash 'Jesper-A-up-docs-testing-prs'
git switch 'main'
git merge --ff-only 'Jesper-A-up-docs-testing-prs'
git switch 'main'
git merge 'Jesper-A-up-docs-testing-prs'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
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.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!203
No description provided.