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>
@RavenCurseBurg

RavenCurseBurg commented Nov 25, 2026 •

Copy link
Copy Markdown

I reproduced the refusal-counter observation on d30e9a969c20e39a57ba03dbeab176a3ad5718c4. A missing report printed refused pipelines: 0 on both Windows shells. The producer stores up to 40 distinct error strings. Two pipelines that produce the same reason add one entry to that list.

Script fix and regression. The new line is refusal reasons (max 40). I ran scripts/smoke-refusal-reasons.tests.ps1 through the smoke script with a stand-in executable. No report, malformed JSON, no D3D12 object, a missing field and a null list each produced n/a. Lists with 0, 1, 2 and 40 elements produced the exact counts. All nine cases passed in Windows PowerShell 5.1 and PowerShell 7.6.9. The fixture restored the caller’s environment. All 26 Python tests passed.

I combined it with the earlier zero-draw/VRAM patch (44c53d7); both smoke fixtures passed in both shells on that combination. Windows 11 26100.9711, i7-13700, Python 3.14.3. Synthetic logs and reports only. OpenAI Codex (GPT-6) prepared the candidate and ran the tests.

Earlier draw and VRAM checks

Retested the earlier zero-draw and missing-VRAM report on d30e9a969c20e39a57ba03dbeab176a3ad5718c4. Both shells printed n/a for one logged 0 draws sample. With no VRAM lines, Windows PowerShell 5.1 printed MB local, MB non-local; PowerShell 7 printed both n/a values. A real zero VRAM sample printed 0 MB local, 0 MB non-local in both.

I ran scripts\smoke.ps1 -Seconds 1 -Game Fixture -Xcl <stub.exe>. The stub printed the path to a synthetic log; a fixture report.json supplied counters. For draw samples 12, 0, 7, 0, both shells kept 0 7 0. Two VRAM samples with their highest local and non-local values in different rows returned the separate maxima. All four fixtures preserved pipeline counts 3 / 0 / 0 / 1.

Cherry-pickable fix and regression test. The added assertion failed on the PR head in both shells. With the fix, scripts\smoke-title.tests.ps1 passed in both, all four fixtures per shell matched, and python -B scripts/test_pr_check.py passed all 14 tests.

Windows 11 build 26100.9711, i7-13700, RTX 4060, Windows PowerShell 5.1.26100.9711, PowerShell 7.6.9, Python 3.14.3. Script coverage only; no retail run or Rust build. OpenAI Codex (GPT-6) ran the fixtures, prepared the fix and wrote this report.

@throny throny added the goal:world-load Bears on the retail title getting past world loading label Nov 25, 2026
@Oliwettoo

Copy link
Copy Markdown

Review (read from the diff at d30e9a9, not built or run):

  1. refused pipelines is not a pipeline count. It is @($d.translation_errors).Count, but TRANSLATE_ERRORS keeps each distinct reason once and stops at 40 (real.rs: if g.len() < 40 && !g.contains(&e)). So the line counts reasons, capped at 40 – the test's refused pipelines: 40 is exactly the cap, and a run refusing 41 pipelines prints the same as one refusing 4000. Either add a real refused-pipeline counter to D3d12Stats, or label the line refusal reasons (max 40).
  2. Without report.json this line prints 0 while the other counters print n/a; n/a there too keeps a missing report from reading as "nothing refused".

The other fields (translated_pipelines, fallback_pipelines, failed_pipelines) and both log regexes match real.rs / host.rs.

@DavidM1911

