Scripts: smoke block v2 adds draws, video memory and pipeline counters #2010
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!2010
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@brandostrong on GitHub · 2026-11-25 00:40 UTC · original
brandostrong:smoke-block-v2→main· +38 −10 · 3 files · 1 commits · openThe 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
@futurepro62 on GitHub · 2026-11-25 00:54 UTC · original
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
@raylitebull on GitHub · 2026-11-25 00:56 UTC · original
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).@JJAutoCompare on GitHub · 2026-11-25 01:39 UTC · original
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.@raylitebull on GitHub · 2026-11-25 01:43 UTC · original
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.@DavidM1911 on GitHub · 2026-11-25 03:51 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!
@Oliwettoo on GitHub · 2026-11-25 22:14 UTC · original
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.@RavenCurseBurg on GitHub · 2026-11-25 13:36 UTC · original · edited 2026-11-25 22:44 UTC
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.
@DavidM1911 on GitHub · 2026-11-26 07:05 UTC · original
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
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.