ps_sweep: preserve proven color mismatches in exact reports (DRAFT-63) #1318

Open
github-bot wants to merge 1 commit from github-bot/gh-1318 into main AGit
Owner

@⁠fin-github on GitHub · 2026-11-24 21:49 UTC · original
fin-github:codex/draft-63 → main · +36 −1 · 2 files · 1 commits · open

Claimed in the coordination issue as: DRAFT-63 (#14)

Supersedes draft #63. Cherry-picked Oleg Makarov's commit from old-pr/9787 onto main with its original authorship.

What and why

ps_sweep compare --exact now 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.

  • Before, on upstream/main at 4a50cafc7 with the draft test only, python -I tests/test_ps_sweep.py ran 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.
  • After the cherry-pick, python -I tests/test_ps_sweep.py had 22 passes and the same 3 skips.
  • python -I tests/test_ab_control_flow.py had 65 passes and 1 skip.
  • python -I scripts/check_no_game_data.py tools/ps_sweep.py tests/test_ps_sweep.py and git diff upstream/main --check exited 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.

**@⁠fin-github** on GitHub · 2026-11-24 21:49 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1318) `fin-github:codex/draft-63` → `main` · +36 −1 · 2 files · 1 commits · open Claimed in the coordination issue as: DRAFT-63 (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) Supersedes draft #63. Cherry-picked Oleg Makarov's commit from `old-pr/9787` onto `main` with its original authorship. ### What and why `ps_sweep compare --exact` now 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. - Before, on `upstream/main` at `4a50cafc7` with the draft test only, `python -I tests/test_ps_sweep.py` ran 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. - After the cherry-pick, `python -I tests/test_ps_sweep.py` had 22 passes and the same 3 skips. - `python -I tests/test_ab_control_flow.py` had 65 passes and 1 skip. - `python -I scripts/check_no_game_data.py tools/ps_sweep.py tests/test_ps_sweep.py` and `git diff upstream/main --check` exited 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:47:17 +00:00
Author
Owner

@⁠whoalin1 on GitHub · 2026-11-24 23:41 UTC · original

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).
  • The new test test_exact_keeps_color_mismatch_with_bad_depth exercises exactly the changed branch: color-mismatch draws with missing and truncated depth files now keep class: mismatch while depth_class still records missing/incompatible.
  • Logic check: exact_pair returns "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 lets depth_class: mismatch downgrade only non-mismatch outcomes.

Verdict: LGTM, fix is correct and well-tested.

**@⁠whoalin1** on GitHub · 2026-11-24 23:41 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1318#issuecomment-7147680080) 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). - The new test `test_exact_keeps_color_mismatch_with_bad_depth` exercises exactly the changed branch: color-mismatch draws with missing and truncated depth files now keep `class: mismatch` while `depth_class` still records `missing`/`incompatible`. - Logic check: `exact_pair` returns "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 lets `depth_class: mismatch` downgrade only non-mismatch outcomes. Verdict: LGTM, fix is correct and well-tested.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1318/head:github-bot/gh-1318'
git switch 'github-bot/gh-1318'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1318'
git switch 'github-bot/gh-1318'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1318'
git switch 'github-bot/gh-1318'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1318'
git switch 'main'
git merge --squash 'github-bot/gh-1318'
git switch 'main'
git merge --ff-only 'github-bot/gh-1318'
git switch 'main'
git merge 'github-bot/gh-1318'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.