Skip to content

P-1: opt-in test reports and a double-click start for testers - #28

Merged
ShinniUwU merged 1 commit into
mainfrom
feat/test-reports
Nov 26, 2026
Merged

ShinniUwU merged 1 commit into
mainfrom
feat/test-reports

Conversation

@ShinniUwU

Copy link
Copy Markdown
Contributor

Helps P-1 (measure the switches on more cards); does not finish it, so the TODO row stays.

People who have the game but no dev tools can now test and send figures we can turn into gpu-profiles.json profiles.

What changed

  • start-measure.cmd: double-click start. Runs scripts/check-tools.ps1, then measure-gta6.ps1 -SpeedSwitches ask.
  • scripts/check-tools.ps1: checks for the VS 2022 C++ build tools and rustup. If either is missing it offers to install them with winget (asks first), then installs the Rust version rust-toolchain.toml pins.
  • measure-gta6.ps1:
    • -SpeedSwitches on|off|ask (default on, so it works as before) for the with/without comparison in the same place.
    • -Report ask|no (default ask): offers a test report when the game closes.
  • scripts/test-report.ps1: the report.
    • Shows a disclosure first: what is included, what never is, and why. Nothing happens unless the player says yes.
    • Holds GPU, VRAM, driver, CPU, RAM, Windows build, the commit, which switches were on, the warm-up, FPS (last minute and whole run, from the frame log's frame times lines), whether crashes.log was written (never its content), and two optional typed answers.
    • Shows the whole report, saves it to %LOCALAPPDATA%\leonida\reports, and only if the player agrees copies it to the clipboard and opens #test-results in Discord. The player pastes and sends it themselves. No webhook or token is in the repo, and the script uploads nothing.
  • README: a "Testing for the project, with no programming experience" section with 5 plain steps.

Tested

Windows 11 Pro 25H2, Ryzen 7 7800X3D, RTX 3080 12 GB, driver 621.24.

  • All three scripts parse with no errors in Windows PowerShell 5.1.
  • test-report.ps1 dry run with scripted answers and a made-up log in the frame log's format: the report came out as expected (4.0 FPS over the last 60 s, longest frame 1090 ms, driver shown as 621.24).
  • check-tools.ps1 on this PC: found both tools, exit 0. The winget install path has not been run on a clean PC.
  • cargo xtask policy: ok.
  • Not tested: a full start-measure.cmd run with the game, or opening Discord with the clipboard step.

AI-assisted.

🤖 Generated with Claude Code

@ShinniUwU
ShinniUwU merged commit 8ae90e6 into main Nov 26, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant