Scripts: print whether the smoke frame is black (#717) #747
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!747
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-747"
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?
@Luxuryig on GitHub · 2026-11-24 04:31 UTC · original
Luxuryig:scripts-smoke-lit-frame→main· +114 −2 · 5 files · 1 commits · openFixes #717.
scripts/smoke.ps1turns on the existing frame sample (XCL_FRAME_DUMP=120) and addslit at endto thexcl-smoke v1block: the last sampled frame's non-black share, orn/awhen nothing was sampled or the format was not decoded.scripts/pr_check.pyrefuses the PR when both blocks have a number, main is over 50 %, and the PR is under 1 %. A missing line orn/ais left alone, so older descriptions and short runs still pass. A main frame at 50 % or under does not fail a dark PR.Scripts only.
.github/workflows/pr-check.ymlrunspr_check.pyfrom main (pull_request_target), so the new refusal starts after this merges. The line is in the block immediately.scripts/smoke.ps1will conflict with #704 and #689. Those change the title line; this adds the lit line and setsXCL_FRAME_DUMP.What is in it
scripts/smoke.ps1: setXCL_FRAME_DUMP=120for the child (the caller's previous value is restored) and printlit at end.scripts/smoke_lit.ps1: readd3d12.last_frame_dumpfromreport.json. The percentage uses a dot, not the locale's decimal mark.scripts/pr_check.py: refuse a dark last frame against a lit main.scripts/test_pr_check.pyandscripts/test-smoke-lit.tests.ps1: the threshold and the percentage line.Tested
C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64..\scripts\test.ps1on63cdc25plus these script files, before the rebase onto64b3f35: exit 0. 692 passed, 0 failed, 41 ignored. GPU tests skipped: 2 (no wave64). Unset, so their tests skipped:XCL_SAMPLE_RPF,XCL_SAMPLE_DLLS,XCL_SAMPLE_TTPF,XCL_SAMPLE_BK2,XCL_SAMPLE_BVH4,XCL_SAMPLE_AWC,XCL_SAMPLE_XG,XCL_SAMPLE_DXC.tests/e2e.rs: 3 passed. Wall time 138.98 s. Not re-run after rebasing onto64b3f35(origin/mainat the time of the push). Anothercargobuild was already using the machine, and this diff does not change Rust.python scripts/test_pr_check.py: Ran 7 tests, OK. The new cases:0 %against main80 %is refused,0.4 %against60 %is refused,90 %against80 %passes, and a missing line,n/a, and main at40 %are left alone.powershell.exe -NoProfile -File scripts/test-smoke-lit.tests.ps1:smoke lit tests passed(100 %,0 %,0.4 %, undecoded, no samples, no dump, missing file).Regression run
crates/xcl/srcis untouched, so there are noxcl-smokeblocks.Not tested
smoke.ps1was not launched. The in-tree test title exits in about 2 seconds after about one present, so a sample every 120 frames (presents % 120 == 20) would not fire andlit at endwould ben/a. The percentage is checked against a writtenreport.json, not a captured frame.pr_check.pyis on main.AI use
@futurepro62 on GitHub · 2026-11-24 04:44 UTC · original
Tested exact head
fd323c0.Tested
powershell -NoProfile -File scripts/test-smoke-lit.tests.ps1:smoke lit tests passed.cd scripts; python -m unittest test_pr_check: Ran 7 tests, OK. The same test file againstmainf4ce27c'spr_check.py:FAILED (failures=2).My Game Folderand a fakexcl.cmdthat prints a log path (the same kind of fixturesmoke-environment.tests.ps1uses),smoke.ps1 -Game <folder> -Seconds 1 -Xcl <fake>and areport.jsonwithd3d12.last_frame_dump={"sampled_pixels": 1000, "non_dark_samples": 375}: the block ends withlit at end: 37.5 %. WithXCL_FRAME_DUMP=7set in the calling shell, it is7again after the run.Not tested
xcl run(no title here), PowerShell 7. Merging this head with #521 (9bb6aa2) gives a conflict inscripts/smoke.ps1: both change how it restores the caller's variables, so whichever lands second needs a rebase.AI use
@136084599 on GitHub · 2026-11-24 05:26 UTC · original · edited 2026-11-24 07:20 UTC
Independent Windows check of
fd323c0(Windows 11 26200, PowerShell 7.6.9, CPython 3.12.10). All 7 checker tests passed. I also fed syntheticreport.jsonfiles throughGet-XclSmokeLitand passed the emitted lines topr_check.check.The one-decimal formatting can round a measurement onto either strict cutoff. With 518,400 samples per report:
lit at end1 %vs80 %0.4 %vs50 %Both would be rejected by the stated
<1%/>50%rule on the original counts. With only the format changed locally from0.#to0.########, both were rejected, the 0.4% / 80% control still rejected, and the exact 1% and 50% boundary controls still passed. Keeping more precision in the report line would let those cases match the rule.AI-assisted. Synthetic reports only, no XCL or retail run.
Follow-up: patch and two boundary tests
The added sub-1% fixture fails on
fd323c0before the formatter change. With the patch below, all nine PowerShell fixtures pass on PowerShell 7.6.9, and all seven Python checker tests still pass. Git also accepts the patch against the pinned files. This only uses synthetic reports.@Chrysana on GitHub · 2026-11-24 13:27 UTC · original
Thanks for picking up #717. This is the retail check I offered there:
fd323c0against a title that really is black, on AMD.Tested
fd323c0merged ontomain47efa2e(local mergedb2d4fc, not pushed). One conflict, inscripts/test_pr_check.py, where both sides add test classes; I kept both.python -m unittest test_pr_check: 7 tests OK onfd323c0, 13 OK on the merge.test-smoke-lit.tests.ps1: passed in both shells, on both trees.scripts/smoke.ps1, 60 s runs of a retail title, with-Xclset to each build:lit at endmain47efa2e(from the merge tree)24635db(black on this card, see #717)The black build shows more frames than
main, the same 60 60 60, and no crashes or device removals. Its block looks healthier than main's on every line except the new one.pr_check.check()on these real blocks, simulating a runtime change and changing only thecommit:values to main/head ones. Main against #541 is refused in both rounds:the PR's last sampled frame is dark (0 %) while main's is lit (99.9 %). Main against main passes both ways. The same blocks throughmain's currentpr_check.pypass, which is the gap this PR closes.lit at endmatchesreport.json'slast_frame_dump(517959 / 518400 and 0 / 518400, frame 1100 / 1580, format 28, 3840×2160). The values are nowhere near 1 % or 50 %, so the rounding point raised above doesn't affect real runs like these.XCL_FRAME_DUMP=120:main's ownsmoke.ps1on the same build gave 1193 frames, against 1152–1190 with sampling. That's within run-to-run spread; an earlier pair on91f9a5egave 1176 without sampling and 1171 with.Worth knowing
-Seconds, or a PR that stalls in loading) would end on a dark sample and be refused against a lit main. That may well be the right call for a stall, but the message would say "dark" rather than "slow".commit:is the script tree's HEAD, not the-Xclbuild's (this was already true before this PR). My #541 blocks saydb2d4fcbecause I ran them from the merge tree with-Xclpointed at the #541 build.Not tested
6bd8f64): the black build here is its earlier head24635db.pr_check.pyfrom main, so the refusal only applies after merge.XCL_FRAME_DUMPbeing lost when the process fails to start (anes66's point above).AI use
pr_check.check(), and drafted this comment. I checked it before posting.@anes66 on GitHub · 2026-11-24 04:45 UTC · original · edited 2026-11-24 16:05 UTC
The new frame-dump setting leaks into the caller when process startup fails on
fd323c0f37d56683de1c792a3620e28505b4026b.With the caller's
XCL_FRAME_DUMP=37, passing an existing but invalid executable through-Xclthrows from startup and leaves the caller at120. Restoration is after the process wait, so it is not reached.52de2df sets
ProcessStartInfo.EnvironmentVariables["XCL_FRAME_DUMP"]instead. The child gets 120 without changing the parent. It also adds the failed-start regression to your PowerShell test. This is scoped to the newly added frame setting; the older network/run/activity settings are left to #521.Tested
Windows 10 Pro 19045, Windows PowerShell 5.1.19041.7844 and PowerShell 7.6.9.
got '120' wanted '37'.scripts/test-smoke-lit.tests.ps1passed in both shells after the fix; PowerShell 5.1 used a process-only execution-policy override.smoke.ps1with a locally compiled synthetic stand-in in both shells. Its log/report produced100 %,0 %,0.4 %andn/ain the final block. The stand-in required the child's value to be 120. The caller retained 37, and an initially unset caller variable stayed unset. These are synthetic fixture checks, not title regression runs.Workspace result
Rust 1.100.0 MSVC, RTX 3060 12 GB / 32.0.16.2114, Ryzen 7 9800X3D, DXC 1.9.2602.17, Agility SDK 1.620.2, debug:
d32s8_targets_take_their_own_size_of_video_memory,vram.rs:889,D32S8 target at 0x4000000000.Not tested
Real-title frame capture/smoke runs, other GPUs or release builds. No runtime source changed.
AI use
Codex (GPT-6; exact variant unavailable) wrote the fix/regression and synthetic stand-in, ran validation, and drafted this report.
Current-main integration follow-up
Integration head a62d547 combines
main fc0462bwith this PR's unchangedfd323c0, then reapplies the child-only frame-dump fix as its own commit. The merge resolves both Python conflicts by retaining main's field validation, model/template/test-only checks and this PR's lit-frame checks. No Rust files changed.Tested
python -B -m unittest discover -s scripts -p 'test_pr_check*.py' -v: 17 tests passed.scripts/test-smoke-lit.tests.ps1: passed on Windows PowerShell 5.1 and PowerShell 7, including the failed-start environment regression.XCL_FRAME_DUMP=120; the caller's 37 stays 37, and unset stays unset.These are script checks with our own small C fixture, not title runs. No proprietary files or new smoke blocks. Rust/GPU tests were not rerun for this scripts-only integration. The separate rounding concern raised by @136084599 is unchanged.
AI use: Codex (GPT-6; exact variant unavailable) resolved the integration, reapplied the existing fix, ran the checks and prepared this update.
@Chrysana on GitHub · 2026-11-24 16:15 UTC · original
@sds-228 On the
XCL_FRAME_DUMP=120question: I measured that in my report above, on an RX 9070 XT with a retail title, 60 s runs.main's ownsmoke.ps1(no sampling) on the same build: 1193 frames.smoke.ps1(sampling every 120 presents): 1152, 1170 and 1190 frames.91f9a5e: 1176 without sampling, 1171 with.So on this card the cost is within run-to-run spread. That's one GPU and a handful of runs, so it doesn't rule out a cost on slower cards, where the readback takes a bigger share of each frame.
(Claude Code, Claude Opus 5.5)
@DavidM1911 on GitHub · 2026-11-25 11:28 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.@RavenCurseBurg on GitHub · 2026-11-25 18:35 UTC · original · edited 2026-11-25 18:43 UTC
I reproduced the conflicts in
scripts/pr_check.pyandscripts/test_pr_check.py. The tested merge commit keeps the sampled-frame comparison together with main's required smoke-field checks and template tests. Its parents are the PR headfd323c0andmainat3f2777019544. The PR branch can fast-forward to it.python -B -m unittest discover -s scripts -p "test_*.py"passed all 29 tests.test-smoke-lit.tests.ps1,smoke-title.tests.ps1andtest-smoke-artifacts.tests.ps1each passed on Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9.smoke.ps1 -Xcl <stub.cmd> -OutDir <fixture>with six synthetic frame reports under a German locale. The child sawXCL_FRAME_DUMP=120, the caller recovered its previous value, the report copy matched the input and the manifest retained the title and frame count.Windows 11 build 26100.9711, i7-13700, Python 3.14.3. Synthetic reports only. No captured retail frames, runtime build or GPU suite. OpenAI Codex (GPT-6) resolved the conflicts and ran the tests.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.