Scripts: record driver version and build profile in smoke.ps1 (#2232) #2351
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2351
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2351"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@spook40 on GitHub · 2026-11-25 16:19 UTC · original
spook40:smoke-driver-build→main· +61 −4 · 2 files · 2 commits · openPart of #2232.
What is in it
driver:toscripts/smoke.ps1'sxcl-smoke v1block andmanifest.json, resolved fromWin32_VideoController.DriverVersionfor the selected adapter (falling back tounknownwhen unavailable).build:(debug/release) toscripts/smoke.ps1via an optional-Buildparameter or inferred from the-Xclexecutable's parent directory (unknownotherwise).scripts/test-smoke-artifacts.tests.ps1to verifydriver:andbuild:across explicit-Build,debug/releasepath inference, fallback values, and invalid-Buildrejection.Tested
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 — OKRegression run
Not needed (scripts-only change; no files under
crates/xcl/srcwere modified).Not tested
cargo test --workspace), as no Rust crates or build files were modified.AI use
scripts/smoke.ps1metadata additions, PowerShell unit tests inscripts/test-smoke-artifacts.tests.ps1, and PR description. All changes and tests were reviewed and run locally.@spook40 on GitHub · 2026-11-25 17:05 UTC · original
Good catch; thanks for testing that. Pushed
ae40a0emoving$Buildafter$OutDirinscripts/smoke.ps1so the 5th positional slot stays$OutDir, and added a 5-argument positional test inscripts/test-smoke-artifacts.tests.ps1. Re-rantest-smoke-artifacts.tests.ps1andsmoke-title.tests.ps1in both Windows PowerShell 5.1 and PowerShell 7, pluspython scripts/test_pr_check.py(all passing).@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.ps1andscripts/smoke-title.tests.ps1passed in Windows PowerShell 5.1 and PowerShell 7.6.9; all 13test_pr_check.pytests 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' $outDirstopped 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 parent0829441in 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.ps1andscripts/smoke-title.tests.ps1passed 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.
@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!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.