Skip to content

Scripts: repeat smoke runs with separate artifacts - #2980

Draft
luckyteagirl wants to merge 1 commit into
xcl-dev:mainfrom
luckyteagirl:codex/smoke-repeat-blocks
Draft

luckyteagirl wants to merge 1 commit into
xcl-dev:mainfrom
luckyteagirl:codex/smoke-repeat-blocks

Conversation

@luckyteagirl

@luckyteagirl luckyteagirl commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Launch the same title sequentially N times with the supplied options and print one smoke block per completed run.
  • Preserve each run's normal artifacts under run-001, run-002, and so on when -OutDir is 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 saves error.txt in 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.
  • Clarify that the current PR checker still compares one pair; reviewers should inspect all collected blocks until Scripts: pr_check holds the 125 % peak commit to medians of 3 runs #2268 adds median comparison.

Tested

  • The new synthetic launcher fixture failed on c2ee10e4 because 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.
  • A success/failure/success synthetic sequence failed during development by stopping after two launches. The final head attempts all three, emits both successful blocks, preserves run-002/error.txt, and reports the failed run after the loop.
  • Reusing an output directory could leave an old success manifest beside a new failure note in the initial implementation. The final head rejects a reused -OutDir before any launch, preserves the old manifest hashes, and also preflights a collision at run-002 before starting run-001.
  • scripts/test-smoke-repeat.tests.ps1, scripts/test-smoke-artifacts.tests.ps1, and scripts/smoke-title.tests.ps1 all passed with -NoProfile -File on Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9 after the revision. git diff --check passed.
  • scripts/test.ps1 was attempted on the initial published implementation ebef4178, on the RX 6800M and again with XCL_ADAPTER=AMD Radeon(TM) Graphics on the integrated Radeon. Both runs built the workspace, then the xcl library test process ended with 0xc0000005 (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.log and smoke-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.

@luckyteagirl
luckyteagirl force-pushed the codex/smoke-repeat-blocks branch from 880f91b to a4a9ab8 Compare November 27, 2026 06:54
@luckyteagirl

Copy link
Copy Markdown
Contributor Author

A GPU suite run on exact head a4a9ab8c would help move this script-only PR out of draft. On this laptop, the isolated gpu::dxil::core_tests::raw_loads_in_root_windows_respect_exec_and_bounds test aborts with 0xc0000005 on both the RX 6800M and integrated Radeon. Windows places both faults in amdxc64.dll 30.0.13002.13003 at offset 0x43801. The same test also crashes on clean main on this machine; the clean-main debugger report records the call site. WARP explicitly skips it for lack of a GPU. This PR changes only scripts/smoke.ps1, its fixtures, and CONTRIBUTING.md.

If a contributor with a working physical SM 6.6 GPU can run cargo test --workspace --no-fail-fast -- --test-threads=4 at this exact head and report totals plus explicit SKIPPED cases, 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.

@ettehn

ettehn commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

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, no XCL_SAMPLE_*. Built the workspace first.

  • cargo test --offline --locked --workspace --no-fail-fast -j 2 -- --test-threads=4 completed 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_F16 with VOP3 modifiers, V_CVT_F16_F32), and 1 no-heap-windows.
  • gpu::dxil::core_tests::raw_loads_in_root_windows_respect_exec_and_bounds passed in the full run and alone on head and exact parent c2ee10e4e905eb736e56953c52b749e18bcc7ede. It did not skip.
  • All four failures were 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 at CreateComputePipelineState with 0x8007000E. This matches the existing #1905 report. The parent run was targeted to these five tests.
  • test-smoke-repeat.tests.ps1 passed 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.

@DrDarkDK

Copy link
Copy Markdown

I tested smoke.ps1 from a4a9ab8c with two PowerShell processes, both using -Repeat 2 and 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-001 and run-002 from batch B.

Could the script reserve -OutDir exclusively 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.

@LocranKing

Copy link
Copy Markdown

Tested PR #2980 (a4a9ab8c) on Windows 11.

Verification

Ran powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\test-smoke-repeat.tests.ps1:

  • Output: smoke-repeat: ok (exit code 0) on Windows 11 Build 26300 (Windows PowerShell).
  • Scope note: Mock launcher fixture suite (mock_xcl.cmd with -Repeat 3); did not execute smoke.ps1 -Repeat against a live title binary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants