gpu: isolate pixel-history fixture from inherited dump diagnostics #2861
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from R0Y00/Xbox2Windows. Originally posted by chadhyatt on 2026-11-26T15:01:39Z.
AI-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.Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-26T20:55:32Z.
Review: COMMENTED
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.
Imported from R0Y00/Xbox2Windows. Originally posted by chadhyatt on 2026-11-26T21:40:04Z.
Thanks for the review. Agreed on keeping the fixture scoped to the existing isolation behavior; an additional diagnostic mode is separate maintenance work.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T04:44:27Z.
Review: APPROVED
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.Imported from R0Y00/Xbox2Windows. Originally posted by chadhyatt on 2026-11-27T04:45:41Z.
Thanks for the exact-head Windows verification and unchanged-binary negative control. Recorded the approval; no further changes from my side.