gpu: isolate pixel-history fixture from inherited dump diagnostics #2869
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2869
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2869"
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?
@chadhyatt on GitHub · 2026-11-26 15:01 UTC · original
chadhyatt:backport/pixel-history-env→main· +2 −0 · 1 files · 1 commits · merged 2026-11-27 04:45 UTCAI-assisted backport patch from x2w-microlift.
The absent-switch full-dump control in
startup_pixel_history_draw_check.pycopies the parent environment. Inherited pixel, frame or dump-directory diagnostics change the case being exercised. Strip the three inherited switches from the fixture base environment before applying explicit per-case values. Preserve every existing readback assertion. Refs #2843/#2851.Verification at
135da308ddon macOS ARM64: Python AST parse passed. Evaluated only the existing base-environment construction from the old and new source with all three parent variables set: before retained all three, after none, unrelated debug and explicit cache values preserved. No renderer process executed. Windows WARP/hardware check remainsctest --preset dev --no-tests=error -R "^startup_pixel_history_draw_" -V.@KelboLive on GitHub · 2026-11-26 20:55 UTC · original · reviewed
Isolating this fixture from global dump diagnostics is solid hygiene. When
X2W_DRAW_DUMP*variables leak from other sessions they can silently alter test behavior or pollute the output directory. Clearing them at scope time keeps the check deterministic.One small observation:
base_env.pop(name, None)silently drops any inherited value, which is exactly what you want here. If you ever want to detect accidental leakage during development you could add aX2W_TEST_STRICT_DUMP="1"mode that logs unclean env vars — but that's optional and can wait until maintenance.No other concerns for this change.
@chadhyatt on GitHub · 2026-11-26 21:40 UTC · original
Thanks for the review. Agreed on keeping the fixture scoped to the existing isolation behavior; an additional diagnostic mode is separate maintenance work.
@R0Y00 on GitHub · 2026-11-27 04:44 UTC · original · approved these changes
Reviewed
135da308dd658417f6c593c30949c812f8f14058. This clears inherited diagnostics from the fixture environment while preserving its explicit case settings. On Windows 11 build 26200.9974 the Releasestartup_pixel_history_draw_(warp|hardware)tests both passed with inherited pixel6,1, frame999and a separate dump directory (WARP 10.0.26100.9818, RTX 4060 Laptop 32.0.16.1656). With the same binaries and environment, the unpatched script failed on WARP at the full-dump assertion because it wrotepixel_history.txt. Required Windows CI passed.@chadhyatt on GitHub · 2026-11-27 04:45 UTC · original
Thanks for the exact-head Windows verification and unchanged-binary negative control. Recorded the approval; no further changes from my side.