Scripts: record driver version and build profile in smoke.ps1 (#2232) #2351

Open
github-bot wants to merge 2 commits from github-bot/gh-2351 into main AGit
Owner

@⁠spook40 on GitHub · 2026-11-25 16:19 UTC · original
spook40:smoke-driver-build → main · +61 −4 · 2 files · 2 commits · open

Part of #2232.

What is in it

  • Add driver: to scripts/smoke.ps1's xcl-smoke v1 block and manifest.json, resolved from Win32_VideoController.DriverVersion for the selected adapter (falling back to unknown when unavailable).
  • Add build: (debug / release) to scripts/smoke.ps1 via an optional -Build parameter or inferred from the -Xcl executable's parent directory (unknown otherwise).
  • Extend scripts/test-smoke-artifacts.tests.ps1 to verify driver: and build: across explicit -Build, debug/release path inference, fallback values, and invalid -Build rejection.

Tested

  • Environment: NVIDIA GeForce RTX 3060 Ti (driver 32.0.16.2140), Windows PowerShell 5.1 / Python 3
  • .\scripts\smoke-title.tests.ps1: smoke-title: ok
  • .\scripts\test-smoke-artifacts.tests.ps1: test-smoke-artifacts: all assertions passed successfully.
  • python scripts\test_pr_check.py: Ran 13 tests in 0.004s — OK

Regression run
Not needed (scripts-only change; no files under crates/xcl/src were modified).

Not tested

  • Full Rust workspace build/tests (cargo test --workspace), as no Rust crates or build files were modified.

AI use

  • Gemini (Gemini 4 Hydrogen): helped draft the scripts/smoke.ps1 metadata additions, PowerShell unit tests in scripts/test-smoke-artifacts.tests.ps1, and PR description. All changes and tests were reviewed and run locally.
**@⁠spook40** on GitHub · 2026-11-25 16:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/2351) `spook40:smoke-driver-build` → `main` · +61 −4 · 2 files · 2 commits · open Part of #2232. **What is in it** - Add `driver:` to `scripts/smoke.ps1`'s `xcl-smoke v1` block and `manifest.json`, resolved from `Win32_VideoController.DriverVersion` for the selected adapter (falling back to `unknown` when unavailable). - Add `build:` (`debug` / `release`) to `scripts/smoke.ps1` via an optional `-Build` parameter or inferred from the `-Xcl` executable's parent directory (`unknown` otherwise). - Extend `scripts/test-smoke-artifacts.tests.ps1` to verify `driver:` and `build:` across explicit `-Build`, `debug`/`release` path inference, fallback values, and invalid `-Build` rejection. **Tested** - Environment: NVIDIA GeForce RTX 3060 Ti (driver `32.0.16.2140`), Windows PowerShell 5.1 / Python 3 - `.\scripts\smoke-title.tests.ps1`: `smoke-title: ok` - `.\scripts\test-smoke-artifacts.tests.ps1`: `test-smoke-artifacts: all assertions passed successfully.` - `python scripts\test_pr_check.py`: Ran 13 tests in 0.004s — OK **Regression run** Not needed (scripts-only change; no files under `crates/xcl/src` were modified). **Not tested** - Full Rust workspace build/tests (`cargo test --workspace`), as no Rust crates or build files were modified. **AI use** - Gemini (Gemini 4 Hydrogen): helped draft the `scripts/smoke.ps1` metadata additions, PowerShell unit tests in `scripts/test-smoke-artifacts.tests.ps1`, and PR description. All changes and tests were reviewed and run locally.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:28:36 +00:00
Author
Owner

@⁠spook40 on GitHub · 2026-11-25 17:05 UTC · original

Good catch; thanks for testing that. Pushed ae40a0e moving $Build after $OutDir in scripts/smoke.ps1 so the 5th positional slot stays $OutDir, and added a 5-argument positional test in scripts/test-smoke-artifacts.tests.ps1. Re-ran test-smoke-artifacts.tests.ps1 and smoke-title.tests.ps1 in both Windows PowerShell 5.1 and PowerShell 7, plus python scripts/test_pr_check.py (all passing).

