Scripts: repeat smoke runs with separate artifacts #2980
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2980"
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 luckyteagirl on 2026-11-27T06:36:10Z.
Part of #2225. Collect several smoke blocks from one build with
scripts/smoke.ps1 -Repeat N. This makes repeated measurements easier to collect for the comparison proposed in #2268.What is in it
run-001,run-002, and so on when-OutDiris supplied. Before a batch starts, reject any occupied numbered destination so a retry cannot mix old success artifacts with a new failure. An invocation that errors before producing a block saveserror.txtin its numbered directory; remaining runs are attempted and an aggregate error is returned at the end. A launcher exit with a usable log still produces a normal block with its nonzero exit code. Document the shared title data directory and repeat option in the contribution guide.Tested
c2ee10e4because the script rejected-Repeat. With the patch, it records three child launches, three smoke blocks, and separate logs, reports, and manifests with matching requested settings.run-002/error.txt, and reports the failed run after the loop.-OutDirbefore any launch, preserves the old manifest hashes, and also preflights a collision atrun-002before startingrun-001.scripts/test-smoke-repeat.tests.ps1,scripts/test-smoke-artifacts.tests.ps1, andscripts/smoke-title.tests.ps1all passed with-NoProfile -Fileon Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9 after the revision.git diff --checkpassed.scripts/test.ps1was attempted on the initial published implementationebef4178, on the RX 6800M and again withXCL_ADAPTER=AMD Radeon(TM) Graphicson the integrated Radeon. Both runs built the workspace, then thexcllibrary test process ended with0xc0000005(access violation) during the GPU DXIL tests. The suite did not finish, so there are no whole-suite pass/fail/skip totals. The final head changes only PowerShell and the contribution guide; its focused PowerShell fixture passed after the final cleanup on both shells. Logs:smoke-repeat-full-suite-rx6800m.logandsmoke-repeat-full-suite-igpu.log(local).Not tested
Repeated retail runs, a completed GPU workspace suite, or changes to the PR checker's comparison policy. Repetition reuses the same title data directory.
AI use
OpenAI Codex (GPT-6.2 Sol) reviewed the open issue and related PR, implemented the repeat option and synthetic fixtures, ran the PowerShell checks, reviewed the first and second PR heads, and fixed failed-iteration and reused-output handling. Codex prepared this description.
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-27T07:12:28Z.
A GPU suite run on exact head
a4a9ab8cwould help move this script-only PR out of draft. On this laptop, the isolatedgpu::dxil::core_tests::raw_loads_in_root_windows_respect_exec_and_boundstest aborts with0xc0000005on both the RX 6800M and integrated Radeon. Windows places both faults inamdxc64.dll30.0.13002.13003 at offset0x43801. The same test also crashes on cleanmainon this machine; the clean-main debugger report records the call site. WARP explicitly skips it for lack of a GPU. This PR changes onlyscripts/smoke.ps1, its fixtures, andCONTRIBUTING.md.If a contributor with a working physical SM 6.6 GPU can run
cargo test --workspace --no-fail-fast -- --test-threads=4at this exact head and report totals plus explicitSKIPPEDcases, I can add the result to the PR description. The focused PowerShell fixtures already pass under both Windows PowerShell 5.1 and PowerShell 7.6.9. A retail title smoke pair is not required for this script/documentation diff. AI use: Codex (GPT-6.2 Sol) isolated the machine-specific test failure; Codex checked and wrote this request.Imported from ivall/xcl. Originally posted by ettehn on 2026-11-27T10:09:18Z.
Tested on clean
a4a9ab8c711b041e2dc5b08255aa8b2809da14ed. Windows 11 26200.9974, RTX 5070 Ti Laptop / 621.24, Ryzen 9 8945HX, Rust 1.97.1 MSVC, SDK DXC 1.8.2502.11, debug.XCL_ADAPTER=NVIDIA, noXCL_SAMPLE_*. Built the workspace first.cargo test --offline --locked --workspace --no-fail-fast -j 2 -- --test-threads=4completed all test targets: 1,452 passed, 4 failed, 47 ignored. The 25 explicit GPU skip lines were 21 no-wave64, 3 unsupported per-lane f16 (V_MUL_F16,V_PK_MUL_F16with VOP3 modifiers,V_CVT_F16_F32), and 1 no-heap-windows.gpu::dxil::core_tests::raw_loads_in_root_windows_respect_exec_and_boundspassed in the full run and alone on head and exact parentc2ee10e4e905eb736e56953c52b749e18bcc7ede. It did not skip.fuzz_validate_and_gpu_{0,1,2,3}. Single-thread reruns on both head and exact parent failed on the same seeds (70, 545, 1019, 1507), all atCreateComputePipelineStatewith0x8007000E. This matches the existing #1905 report. The parent run was targeted to these five tests.test-smoke-repeat.tests.ps1passed on both Windows PowerShell 5.1 and PowerShell 7.6.9. No retail run.AI use: OpenAI Codex (GPT-6) ran the checks, compared the baseline, and drafted this report.
Imported from ivall/xcl. Originally posted by DrDarkDK on 2026-11-27T10:58:33Z.
I tested
smoke.ps1froma4a9ab8cwith two PowerShell processes, both using-Repeat 2and the same fresh-OutDir. A synthetic launcher held each process at its first launch until both had passed preflight. Both batches completed and printed two smoke blocks each, but only two manifests remained:run-001andrun-002from batch B.Could the script reserve
-OutDirexclusively before preflight and hold that reservation until the batch finishes? Then the second process can fail before launching, and the first keeps both runs’ artifacts. A two-process fixture can verify this with synthetic logs.AI use Codex (GPT-6) reviewed the script, ran the synthetic test, and drafted this report.
AI-assisted with Codex.
Imported from ivall/xcl. Originally posted by LocranKing on 2026-11-27T12:23:05Z.
Tested PR #2980 (
a4a9ab8c) on Windows 11.Verification
Ran
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\test-smoke-repeat.tests.ps1:smoke-repeat: ok(exit code0) on Windows 11 Build 26300 (Windows PowerShell).mock_xcl.cmdwith-Repeat 3); did not executesmoke.ps1 -Repeatagainst a live title binary.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:16:09Z.
Triage (#1607) – head
a4a9ab8No other open PR adds
-Repeattoscripts/smoke.ps1. #2268 changes onlypr_check.py(medians of 3 runs) and works alongside this PR. #1863 and #2471 change how artifacts from a single run are saved, not repeated runs.One small point in
test-smoke-repeat.tests.ps1: the mixed-failure check uses the regex'(?m)^xcl-smoke v1?$', while the first check usesv1\r?$. The?makes the1optional. It still counts correctly, but it looks like a typo.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.