Scripts: add -OutDir artifact capture to smoke.ps1 (#1855) #2023
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!2023
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2023/head"
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?
@heditrigui on GitHub · 2026-11-25 01:01 UTC · original
heditrigui:scripts/smoke-artifacts→main· +112 −4 · 2 files · 2 commits · merged 2026-11-25 10:51 UTCSummary
Adds
-OutDirartifact capture toscripts/smoke.ps1to keep artifacts for reproducible world-entry smoke runs (resolving #1855):-OutDir <path>parameter toscripts/smoke.ps1.-OutDiris provided, ensures the destination directory exists and copiesxcl.logas well asreport.json(if present) to the output directory.manifest.jsonrecording smoke run metadata: commit hash, dirty flag, GPU name, title label, duration seconds, exit code, frame stats, presents count, peak commit memory (MB), device removals count, crashes count, input schedule ($env:XCL_PRESS_AT), and data root ($env:XCL_DATA_ROOT)..cmdor.batviacmd.exe /cunderSystem.Diagnostics.ProcessStartInfo.scripts/test-smoke-artifacts.tests.ps1verifying artifact directory creation, log preservation, optional report preservation, and manifest field consistency across consecutive smoke runs.Tested
powershell -ExecutionPolicy Bypass -File scripts/test-smoke-artifacts.tests.ps1(all assertions passed).python -m pytest scripts/(16 passed in 0.48s).scripts/pr_check.py --local.Not tested
scripts/tools are non-runtime code).AI use
@raylitebull on GitHub · 2026-11-25 01:13 UTC · original
Code review on
6eb0e95:-OutDirartifact capture (xcl.log,report.json,manifest.json) and.cmd/.batstand-in quoting inscripts/smoke.ps1+scripts/test-smoke-artifacts.tests.ps1are clean and focused.CIworkflow approved (currently running). Note that#589,#521,#588, and#2010also modifyscripts/smoke.ps1, so landing order may require a quick rebase depending on which merges first.Remaining before merge:
Build and test (Windows, no GPU)finishing green plus an independent verification pass on6eb0e95.@heditrigui on GitHub · 2026-11-25 02:58 UTC · original
Thanks for the thorough empirical verification and great catch @JJAutoCompare!
Addressed in \
2cc20ac: when reusing an -OutDir\ for a subsequent run where no sourceeport.json\ is produced, \smoke.ps1\ now explicitly cleans up any stale
eport.json\ in the destination directory (\Remove-Item -LiteralPath \ -Force). Also updated \scripts/test-smoke-artifacts.tests.ps1\ to reuse the same output directory on run 2 and assert that the prior
eport.json\ is cleaned up cleanly.
@JJAutoCompare on GitHub · 2026-11-25 02:48 UTC · original · edited 2026-11-25 03:20 UTC
PR #2023 re-test
The stale
report.jsonfix passed at2cc20ac. Tested clean head2cc20ac58b8c6abef3df8ca1bc1e69f2061e1f8f. The diff fromorigin/mainis limited toscripts/smoke.ps1and its PowerShell fixture.Tested
DoublePrecisionFloatShaderOps=0). Rust 1.100.0 (0ef1bc386), DXC/DXIL 1.9.2609.5, Windows PowerShell 5.1.report.jsonon the first run, then removed the stale destination report on the second run into the same-OutDirwith no source report. The second run refreshedxcl.logandmanifest.json. Fresh captures with and without a report passed. Omitting-OutDiremitted the smoke block and created no capture artifacts.cargo build --workspaceandcargo test --workspace --no-runpassed with debug info disabled and outside the GPU lock.cargo test --workspace --no-fail-fast -- --test-threads=4ran once under the shared Arc lock and exited 1. Across 21 result summaries, libtest reported 1,126 passed, 28 failed, 46 ignored, with 24SKIPPEDlines excluded from coverage.0x80070057), four GPU result mismatches (FMA, mip sampling, f16 lane preservation and wave reduction), and one test-title assertion for dynamic depth bias (RSSetDepthBiasX). Skip markers covered 19 wave64 cases, three wave32 lowering refusals, one driver-cache control case and one heap-window case.Not tested
Retail titles, optional
XCL_SAMPLE_*inputs, other adapters, live adapter discovery in the smoke fallback, and test-title audio voice checks (no audio endpoint,0x80070490).AI use
T3 Code / Codex (
gpt-6.2-sol,reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity,gemini-4-neon) verified counts againstpr2023-rerun-suite.logand published this report.@luckyteagirl on GitHub · 2026-11-25 03:21 UTC · original
Tested
2cc20ac58b8c6abef3df8ca1bc1e69f2061e1f8fon Windows 11 build 26200 with Windows PowerShell 5.1 and Python 3.11.9. This is a script-only change; the RX 6800M GPU was not exercised.powershell -NoProfile -ExecutionPolicy Bypass -File scripts\test-smoke-artifacts.tests.ps1: 1 script test passed, 0 failed. Its mock XCL run verified the saved log, optionalreport.json, manifest fields, emitted smoke block, and removal of a stalereport.jsonwhen the output directory is reused.python -m pytest scripts: 25 passed, 0 failed.Not tested
AI use
OpenAI Codex (GPT-6, exact variant not exposed in this session) reviewed the exact diff, ran the script tests, checked their outputs, and drafted this report.
@DavidM1911 on GitHub · 2026-11-25 04:12 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!