Skip to content

Scripts: smoke block v2 adds draws, video memory and pipeline counters - #2010

Open
brandostrong wants to merge 1 commit into
xcl-dev:mainfrom
brandostrong:smoke-block-v2
Open

brandostrong wants to merge 1 commit into
xcl-dev:mainfrom
brandostrong:smoke-block-v2

Conversation

@brandostrong

Copy link
Copy Markdown
Contributor

The v1 block compares frames and peak commit only: a run that refused 40 pipelines or stalled its draws looked like a clean one. v2 adds the last-3 draws samples, peak video memory (local / non-local) and the report.json pipeline counts (translated, refused, fallback, failed) — counts, not speed; frames still compare screens, not pacing. pr_check.py accepts v1 and v2 so pasted v1 blocks keep working. Part of the validation line claimed on #1269.

What is in it

  • scripts/smoke.ps1: block header xcl-smoke v2; new lines draws per 2 s (last 3), video memory peak, translated / refused / fallback / failed pipelines (from the log and report.json; n/a when absent)
  • scripts/pr_check.py: smoke_blocks matches xcl-smoke v[12]
  • scripts/test_pr_check.py: a v2 pair with the new lines parses and passes

Tested

  • Windows 11 26200, pwsh 7, Python 3.12
  • python scripts/test_pr_check.py: OK (all tests, incl. the new v2 test); pwsh scripts/smoke-title.tests.ps1: smoke-title: ok
  • block rendered from a real 150 s run log via a fixture xcl (no game launch): draws per 2 s (last 3): 0 0 0, video memory peak: 14090 MB local, 4903 MB non-local, translated pipelines: 1786, refused pipelines: 40, fallback pipelines: 0, failed pipelines: 0 — matches the run's report.json

Not tested

  • a live game run through the new smoke.ps1 (the fixture covers parsing and rendering; the counters come from log/report lines unchanged)

AI use

  • Claude Code, Claude Opus 5.5: wrote the script changes, the test and this description, and ran both test suites; the user reviewed the diff.

🤖 Generated with Claude Code

@futurepro62

Copy link
Copy Markdown

Tested exact head 59a78c8, script tests only, since this PR has no test report yet.

Tested

Not tested

  • The smoke.ps1 half (it needs a game to run), PowerShell 7, the CI workflow itself.

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.

@raylitebull

Copy link
Copy Markdown
Member

Code review on 59a78c8:

  • scripts/smoke.ps1 cleanly adds draws per 2 s, video memory peak, and report.json pipeline counters under xcl-smoke v2, while scripts/pr_check.py (xcl-smoke v[12]) preserves full backwards compatibility with existing v1 blocks and test_pr_check.py covers v2 parsing.
  • Both CI checks are green.

What is still needed before merge: Independent verification (e.g., running smoke-title.tests.ps1 + test_pr_check.py and a live smoke.ps1 run on a second machine).

@JJAutoCompare

Copy link
Copy Markdown

XCL PR #2010 adds draw, video-memory and pipeline counters to the v2 smoke block. The PR checker accepts both v1 and v2 blocks.

  • PR head tested 59a78c8af7d0417e1e50a8b973b5ce525c425852.
  • Fetched origin/main at 2bdf0477f84377d1b08e29424100c9bace4e530f.
  • git merge-tree --write-tree origin/main HEAD returned exit 0 and tree a78ad9aa1ef3dc940fd1f6cad620dfaeb9dffaa1.

What is in it

  • scripts/smoke.ps1 emits the v2 block with the last three draw samples, separate local and non-local video-memory peaks, and four pipeline counters.
  • scripts/pr_check.py accepts both versions. scripts/test_pr_check.py adds a two-block v2 regression test.

