Scripts: a test of smoke.ps1's block (adapter from report.json, fallback, counts) #282

Open
github-bot wants to merge 1 commit from github-bot/gh-282 into main AGit
Owner

@⁠NiiRoZz on GitHub · 2026-11-23 22:22 UTC · original
NiiRoZz:nii/smoke-gpu → main · +46 −0 · 1 files · 1 commits · open

scripts/smoke.ps1 now takes its gpu: line from the run's report.json (#281, on main as 97dc49c), which fixes what this PR set out to fix from the log. That change is dropped here. What is left is the test it came with, rewritten for main's script: nothing on main runs smoke.ps1, whose block every runtime PR pastes as its evidence.

No open PR tests smoke.ps1 that I found: #285 changes the same gpu: line (from the log), #296 tests test.ps1.

What is in it

  • scripts/smoke.tests.ps1: runs the script against a stand-in xcl and a written log and report, the way test-native-stderr.tests.ps1 does for test.ps1:
    • gpu: is the adapter of report.json with its VRAM suffix dropped; a report without an adapter (the null backend) and no report at all fall back to the first video controller;
    • title, seconds, exit code, frames, presents and peak commit;
    • a device removal and an unhandled exception in the log are counted.

Tested

  • NVIDIA GeForce RTX 5090 (driver 621.35) plus AMD Radeon integrated graphics (the one Windows lists first), Ryzen 7 9800X3D, Windows 11 Pro 26300, Windows PowerShell 5.1.
  • powershell -File scripts\smoke.tests.ps1 on main a6f5f7a: passes. With smoke.ps1 as it was before #281 (9ab7d76) it fails on the gpu: line (AMD Radeon(TM) Graphics where the report names another adapter).
  • cargo test --workspace -- --test-threads=4 was run for this PR's first version on 9ab7d76 (651 passed, 0 failed, 40 ignored; SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, no wave64). It was not run again on this head: the PR adds one PowerShell file and no Rust.

Regression run

Not needed: scripts only, nothing under crates/xcl/src changes.

Not tested

  • PowerShell 7 (pwsh): not installed here.
  • The Rust suite on this head (see above).

AI use

  • Claude Code with Claude Fable 5.2 wrote the test and this description. The commands above were run on my machine, and I have read the diff.
