tools: add a summary and #1 submit path to the GPU check report #62

Merged
Jawschamp merged 5 commits from upstream-pr/62 into main 2026-11-21 17:00:43 +00:00
Jawschamp commented 2026-11-21 14:52:47 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Jawschamp on 2026-11-21T14:52:47Z.


Refs #1.

The standalone GPU check report now starts with a summary of the
adapter, driver, debug layer, native lane range and per-test
results, and ends with instructions to paste the file as a comment
on the hardware coverage thread. Recent reports were opened as new
issues with only an attached log.

The published gpu-check-v0.1.0 ZIP is unchanged until a new
release; this applies to current source and the next packaged
build. The field parsers follow the offscreen_check output
format, including the multi-word driver=unavailable via DXGI
fallback.

Verification

python3 -B tests/gpu_report_format_check.py

7 passed on Linux (no Windows or game files). I do not have a
Windows GPU here. The existing package-gpu-check.ps1 WARP smoke
test now also requires the Summary and Submit headings and the #1
URL, and the Ubuntu job runs the format check.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6530356742 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/62). Originally posted by [Jawschamp](https://github.com/Jawschamp) on 2026-11-21T14:52:47Z. --- Refs #1. The standalone GPU check report now starts with a summary of the adapter, driver, debug layer, native lane range and per-test results, and ends with instructions to paste the file as a comment on the hardware coverage thread. Recent reports were opened as new issues with only an attached log. The published `gpu-check-v0.1.0` ZIP is unchanged until a new release; this applies to current source and the next packaged build. The field parsers follow the `offscreen_check` output format, including the multi-word `driver=unavailable via DXGI` fallback. ## Verification ``` python3 -B tests/gpu_report_format_check.py ``` 7 passed on Linux (no Windows or game files). I do not have a Windows GPU here. The existing `package-gpu-check.ps1` WARP smoke test now also requires the Summary and Submit headings and the #1 URL, and the Ubuntu job runs the format check.
upstream-sync closed this pull request 2026-11-24 06:41:10 +00:00
R0Y00 commented 2026-11-24 06:47:34 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T15:25:08Z.


Thanks for improving the submission flow. The Windows job on the updated branch fails when the extracted ZIP runs Run-GpuCheck.ps1 under Windows PowerShell: ParserError / TerminatorExpectedAtEndOfString. The final Write-Output line introduces a literal em dash inside a double-quoted string. Windows PowerShell 5.1 can misread that UTF-8 sequence in a BOM-less script. Please use ASCII punctuation on that line, check for other non-ASCII punctuation in the packaged runner, and rerun the ZIP/WARP smoke test. The workflow already exercises the right entry point.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7064856686 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/62#issuecomment-7064856686). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T15:25:08Z. --- Thanks for improving the submission flow. The Windows job on the updated branch fails when the extracted ZIP runs Run-GpuCheck.ps1 under Windows PowerShell: `ParserError / TerminatorExpectedAtEndOfString`. The final Write-Output line introduces a literal em dash inside a double-quoted string. Windows PowerShell 5.1 can misread that UTF-8 sequence in a BOM-less script. Please use ASCII punctuation on that line, check for other non-ASCII punctuation in the packaged runner, and rerun the ZIP/WARP smoke test. The workflow already exercises the right entry point.
Vonsek commented 2026-11-24 06:47:36 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T15:59:57Z.


Tested this on Windows 11 26200.9974 with an RTX 5080 (driver 32.0.16.1692), MSVC 14.44 and SDK 10.0.26100, at 83229f5.

.\tools\package-gpu-check.ps1 fails with "The extracted package failed its WARP tests." The cause is the em dash in tools/gpu-check/Run-GpuCheck.ps1 (line 128). The file is UTF-8 without a BOM, so Windows PowerShell 5.1 reads it as cp1252; the dash's last byte becomes a curly quote that PowerShell treats as a string terminator, and the script fails to parse with "The string is missing the terminator". That would hit anyone who runs the ZIP from the default powershell.exe.

Replacing — with - (or saving the script with a BOM) fixes it. With that change locally, packaging passes, the extracted Run-GpuCheck.ps1 exits 0 on the hardware backend, and gpu-report-hardware.md has the new summary at the top (adapter, driver, debug layer, lane range, per-test table) and the #1 submit instructions at the end. All hardware tests passed except bvh_wave64_hardware, which skipped because the native lane range is 32..32.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7065298331 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/62#issuecomment-7065298331). Originally posted by [Vonsek](https://github.com/Vonsek) on 2026-11-21T15:59:57Z. --- Tested this on Windows 11 26200.9974 with an RTX 5080 (driver 32.0.16.1692), MSVC 14.44 and SDK 10.0.26100, at 83229f5. `.\tools\package-gpu-check.ps1` fails with "The extracted package failed its WARP tests." The cause is the em dash in `tools/gpu-check/Run-GpuCheck.ps1` (line 128). The file is UTF-8 without a BOM, so Windows PowerShell 5.1 reads it as cp1252; the dash's last byte becomes a curly quote that PowerShell treats as a string terminator, and the script fails to parse with "The string is missing the terminator". That would hit anyone who runs the ZIP from the default `powershell.exe`. Replacing ` — ` with ` - ` (or saving the script with a BOM) fixes it. With that change locally, packaging passes, the extracted `Run-GpuCheck.ps1` exits 0 on the hardware backend, and `gpu-report-hardware.md` has the new summary at the top (adapter, driver, debug layer, lane range, per-test table) and the #1 submit instructions at the end. All hardware tests passed except `bvh_wave64_hardware`, which skipped because the native lane range is 32..32.
Jawschamp commented 2026-11-24 06:47:37 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Jawschamp on 2026-11-21T16:29:44Z.


Thanks both, and thanks @Vonsek for tracking it down to the encoding. Replaced the em dash on that line with an ASCII hyphen; it was the only non-ASCII character in the packaged runner or package-gpu-check.ps1. Added a check to tests/gpu_report_format_check.py that fails on any non-ASCII byte in those two scripts, so this can't slip back in. I can't run Windows PowerShell 5.1 here, so the Windows job's ZIP/WARP smoke test is the real confirmation.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7065688727 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/62#issuecomment-7065688727). Originally posted by [Jawschamp](https://github.com/Jawschamp) on 2026-11-21T16:29:44Z. --- Thanks both, and thanks @Vonsek for tracking it down to the encoding. Replaced the em dash on that line with an ASCII hyphen; it was the only non-ASCII character in the packaged runner or `package-gpu-check.ps1`. Added a check to `tests/gpu_report_format_check.py` that fails on any non-ASCII byte in those two scripts, so this can't slip back in. I can't run Windows PowerShell 5.1 here, so the Windows job's ZIP/WARP smoke test is the real confirmation.
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
R0Y00/Xbox2Windows!62
No description provided.