Tested

  • STOR-WINLAB, Windows 11 Enterprise Evaluation build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 16 GiB, driver 32.0.101.9175, wave range 8–32, DoublePrecisionFloatShaderOps=0.
  • DXC/DXIL 1.9.2609.5; rustc -V returned rustc 1.100.0 (0ef1bc386 2026-11-09). Windows PowerShell 5.1.26100.9818. Cargo used debug profiles with CARGO_INCREMENTAL=0, CARGO_PROFILE_DEV_DEBUG=0, and CARGO_PROFILE_TEST_DEBUG=0. XCL_ADAPTER=A770.
  • cargo test --workspace --no-run and cargo build --workspace exited 0. The latter built the test title and middleware DLL needed by the end-to-end tests. An ignored worktree target junction directed hard-coded test paths to the assigned L: slot.
  • & 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output } completed one workspace pass on the Arc A770 and exited 101. Across 20 result groups, libtest reported 961 passed, 25 failed, 45 ignored. The passed total includes 15 tests that emitted skip markers. 946 passed without a skip marker.
  • The first launch terminated before libtest started because PowerShell 5.1 treated a Cargo deprecation warning as NativeCommandError. The completed run used $ErrorActionPreference = 'Continue' inside the lock and normalized redirected stderr with 2>&1 | ForEach-Object { "$_" }.
  • -p xcl --lib had 24 failures, with 20 pipeline-creation errors and four GPU output mismatches. -p xcl --test e2e had one failure in the bundled title's dynamic depth bias check.
All 25 SKIPPED lines across 15 tests
SKIPPED gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 compares, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer carries, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 rounding, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 transcendentals, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 three-source, wave64: no wave64
SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64
SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64
SKIPPED shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)
SKIPPED placed_title_textures_share_vram_and_preserve_pixels: tiled tier < 2
SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll
SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows
SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D))
Verbatim failure diagnostics from the suite
thread 'gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0' (9424) panicked at crates\xcl\src\gpu\dxil\fuzz_tests.rs:1167:110:
seed 2: GPU run (3284 bytes, 147 instructions): CreateComputePipelineState: The parameter is incorrect. (0x80070057)

thread 'gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1' (11476) panicked at crates\xcl\src\gpu\dxil\fuzz_tests.rs:1167:110:
seed 506: GPU run (3252 bytes, 139 instructions): CreateComputePipelineState: The parameter is incorrect. (0x80070057)

thread 'gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3' (5124) panicked at crates\xcl\src\gpu\dxil\fuzz_tests.rs:1167:110:
seed 1501: GPU run (2420 bytes, 80 instructions): CreateComputePipelineState: The parameter is incorrect. (0x80070057)

thread 'gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_2' (7208) panicked at crates\xcl\src\gpu\dxil\fuzz_tests.rs:1167:110:
seed 1003: GPU run (3132 bytes, 138 instructions): CreateComputePipelineState: The parameter is incorrect. (0x80070057)

thread 'gpu::dxil::ops_tests::doubles_match_cpu' (11112) panicked at crates\xcl\src\gpu\dxil\ops_tests.rs:87:78:
GPU run: "CreateComputePipelineState: The parameter is incorrect. (0x80070057)"

thread 'gpu::dxil::ops_tests::groupshared_barrier_and_atomics_run' (13260) panicked at crates\xcl\src\gpu\dxil\ops_tests.rs:87:78:
GPU run: "CreateComputePipelineState: The parameter is incorrect. (0x80070057)"

thread 'gpu::dxil::round_tests::gpu_direct_f32_round_modes_dynamic_and_denormals' (8388) panicked at crates\xcl\src\gpu\dxil\round_tests.rs:320:78:
GPU run: "CreateComputePipelineState: The parameter is incorrect. (0x80070057)"

thread 'gpu::dxil::round_tests::gpu_direct_f32_round_modes_static' (12260) panicked at crates\xcl\src\gpu\dxil\round_tests.rs:387:104:
GPU run: "CreateComputePipelineState: The parameter is incorrect. (0x80070057)"

