Scripts: record driver version and build profile in smoke.ps1 (#2232) #2341
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by spook40 on 2026-11-25T16:19:29Z.
Part 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.Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T16:35:46Z.
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.
The PR head
ae40a0e1b219now conflicts with main8b957bec6f82. Merge candidate2e1d988f8has those two commits as parents, so the current PR branch can fast-forward to it.The resolution keeps
OutDirin position five and main’sStartupTimeoutSecondsin position six, followed byBuild. The artifact test exercised the original five-argument call and a six-positional-argument call with-Build Release: the second manifest recorded the chosen title, timeout7and buildrelease.scripts/test-smoke-artifacts.tests.ps1andscripts/smoke-title.tests.ps1passed in Windows PowerShell 5.1 and PowerShell 7.6.9.python -B -m unittest discover -s scripts -p "test_pr_check*.py"passed all 13 tests.Windows 11 build 26100, Core i7-13700. OpenAI Codex (GPT-6) resolved the conflict and ran the checks. No game files or GPU workloads were used.
Imported from ivall/xcl. Originally posted by spook40 on 2026-11-25T17:05:57Z.
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).Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T18:37:27Z.
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!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:43:26Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:53:40Z.
Triage (#1607) – head
ae40a0e#2235 works on the same issue (#2232) from the other side: it makes
pr_check.pycompare the two smoke blocks'gpu:lines, while this PR makessmoke.ps1recorddriver:andbuild:lines in the block and manifest. The two do not overlap and could go together.In
smoke.ps1, the driver is found by matching the adapter name fromreport.jsonexactly againstWin32_VideoController.Name. With two cards of the same name it takes the first one. If the names differ at all, it printsdriver: unknown.The PR conflicts with main, which has since added
-StartupTimeoutSecondsto the sameparamblock and usage line.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.