**@⁠spook40** on GitHub · 2026-11-25 17:05 UTC · [original](https://github.com/xcl-dev/xcl/pull/2351#issuecomment-7169001374) Good catch; thanks for testing that. Pushed `ae40a0e` moving `$Build` after `$OutDir` in `scripts/smoke.ps1` so the 5th positional slot stays `$OutDir`, and added a 5-argument positional test in `scripts/test-smoke-artifacts.tests.ps1`. Re-ran `test-smoke-artifacts.tests.ps1` and `smoke-title.tests.ps1` in both Windows PowerShell 5.1 and PowerShell 7, plus `python scripts/test_pr_check.py` (all passing).
Author
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-25 16:35 UTC · original · edited 2026-11-25 17:42 UTC

Confirmed on the updated PR head ae40a0e1b219c5d9cd0bdae82a3632a36087495b. The fifth positional argument again names the output directory. The new five-argument test found the manifest there with the supplied title. scripts/test-smoke-artifacts.tests.ps1 and scripts/smoke-title.tests.ps1 passed in Windows PowerShell 5.1 and PowerShell 7.6.9; all 13 test_pr_check.py tests passed. Windows 11 26100.9711, synthetic launcher only. OpenAI Codex (GPT-6) ran this retest. Thanks for the fix.

On 618791f8c90cc0703d9ba7c09aae22b71913dc7d, the original five-position call & $runner $game 1 $xcl 'Fixture' $outDir stopped with -Build must be 'debug' or 'release' in Windows PowerShell 5.1 and PowerShell 7.6.9. The same call saved its manifest on the parent 0829441 in both shells. Adding Build before OutDir changed which parameter received the fifth argument.

Fix and regression test. Build now follows the existing parameters; the first artifact test calls the script positionally and checks the output at the supplied directory. On the patched tree, scripts/test-smoke-artifacts.tests.ps1 and scripts/smoke-title.tests.ps1 passed on both shells. All 13 Python PR-checker unit tests passed.

I also ran the script with a stand-in XCL and simulated controller enumeration. In each shell I checked the manifest and the printed block: a report naming the second adapter selected its driver, explicit Debug overrode a release directory, an unmatched adapter retained its name with driver unknown, no report selected the first non-Basic controller, and a CIM error left the reported adapter intact with driver unknown. All five cases passed per shell.

Windows 11 26100.9711, i7-13700, RTX 4060. No retail title, GPU workload or Rust build. OpenAI Codex (GPT-6) ran the checks and prepared the patch.

**@⁠RavenCurseBurg** on GitHub · 2026-11-25 16:35 UTC · [original](https://github.com/xcl-dev/xcl/pull/2351#issuecomment-7168232040) · edited 2026-11-25 17:42 UTC **Confirmed on the updated PR head `ae40a0e1b219c5d9cd0bdae82a3632a36087495b`.** The fifth positional argument again names the output directory. The new five-argument test found the manifest there with the supplied title. `scripts/test-smoke-artifacts.tests.ps1` and `scripts/smoke-title.tests.ps1` passed in Windows PowerShell 5.1 and PowerShell 7.6.9; all 13 `test_pr_check.py` tests passed. Windows 11 26100.9711, synthetic launcher only. OpenAI Codex (GPT-6) ran this retest. Thanks for the fix. On `618791f8c90cc0703d9ba7c09aae22b71913dc7d`, the original five-position call `& $runner $game 1 $xcl 'Fixture' $outDir` stopped with `-Build must be 'debug' or 'release'` in Windows PowerShell 5.1 and PowerShell 7.6.9. The same call saved its manifest on the parent `0829441` in both shells. Adding Build before OutDir changed which parameter received the fifth argument. [Fix and regression test](https://github.com/RavenCurseBurg/xcl/commit/0f0807fd6a975f24726d794eddbd5ce17ca47e23). Build now follows the existing parameters; the first artifact test calls the script positionally and checks the output at the supplied directory. On the patched tree, `scripts/test-smoke-artifacts.tests.ps1` and `scripts/smoke-title.tests.ps1` passed on both shells. All 13 Python PR-checker unit tests passed. I also ran the script with a stand-in XCL and simulated controller enumeration. In each shell I checked the manifest and the printed block: a report naming the second adapter selected its driver, explicit Debug overrode a release directory, an unmatched adapter retained its name with driver unknown, no report selected the first non-Basic controller, and a CIM error left the reported adapter intact with driver unknown. All five cases passed per shell. Windows 11 26100.9711, i7-13700, RTX 4060. No retail title, GPU workload or Rust build. OpenAI Codex (GPT-6) ran the checks and prepared the patch.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 18:37 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 18:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/2351#issuecomment-7171165616) 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!
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/2351/head:github-bot/gh-2351'
git switch 'github-bot/gh-2351'

Merge

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