thread 'gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu' (3852) panicked at crates\xcl\src\gpu\recomp\lower_dxil.rs:665:112:
called `Result::unwrap()` on an `Err` value: "CreateComputePipelineState: The parameter is incorrect. (0x80070057)"

thread 'gpu::recomp::tests::gpu_clamp_and_omod_per_instruction' (3028) panicked at crates\xcl\src\gpu\recomp\tests.rs:1113:47:
called `Result::unwrap()` on an `Err` value: "CreateComputePipelineState: The parameter is incorrect. (0x80070057)"

thread 'gpu::recomp::tests::gpu_f64_literal_high_word' (5944) panicked at crates\xcl\src\gpu\recomp\tests.rs:104:35:
called `Result::unwrap()` on an `Err` value: "CreateComputePipelineState: The parameter is incorrect. (0x80070057)"

thread 'gpu::recomp::tests::gpu_f64_compares_with_nan' (6688) panicked at crates\xcl\src\gpu\recomp\tests.rs:104:35:
called `Result::unwrap()` on an `Err` value: "CreateComputePipelineState: The parameter is incorrect. (0x80070057)"

thread 'gpu::recomp::tests::gpu_f64_class_compare' (7732) panicked at crates\xcl\src\gpu\recomp\tests.rs:560:47:
called `Result::unwrap()` on an `Err` value: "CreateComputePipelineState: The parameter is incorrect. (0x80070057)"

thread 'gpu::recomp::tests::gpu_f64_rounding_and_conversions' (3476) panicked at crates\xcl\src\gpu\recomp\tests.rs:104:35:
called `Result::unwrap()` on an `Err` value: "CreateComputePipelineState: The parameter is incorrect. (0x80070057)"

thread 'gpu::recomp::tests::gpu_f64_roots' (9452) panicked at crates\xcl\src\gpu\recomp\tests.rs:104:35:
called `Result::unwrap()` on an `Err` value: "CreateComputePipelineState: The parameter is incorrect. (0x80070057)"

thread 'gpu::recomp::tests::gpu_f64_math_random' (8252) panicked at crates\xcl\src\gpu\recomp\tests.rs:6540:47:
called `Result::unwrap()` on an `Err` value: "CreateComputePipelineState: The parameter is incorrect. (0x80070057)"

thread 'gpu::recomp::tests::gpu_frexp_f64_exp_and_mant' (6704) panicked at crates\xcl\src\gpu\recomp\tests.rs:795:47:
called `Result::unwrap()` on an `Err` value: "CreateComputePipelineState: The parameter is incorrect. (0x80070057)"

thread 'gpu::recomp::tests::gpu_ldexp_f64' (4040) panicked at crates\xcl\src\gpu\recomp\tests.rs:104:35:
called `Result::unwrap()` on an `Err` value: "CreateComputePipelineState: The parameter is incorrect. (0x80070057)"

thread 'gpu::recomp::tests::gpu_float_compares_random' (12284) panicked at crates\xcl\src\gpu\recomp\tests.rs:6652:51:
called `Result::unwrap()` on an `Err` value: "CreateComputePipelineState: The parameter is incorrect. (0x80070057)"

thread 'gpu::recomp::tests::gpu_nonfused_mad_and_mac_prevent_fma_contraction' (1880) panicked at crates\xcl\src\gpu\recomp\tests.rs:6857:5:
assertion `left == right` failed: v_fma_f32 overflow control should stay fused
  left: 2139095040
 right: 1946157055

thread 'gpu::recomp::tests::gpu_ps_image_sample_offset_implicit_lod_between_mips' (11172) panicked at crates\xcl\src\gpu\recomp\tests.rs:2112:13:
pixel (0,0) = 25.609375, expected 26

thread 'gpu::recomp::tests::gpu_rndne_f64' (12280) panicked at crates\xcl\src\gpu\recomp\tests.rs:735:47:
called `Result::unwrap()` on an `Err` value: "CreateComputePipelineState: The parameter is incorrect. (0x80070057)"