Copy link
Copy Markdown
Contributor

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Triage (#1607) – head d30e9a9

No open or merged PR adds these smoke counters; #2039 edits the same report.json block in scripts/smoke.ps1 (debug layer ids), so the two will conflict textually.
scripts/smoke.ps1: refused pipelines counts d3d12.translation_errors, which note_translation_error (real.rs) fills with distinct reasons and caps at 40, so it is the number of different refusal reasons (at most 40), not of refused pipelines.
scripts/test-smoke-artifacts.tests.ps1 on main (added after this branch's base) throws when the block does not match xcl-smoke v1; with the v2 header it fails after a merge unless updated here.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

@fromthemoonx

fromthemoonx commented Dec 1, 2026 •

Copy link
Copy Markdown

merge-check
base: 6bfb5c5
head: d30e9a9
merge: clean (scripts/smoke.ps1 auto-merged)
build: not needed (scripts only, Tier 0); the cargo suite was not run
tests: script tests on the merge, Windows PowerShell 5.1 (no pwsh 7 here):

  • python scripts/test_pr_check.py: 14 tests OK.
  • scripts/smoke-title.tests.ps1: smoke-title: ok.
  • scripts/test-smoke-artifacts.tests.ps1: FAILED (exit 1) with smoke block missing header: ... xcl-smoke v2 (line 73). On main 6bfb5c5 it passes: "all assertions passed successfully".
    review: read the whole diff (3 files, +38 -10). Most serious first:
  • Blocker: test-smoke-artifacts.tests.ps1, which came to main after this branch's base cbc296a, checks $smokeBlock -notmatch 'xcl-smoke v1'. The v2 header makes it throw, as Foniass's triage expected; this run confirms it. The test needs v[12] or v2 in this PR.
  • In Windows PowerShell 5.1 an empty [regex]::Matches(...) result is truthy (if ($x) with $x.Count = 0 printed truthy here). So $vm takes the found branch and a log without the line gives video memory peak: MB local, MB non-local instead of n/a; the mock run above printed exactly that. $draws and $commits go through ForEach-Object and are fine. if ($vm.Count) would fix it.
  • refused pipelines is @($d.translation_errors).Count. note_translation_error (real.rs:5220) stores each different reason once and at most 40, so it counts refusal reasons, capped at 40, not refused pipelines. The label reads as a pipeline count.
  • When report.json exists but has no counters (the mock's case), translated, fallback and failed print empty, not the n/a the description says. A real report.json has all three fields (real.rs:150-172).
  • The new regex for the draws line matches the runtime's line (host.rs:141: activity (2 s): {} presents, {} submits, {} draws, ...). pr_check.py takes v1 and v2 blocks.
  • No retail title run through the new smoke.ps1 here.
    performance: none: scripts only.
    verdict: not yet: the merge fails main's scripts/test-smoke-artifacts.tests.ps1 (it expects the xcl-smoke v1 header). The empty video memory peak values in PowerShell 5.1 should be fixed too.
    hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300, Windows PowerShell 5.1.26100, Python 3.12 / Claude Code (Claude Opus 5.5)

@github-actions github-actions Bot added area:docs-ci Documentation, scripts, workflows, repo governance area:tests Unit, integration, e2e tests, or testtitle needs-1st-check Passes gates; needs first independent merge-check (#3041) labels Dec 1, 2026
@fromthemoonx

Copy link
Copy Markdown

@brandostrong merge-check above: the v2 header fails scripts/test-smoke-artifacts.tests.ps1 on current main (it expects xcl-smoke v1), and in Windows PowerShell 5.1 a log without the video memory line prints empty values instead of n/a: #2010 (comment)

@github-actions github-actions Bot removed the needs-1st-check Passes gates; needs first independent merge-check (#3041) label Dec 1, 2026
@Edgaras0404

Copy link
Copy Markdown

merge-check claim
head: d30e9a9

@Edgaras0404

Copy link
Copy Markdown

merge-check
base: 1c8b551
head: d30e9a9
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> the -p xcl --lib binary aborted (exit 0x80004005 right after "sparse upload preparation still failed after bounded retries – the title is stopped before its GPU submission"; no test result: line) after observing 1382 ok, 4 failed, 26 ignored of 2792 tests, so the lib count is partial; the other 43 result groups: 147 passed, 2 failed, 20 ignored; SKIPPED: 2, both no heap windows (hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap: no heap windows (opt-in: XCL_HEAP_WINDOWS=1) and heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows; the base run prints only the first note, both tests pass in both); failing: gpu::dxil::compact_tests::gpu_compact_form_with_micro_blocks_and_literal_table_runs_as_the_plain_form, gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu, gpu::recomp::tests::gpu_f32_compares_with_nan, gpu::recomp::tests::gpu_float_compares_random, the lib abort, and gpu_two_pass_cache_e2e::two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs (child at gpu_two_pass_cache_e2e.rs:472, parent at :584, releasing the title PSOs releases their two-pass state left 1 / right 0) - all of them reproduce on base 1c8b5514 alone with the same lib counts (1382 ok / 4 failed / 26 ignored) and the same two-pass failure, so none is caused by this PR, which changes only scripts/
review: Blocker: main's scripts/test-smoke-artifacts.tests.ps1:73 asserts the smoke block matches xcl-smoke v1, and the merged scripts/smoke.ps1 emits only xcl-smoke v2 (line 139 is its only header literal), so the merged tree fails a test that passes on base 1c8b5514 (base run: test-smoke-artifacts: all assertions passed successfully, exit 0); that test must be updated here (e.g. xcl-smoke v[12]), and no CI workflow runs the .tests.ps1 files, so CI does not catch it. Windows PowerShell 5.1 bug: an empty [regex]::Matches result is truthy (checked on this machine's 5.1), so if ($vm) takes the found branch and a log without the video-memory line prints video memory peak: MB local, MB non-local instead of n/a (the PR was tested on pwsh 7 only and no test covers the missing-line case; if ($vm.Count) fixes it). refused pipelines is @($d.translation_errors).Count, but note_translation_error (real.rs) keeps each distinct reason once and stops at 40 (#1752 works on that cap), so the line counts refusal reasons, not refused pipelines, and it prints 0 rather than n/a when report.json is absent. When report.json exists without translated_pipelines/fallback_pipelines/failed_pipelines, those three render empty instead of the n/a the description promises. The new regexes do match the real lines (crates/xcl/src/host.rs:141 draws, :195 video memory), pr_check.py still accepts v1 blocks, and the +38/-10 across 3 files is one commit in the Scripts: style. Description lacks whole-suite counts and any Windows PowerShell 5.1 run. Not a duplicate: no open or merged PR adds these counters and #1607 has no group for it; #2039 (same author, open, conflicting) edits the same report.json/smoke block for debug-layer ids, so a textual conflict is expected. I did not execute any script from the PR (repository rule), so its .tests.ps1 and python scripts/test_pr_check.py halves are review-only from me; scripts/test-smoke-artifacts.tests.ps1 was run on the base tree only.
performance: none on titles: no crates/xcl/src code changes, only scripts/smoke.ps1 and scripts/pr_check.py, run by hand after the title exits. It adds two regex scans of the log text the script already holds, so no frame-time or peak-commit effect, and the default xcl run path is untouched. Not measured: a live title run through the new block (I did not run the PR's script).
verdict: not yet: the merged tree fails main's scripts/test-smoke-artifacts.tests.ps1 (it still expects xcl-smoke v1), and on Windows PowerShell 5.1 a log without the video-memory line prints empty video memory peak values instead of n/a; refused pipelines also counts distinct refusal reasons capped at 40, not refused pipelines.
hardware / tool and model: AMD Radeon RX 6700 XT 12 GB (RDNA2), driver 32.0.21045.29003; AMD Ryzen 5 5600X; Windows 10 build 19045 / OpenCode, DeepSeek V4.1 Flash 1017

@throny

throny commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

merge-check claim
head: d30e9a9

@throny

throny commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

merge-check
base: 1c8b551
head: d30e9a9
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2909 passed, 0 failed, 51 ignored; 25 SKIPPED lines (no wave64 / heap windows / driver-cache test on this adapter); scripts/test_pr_check.py on main + this PR -> 14 tests OK (the new v2 block test included)
review: read the whole diff (scripts/smoke.ps1, scripts/pr_check.py, scripts/test_pr_check.py). smoke.ps1 writes xcl-smoke v2 with draws per 2 s, the peak local / non-local video memory from the log and the pipeline counters from report.json, all as counts with 'n/a' when absent; pr_check.py accepts v1 and v2 blocks, so existing v1 blocks keep passing. Nothing here runs other programs or touches the network; the new test parses a v2 pair and checks it passes.
performance: none at run time (script only); the smoke block gets longer.
verdict: not yet: confirmed what fromthemoonx and Edgaras0404 found: main's scripts/test-smoke-artifacts.tests.ps1 (line 73) still requires the xcl-smoke v1 header, which this PR changes to v2; our run covered the cargo suite and test_pr_check.py but not that PowerShell test, so the first version of this check was wrong
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300; Claude Code, Claude Opus 5.5 read the diff and ran the suite

@github-actions github-actions Bot added checks-disagree Merge-checks disagree (safe vs not yet); needs maintainer/3rd look and removed checks-disagree Merge-checks disagree (safe vs not yet); needs maintainer/3rd look labels Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs-ci Documentation, scripts, workflows, repo governance area:tests Unit, integration, e2e tests, or testtitle goal:world-load Bears on the retail title getting past world loading

Projects

None yet

Development

Successfully merging this pull request may close these issues.