Scripts: a test of smoke.ps1's block (adapter from report.json, fallback, counts) #279
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by NiiRoZz on 2026-11-23T22:22:32Z.
scripts/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
Imported from ivall/xcl. Originally posted by wileyGray on 2026-11-24T01:03:29Z.
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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T15:03:34Z.
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 RavenCurseBurg on 2026-11-25T21:38:36Z.
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.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:43:32Z.
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-01T03:04:04Z.
Triage (#1607) – head
791fbe1No open or merged PR adds this test. main's scripts/test-smoke-artifacts.tests.ps1 already covers the adapter taken from report.json and a run without report.json, but not the null-adapter report or the removal/crash/peak-commit counts, which this file does.
Problem: since
9683e7a(#677) smoke.ps1 on main prints the title as the hash of the folder name (title: 27693731forSomeTitle) unless -Title is passed, so thetitle: SomeTitleassertion in scripts/smoke.tests.ps1 throws on current main. Pass-Title SomeTitlein Get-Block, or assert the hash.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.