**@⁠NiiRoZz** on GitHub · 2026-11-23 22:22 UTC · [original](https://github.com/xcl-dev/xcl/pull/282) `NiiRoZz:nii/smoke-gpu` → `main` · +46 −0 · 1 files · 1 commits · open `scripts/smoke.ps1` now takes its `gpu:` line from the run's `report.json` (#281, on main as `97dc49c`), which fixes what this PR set out to fix from the log. That change is dropped here. What is left is the test it came with, rewritten for main's script: nothing on main runs `smoke.ps1`, whose block every runtime PR pastes as its evidence. No open PR tests `smoke.ps1` that I found: #285 changes the same `gpu:` line (from the log), #296 tests `test.ps1`. **What is in it** - `scripts/smoke.tests.ps1`: runs the script against a stand-in `xcl` and a written log and report, the way `test-native-stderr.tests.ps1` does for `test.ps1`: - `gpu:` is the adapter of `report.json` with its VRAM suffix dropped; a report without an adapter (the null backend) and no report at all fall back to the first video controller; - title, seconds, exit code, frames, presents and peak commit; - a device removal and an unhandled exception in the log are counted. **Tested** - NVIDIA GeForce RTX 5090 (driver 621.35) plus AMD Radeon integrated graphics (the one Windows lists first), Ryzen 7 9800X3D, Windows 11 Pro 26300, Windows PowerShell 5.1. - `powershell -File scripts\smoke.tests.ps1` on main `a6f5f7a`: passes. With `smoke.ps1` as it was before #281 (`9ab7d76`) it fails on the `gpu:` line (`AMD Radeon(TM) Graphics` where the report names another adapter). - `cargo test --workspace -- --test-threads=4` was run for this PR's first version on `9ab7d76` (651 passed, 0 failed, 40 ignored; SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, no wave64). It was not run again on this head: the PR adds one PowerShell file and no Rust. **Regression run** Not needed: scripts only, nothing under `crates/xcl/src` changes. **Not tested** - PowerShell 7 (`pwsh`): not installed here. - The Rust suite on this head (see above). **AI use** - Claude Code with Claude Fable 5.2 wrote the test and this description. The commands above were run on my machine, and I have read the diff.
Nothing ran scripts/smoke.ps1, whose block is the evidence every runtime PR
pastes. scripts/smoke.tests.ps1 runs it against a stand-in xcl and a written
log and report, as test-native-stderr.tests.ps1 does for test.ps1:

- gpu: is the adapter of the run's report.json with its VRAM suffix dropped;
  a report without an adapter (the null backend) and no report at all fall
  back to the first video controller;
- title, seconds, exit code, frames, presents and peak commit come from the
  run and its log;
- a device removal and an unhandled exception in the log are counted.

Against smoke.ps1 as it was before its gpu: line came from the report, the
test fails on that line.

AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:18:35 +00:00
Author
Owner

@⁠wileyGray on GitHub · 2026-11-24 01:03 UTC · original

PowerShell 7.6.9 passes the smoke fixture at 791fbe135db894cfcea8f1699a91f46dc5ac82a3. I also confirmed the same result on Windows PowerShell 5.1.26100.9818.

Tested

On Windows 11 build 26300 (Core i9-14900K, RTX 4080 SUPER driver 32.0.16.2114 and Intel UHD 770), both commands exited 0. All 13 assertions across four fixture runs passed in each shell.

pwsh.exe -NoProfile -NonInteractive -File .\scripts\smoke.tests.ps1
powershell.exe -NoProfile -NonInteractive -File .\scripts\smoke.tests.ps1

Not tested

This run exercised the PowerShell script with its stand-in executable and synthetic logs. I did not run a retail title or the Rust suite.

AI use

Codex (GPT-6.2 Astra) inspected the fixture, ran both commands and wrote this report.

**@⁠wileyGray** on GitHub · 2026-11-24 01:03 UTC · [original](https://github.com/xcl-dev/xcl/pull/282#issuecomment-7118708969) PowerShell 7.6.9 passes the smoke fixture at `791fbe135db894cfcea8f1699a91f46dc5ac82a3`. I also confirmed the same result on Windows PowerShell 5.1.26100.9818. **Tested** On Windows 11 build 26300 (Core i9-14900K, RTX 4080 SUPER driver 32.0.16.2114 and Intel UHD 770), both commands exited 0. All 13 assertions across four fixture runs passed in each shell. ```powershell pwsh.exe -NoProfile -NonInteractive -File .\scripts\smoke.tests.ps1 powershell.exe -NoProfile -NonInteractive -File .\scripts\smoke.tests.ps1 ``` **Not tested** This run exercised the PowerShell script with its stand-in executable and synthetic logs. I did not run a retail title or the Rust suite. **AI use** Codex (GPT-6.2 Astra) inspected the fixture, ran both commands and wrote this report.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 15:03 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 15:03 UTC · [original](https://github.com/xcl-dev/xcl/pull/282#issuecomment-7166237922) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
Author
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-25 21:38 UTC · original · edited 2026-11-25 21:45 UTC

The fallback assertion on 791fbe135db894cfcea8f1699a91f46dc5ac82a3 queries the host and calculates its expected GPU with the same filter as the script. I replaced the host query in the test with three fixed controllers in order: Microsoft Basic Display Adapter, an integrated GPU, and the GPU named in the synthetic report. Test-only commit.

-NoProfile -NonInteractive -ExecutionPolicy Bypass -File scripts/smoke.tests.ps1 passed in Windows PowerShell 5.1 and PowerShell 7.6.9. The valid report selected the third listed adapter. A null adapter, malformed JSON and a missing report each selected the integrated GPU.

I then ran the test against three separate local changes to smoke.ps1: allow the Basic adapter, select the last usable controller, and always ignore the report. Each failed the expected GPU assertion in both shells (6/6). Windows 11 26100.9711, i7-13700. The runs used the stand-in executable and synthetic logs, with no host GPU enumeration or game launch. OpenAI Codex (GPT-6) wrote and tested the fixture.

**@⁠RavenCurseBurg** on GitHub · 2026-11-25 21:38 UTC · [original](https://github.com/xcl-dev/xcl/pull/282#issuecomment-7175350955) · edited 2026-11-25 21:45 UTC The fallback assertion on `791fbe135db894cfcea8f1699a91f46dc5ac82a3` queries the host and calculates its expected GPU with the same filter as the script. I replaced the host query in the test with three fixed controllers in order: Microsoft Basic Display Adapter, an integrated GPU, and the GPU named in the synthetic report. [Test-only commit](https://github.com/RavenCurseBurg/xcl/commit/2232c6a1f9eab4b0c104c9e916ea94758c56d55b). `-NoProfile -NonInteractive -ExecutionPolicy Bypass -File scripts/smoke.tests.ps1` passed in Windows PowerShell 5.1 and PowerShell 7.6.9. The valid report selected the third listed adapter. A null adapter, malformed JSON and a missing report each selected the integrated GPU. I then ran the test against three separate local changes to `smoke.ps1`: allow the Basic adapter, select the last usable controller, and always ignore the report. Each failed the expected GPU assertion in both shells (6/6). Windows 11 26100.9711, i7-13700. The runs used the stand-in executable and synthetic logs, with no host GPU enumeration or game launch. OpenAI Codex (GPT-6) wrote and tested the fixture.
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/282/head:github-bot/gh-282'
git switch 'github-bot/gh-282'

Merge

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