thread 'gpu::recomp::tests::gpu_valu_16_and_64_bit' (11988) panicked at crates\xcl\src\gpu\recomp\tests.rs:2760:9:
assertion `left == right` failed: lane 0 v_add_f16 keeps the high half
  left: 0
 right: 3203351424

thread 'gpu::recomp::tests::gpu_wave64_ps_whole_wave_reductions' (12856) panicked at crates\xcl\src\gpu\recomp\tests.rs:2217:13:
assertion `left == right` failed: pixel 0 (lane 0, wave of pixel 0): min / sum over the odd pixels, waterfall read
  left: [2, 217, 2]
 right: [2, 216, 2]

thread 'test_title_runs_and_game_folder_is_untouched' (10892) panicked at crates\xcl\tests\e2e.rs:132:5:
failed checks in the test title:
[FAIL] D3D12.X: dynamic depth bias via RSSetDepthBiasX (#94): top-right [0, 0, 255, 255] (expected green: RSSetDepthBiasX(-1000.5) passes depth test)
  • cargo run -p xcl -- --help exited 0 and printed the CLI usage.
  • .\scripts\test-native-stderr.tests.ps1 exited 0. The scripts/smoke-title.tests.ps1 checks passed using a temporary copy that pointed to the PR's smoke.ps1 and retained its fixture directory.
  • & 'L:\XclTooling\neon-slot-5\tmp\pr2010-smoke-fixture.ps1' verified the v2 header, adapter label, existing fields, last three draw samples (0 13 17), independent VRAM peaks (100 MB local, 54 MB non-local), and pipeline counts (11 translated, 2 refused, 3 fallback, 0 failed). Its edge case exited 1. Given one zero-draw sample and no VRAM samples, the script printed the following:
draws per 2 s (last 3): n/a
video memory peak:  MB local,  MB non-local
FAIL: expected draws per 2 s (last 3): 0
FAIL: expected video memory peak: n/a MB local, n/a MB non-local
  • python --version and python -B -m unittest discover -s scripts -p 'test_*.py' -v reached the Windows Store alias. The unittest command exited 9009 with:
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

Not tested

  • Python unittests, including the v2 parser regression, require a Python interpreter.
  • A live retail-title smoke run and behavior with retail sample data (XCL_SAMPLE_* was unset). AMD/NVIDIA GPUs, wave64, and hardware FP64 shader coverage. A workspace baseline on origin/main was outside this run.

AI use

  • T3 Code / Codex (gpt-6.2-sol) ran the build and tests and drafted this report. Coordinator #2, T3 Code / Antigravity (gemini-4-neon), verified the counts against pr2010-suite.log and published this report.

@raylitebull

Copy link
Copy Markdown
Member

Hold note on 59a78c8:

  • @JJAutoCompare's fixture check caught a PowerShell edge-case formatting bug in scripts/smoke.ps1: when given a single 0 draw sample and no VRAM samples, smoke.ps1 emits draws per 2 s (last 3): n/a (expected 0) and video memory peak: MB local, MB non-local (missing n/a before MB, likely from truthy -if ($var) / empty-string interpolation instead of $null -ne).
  • Fixing that edge case (and covering it in scripts/smoke-title.tests.ps1), plus getting a Python test_pr_check.py check and an AMD/NVIDIA verification pass on the updated commit, will make this ready to land.

@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

The v1 block compares frames and commit only: a run that refused 40 pipelines
or stalled its draws looked like a clean one. v2 adds the last-3 draws
samples, peak video memory (local / non-local) and the report.json pipeline
counts (translated, refused, fallback, failed) - counts, not speed; frames
still compare screens, not pacing. pr_check.py accepts v1 and v2 so pasted v1
blocks keep working. Verified by rendering the block from a real 150 s run log
(40 refused pipelines, 1786 translated, 14090/4903 MB video) and by the
fixture tests.

Co-Authored-By: Claude Code <noreply@anthropic.com>
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.

5 participants