Scripts: a test of smoke.ps1's block (adapter from report.json, fallback, counts) #282
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!282
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-282"
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?
@NiiRoZz on GitHub · 2026-11-23 22:22 UTC · original
NiiRoZz:nii/smoke-gpu→main· +46 −0 · 1 files · 1 commits · openscripts/smoke.ps1now takes itsgpu:line from the run'sreport.json(#281, on main as97dc49c), 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 runssmoke.ps1, whose block every runtime PR pastes as its evidence.No open PR tests
smoke.ps1that I found: #285 changes the samegpu:line (from the log), #296 teststest.ps1.What is in it
scripts/smoke.tests.ps1: runs the script against a stand-inxcland a written log and report, the waytest-native-stderr.tests.ps1does fortest.ps1:gpu:is the adapter ofreport.jsonwith its VRAM suffix dropped; a report without an adapter (the null backend) and no report at all fall back to the first video controller;Tested
powershell -File scripts\smoke.tests.ps1on maina6f5f7a: passes. Withsmoke.ps1as it was before #281 (9ab7d76) it fails on thegpu:line (AMD Radeon(TM) Graphicswhere the report names another adapter).cargo test --workspace -- --test-threads=4was run for this PR's first version on9ab7d76(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/srcchanges.Not tested
pwsh): not installed here.AI use
@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.
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.
@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!
@RavenCurseBurg on GitHub · 2026-11-25 21:38 UTC · original · edited 2026-11-25 21:45 UTC
The fallback assertion on
791fbe135db894cfcea8f1699a91f46dc5ac82a3queries 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.ps1passed 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.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.