ps_sweep: preserve proven color mismatches in exact reports (DRAFT-63) #1318
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1318"
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 ubiquitarianism/leonida. Originally posted by fin-github on 2026-11-24T21:49:43Z.
Claimed in the coordination issue as: DRAFT-63 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145408470)
Supersedes draft #63. Cherry-picked Oleg Makarov's commit from
old-pr/9787ontomainwith its original authorship.What and why
ps_sweep compare --exactnow keeps the draw classified as a mismatch when complete color readbacks already differ and the depth readback is missing or short. The report still records the depth diagnostic for each draw. The regression also checks that a draw with matching colors and missing depth is still classified as missing.Tested
Windows 11 (build 26200.9974), Python 3.14.4. Synthetic files only.
upstream/mainat4a50cafc7with the draft test only,python -I tests/test_ps_sweep.pyran 25 tests with the new regression failing, 21 passing and 3 Vulkan-worker skips. The report counted two missing and one incompatible draw where two mismatches and one missing draw were expected.python -I tests/test_ps_sweep.pyhad 22 passes and the same 3 skips.python -I tests/test_ab_control_flow.pyhad 65 passes and 1 skip.python -I scripts/check_no_game_data.py tools/ps_sweep.py tests/test_ps_sweep.pyandgit diff upstream/main --checkexited 0.GPUs tested: no GPU
AI-assisted (Codex) for takeover and verification. The original draft records OpenCode, Muse Spark 1.3, and GPT-6.2 Sol.
Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-24T23:41:07Z.
Verified on Windows host (AI-assisted review), commit
d8f36f1d6.python -I tests/test_ps_sweep.py: 25 tests OK, 3 skipped (the PS_SWEEP_TEST_EXE-gated Vulkan worker tests — need game data/hardware, correctly skipped).test_exact_keeps_color_mismatch_with_bad_depthexercises exactly the changed branch: color-mismatch draws with missing and truncated depth files now keepclass: mismatchwhiledepth_classstill recordsmissing/incompatible.exact_pairreturns "mismatch" only after full successful readback comparison, so preserving it over unusable depth is correct — a missing depth file cannot un-prove observed color differences. The elif chain still letsdepth_class: mismatchdowngrade only non-mismatch outcomes.Verdict: LGTM, fix is correct and well-tested.
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T22:14:16Z.
Native Windows 11 Verification (
d8f36f1d62)Verified
d8f36f1d6236dce1e306f972d3cc72d1f32e4c86merged cleanly ontoorigin/main(c7753ed98a56677f10e34078b37eab0540e190ec,git merge-tree --write-treerc=0) on native Windows 11 (26200):origin/mainc7753ed98a):python -I tests/test_ps_sweep.pyfailed (FAILED (failures=1, skipped=3)out of25tests —compare_exactoverwrote observed pixel color"mismatch"outcomes with"missing"/"incompatible"when depth data was absent or short).origin/main + d8f36f1d62):python -I tests/test_ps_sweep.pypassed25 ran, OK (skipped=3), preserving"mismatch"inclassanddrawswhile still recordingdepth_classseparately and classifying matching-color draws with absent depth as"missing".AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T00:17:38Z.
Tested
d8f36f1d6merged (no commit) withmain829530dbd: Python 3.12.4, Windows 11 10.0.26300, CPU only.check_no_game_data.pyis clean.tests/test_ps_sweep.py, 25 tests pass (3 skipped).tools/ps_sweep.pyback tomain, 1 failure ({'missing': 2, 'incompatible': 1} != {'mismatch': 2, 'missing': 1}).No blocker from my side.
AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T00:45:57Z.
Merged after TheGeogeo's red/green check (check) (Windows, Python tests, no GPU needed) and a local re-check here. Merged after local re-verification: this PR merged onto
maind8b57246cwithout conflict, and its test file(s) (tests/test_ps_sweep.py) pass there. Earlier today the same tests failed onmainwithout the PR (red/green) and a bundle with other open PRs showed no new failures.check_no_game_data.pyis clean. Windows 11, Python 3.14; no GPU needed for these tests.AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.