Scripts: smoke block v2 adds draws, video memory and pipeline counters #2000
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2010"
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 brandostrong on 2026-11-25T00:40:53Z.
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.jsonpipeline counts (translated, refused, fallback, failed) — counts, not speed; frames still compare screens, not pacing.pr_check.pyaccepts 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 headerxcl-smoke v2; new linesdraws per 2 s (last 3),video memory peak,translated / refused / fallback / failed pipelines(from the log andreport.json;n/awhen absent)scripts/pr_check.py:smoke_blocksmatchesxcl-smoke v[12]scripts/test_pr_check.py: a v2 pair with the new lines parses and passesTested
python scripts/test_pr_check.py: OK (all tests, incl. the new v2 test);pwsh scripts/smoke-title.tests.ps1:smoke-title: okxcl(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'sreport.jsonNot tested
smoke.ps1(the fixture covers parsing and rendering; the counters come from log/report lines unchanged)AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-25T00:54:26Z.
Tested exact head
59a78c8, script tests only, since this PR has no test report yet.Tested
python -m pytest scripts/test_pr_check.pyat the head: 14 passed, 23 subtests passed.7994cd1): 1 failed:SmokeBlockTests::test_v2_blocks_with_counter_lines_parse_and_pass(main'spr_check.pyfinds no smoke block in a v2 block with the new counter lines). So the new test catches the problem the PR fixes.git merge-treeof this head with the other openpr_check.pyPRs #1884 and #1645: both merge cleanly.Not tested
smoke.ps1half (it needs a game to run), PowerShell 7, the CI workflow itself.AI use
Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T00:56:58Z.
Code review on
59a78c8:scripts/smoke.ps1cleanly addsdraws per 2 s,video memory peak, andreport.jsonpipeline counters underxcl-smoke v2, whilescripts/pr_check.py(xcl-smoke v[12]) preserves full backwards compatibility with existingv1blocks andtest_pr_check.pycoversv2parsing.What is still needed before merge: Independent verification (e.g., running
smoke-title.tests.ps1+test_pr_check.pyand a livesmoke.ps1run on a second machine).Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T01:39:28Z.
XCL PR #2010 adds draw, video-memory and pipeline counters to the v2 smoke block. The PR checker accepts both v1 and v2 blocks.
59a78c8af7d0417e1e50a8b973b5ce525c425852.origin/mainat2bdf0477f84377d1b08e29424100c9bace4e530f.git merge-tree --write-tree origin/main HEADreturned exit 0 and treea78ad9aa1ef3dc940fd1f6cad620dfaeb9dffaa1.What is in it
scripts/smoke.ps1emits the v2 block with the last three draw samples, separate local and non-local video-memory peaks, and four pipeline counters.scripts/pr_check.pyaccepts both versions.scripts/test_pr_check.pyadds a two-block v2 regression test.Tested
32.0.101.9175, wave range 8–32,DoublePrecisionFloatShaderOps=0.1.9.2609.5;rustc -Vreturnedrustc 1.100.0 (0ef1bc386 2026-11-09). Windows PowerShell5.1.26100.9818. Cargo used debug profiles withCARGO_INCREMENTAL=0,CARGO_PROFILE_DEV_DEBUG=0, andCARGO_PROFILE_TEST_DEBUG=0.XCL_ADAPTER=A770.cargo test --workspace --no-runandcargo build --workspaceexited 0. The latter built the test title and middleware DLL needed by the end-to-end tests. An ignored worktreetargetjunction directed hard-coded test paths to the assignedL: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.NativeCommandError. The completed run used$ErrorActionPreference = 'Continue'inside the lock and normalized redirected stderr with2>&1 | ForEach-Object { "$_" }.-p xcl --libhad 24 failures, with 20 pipeline-creation errors and four GPU output mismatches.-p xcl --test e2ehad one failure in the bundled title's dynamic depth bias check.All 25 SKIPPED lines across 15 tests
Verbatim failure diagnostics from the suite
cargo run -p xcl -- --helpexited 0 and printed the CLI usage..\scripts\test-native-stderr.tests.ps1exited 0. Thescripts/smoke-title.tests.ps1checks passed using a temporary copy that pointed to the PR'ssmoke.ps1and 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:python --versionandpython -B -m unittest discover -s scripts -p 'test_*.py' -vreached the Windows Store alias. The unittest command exited 9009 with:Not tested
XCL_SAMPLE_*was unset). AMD/NVIDIA GPUs, wave64, and hardware FP64 shader coverage. A workspace baseline onorigin/mainwas outside this run.AI use
gpt-6.2-sol) ran the build and tests and drafted this report. Coordinator #2, T3 Code / Antigravity (gemini-4-neon), verified the counts againstpr2010-suite.logand published this report.Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T01:43:49Z.
Hold note on
59a78c8:@JJAutoCompare's fixture check caught a PowerShell edge-case formatting bug inscripts/smoke.ps1: when given a single0draw sample and no VRAM samples,smoke.ps1emitsdraws per 2 s (last 3): n/a(expected0) andvideo memory peak: MB local, MB non-local(missingn/abeforeMB, likely from truthy-if ($var)/ empty-string interpolation instead of$null -ne).scripts/smoke-title.tests.ps1), plus getting a Pythontest_pr_check.pycheck and an AMD/NVIDIA verification pass on the updated commit, will make this ready to land.upstream-sync referenced this pull request2026-11-25 04:08:41 +00:00
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T03:51:29Z.
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!
upstream-sync referenced this pull request2026-11-25 10:09:30 +00:00
Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T13:36:21Z.
I reproduced the refusal-counter observation on
d30e9a969c20e39a57ba03dbeab176a3ad5718c4. A missing report printedrefused pipelines: 0on 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 ranscripts/smoke-refusal-reasons.tests.ps1through the smoke script with a stand-in executable. No report, malformed JSON, no D3D12 object, a missing field and a null list each producedn/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 printedn/afor one logged0 drawssample. With no VRAM lines, Windows PowerShell 5.1 printedMB local, MB non-local; PowerShell 7 printed bothn/avalues. A real zero VRAM sample printed0 MB local, 0 MB non-localin both.I ran
scripts\smoke.ps1 -Seconds 1 -Game Fixture -Xcl <stub.exe>. The stub printed the path to a synthetic log; a fixturereport.jsonsupplied counters. For draw samples12, 0, 7, 0, both shells kept0 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 counts3 / 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.ps1passed in both, all four fixtures per shell matched, andpython -B scripts/test_pr_check.pypassed 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.
upstream-sync referenced this pull request2026-11-25 18:03:20 +00:00
upstream-sync referenced this pull request2026-11-25 20:07:08 +00:00
Imported from ivall/xcl. Originally posted by Oliwettoo on 2026-11-25T22:14:03Z.
Review (read from the diff at
d30e9a9, not built or run):refused pipelinesis not a pipeline count. It is@($d.translation_errors).Count, butTRANSLATE_ERRORSkeeps 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'srefused pipelines: 40is exactly the cap, and a run refusing 41 pipelines prints the same as one refusing 4000. Either add a real refused-pipeline counter toD3d12Stats, or label the linerefusal reasons (max 40).report.jsonthis line prints0while the other counters printn/a;n/athere too keeps a missing report from reading as "nothing refused".The other fields (
translated_pipelines,fallback_pipelines,failed_pipelines) and both log regexes matchreal.rs/host.rs.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T07:05:05Z.
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
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:11:54Z.
Triage (#1607) – head
d30e9a9No 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 pipelinescountsd3d12.translation_errors, whichnote_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.ps1on main (added after this branch's base) throws when the block does not matchxcl-smoke v1; with thev2header 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.
Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-12-01T17:24:06Z.
merge-check
base:
6bfb5c5153head:
d30e9a969cmerge: clean (
scripts/smoke.ps1auto-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) withsmoke block missing header: ... xcl-smoke v2(line 73). On main6bfb5c5it passes: "all assertions passed successfully".review: read the whole diff (3 files, +38 -10). Most serious first:
test-smoke-artifacts.tests.ps1, which came to main after this branch's basecbc296a, checks$smokeBlock -notmatch 'xcl-smoke v1'. Thev2header makes it throw, as Foniass's triage expected; this run confirms it. The test needsv[12]orv2in this PR.[regex]::Matches(...)result is truthy (if ($x)with$x.Count= 0 printed truthy here). So$vmtakes the found branch and a log without the line givesvideo memory peak: MB local, MB non-localinstead ofn/a; the mock run above printed exactly that.$drawsand$commitsgo throughForEach-Objectand are fine.if ($vm.Count)would fix it.refused pipelinesis@($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.report.jsonexists but has no counters (the mock's case),translated,fallbackandfailedprint empty, not then/athe description says. A realreport.jsonhas all three fields (real.rs:150-172).host.rs:141:activity (2 s): {} presents, {} submits, {} draws, ...).pr_check.pytakes v1 and v2 blocks.smoke.ps1here.performance: none: scripts only.
verdict: not yet: the merge fails main's
scripts/test-smoke-artifacts.tests.ps1(it expects thexcl-smoke v1header). The emptyvideo memory peakvalues 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)
Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-12-01T17:25:16Z.
@brandostrong merge-check above: the
v2header failsscripts/test-smoke-artifacts.tests.ps1on currentmain(it expectsxcl-smoke v1), and in Windows PowerShell 5.1 a log without the video memory line prints empty values instead ofn/a: https://github.com/xcl-dev/xcl/pull/2010#issuecomment-7319239976Imported from ivall/xcl. Originally posted by Edgaras0404 on 2026-12-02T02:21:45Z.
merge-check claim
head:
d30e9a969cImported from ivall/xcl. Originally posted by Edgaras0404 on 2026-12-02T02:43:13Z.
merge-check
base:
1c8b551475head:
d30e9a969cmerge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> the
-p xcl --libbinary aborted (exit 0x80004005 right after "sparse upload preparation still failed after bounded retries – the title is stopped before its GPU submission"; notest 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, bothno heap windows(hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap: no heap windows (opt-in: XCL_HEAP_WINDOWS=1)andheap_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, andgpu_two_pass_cache_e2e::two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs(child atgpu_two_pass_cache_e2e.rs:472, parent at:584,releasing the title PSOs releases their two-pass stateleft 1 / right 0) - all of them reproduce on base1c8b5514alone 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 onlyscripts/review: Blocker: main's
scripts/test-smoke-artifacts.tests.ps1:73asserts the smoke block matchesxcl-smoke v1, and the mergedscripts/smoke.ps1emits onlyxcl-smoke v2(line 139 is its only header literal), so the merged tree fails a test that passes on base1c8b5514(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.ps1files, so CI does not catch it. Windows PowerShell 5.1 bug: an empty[regex]::Matchesresult is truthy (checked on this machine's 5.1), soif ($vm)takes the found branch and a log without the video-memory line printsvideo memory peak: MB local, MB non-localinstead ofn/a(the PR was tested on pwsh 7 only and no test covers the missing-line case;if ($vm.Count)fixes it).refused pipelinesis@($d.translation_errors).Count, butnote_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 prints0rather thann/awhenreport.jsonis absent. Whenreport.jsonexists withouttranslated_pipelines/fallback_pipelines/failed_pipelines, those three render empty instead of then/athe description promises. The new regexes do match the real lines (crates/xcl/src/host.rs:141draws,:195video memory),pr_check.pystill accepts v1 blocks, and the +38/-10 across 3 files is one commit in theScripts: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.ps1andpython scripts/test_pr_check.pyhalves are review-only from me;scripts/test-smoke-artifacts.tests.ps1was run on the base tree only.performance: none on titles: no
crates/xcl/srccode changes, onlyscripts/smoke.ps1andscripts/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 defaultxcl runpath 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 expectsxcl-smoke v1), and on Windows PowerShell 5.1 a log without the video-memory line prints emptyvideo memory peakvalues instead ofn/a;refused pipelinesalso 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
Imported from ivall/xcl. Originally posted by throny on 2026-12-02T04:05:22Z.
merge-check claim
head:
d30e9a969cImported from ivall/xcl. Originally posted by throny on 2026-12-02T04:10:13Z.
merge-check
base:
1c8b551475head:
d30e9a969cmerge: 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 v2with 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 v1header, 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 wronghardware / 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
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.