conformance expect: report unreadable images as input errors #2212

Closed
leonida/mandy
whoalin1 wants to merge 0 commits from conformance-expect-input-exit2 into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

whoalin1 commented 2026-11-26 06:20:12 +00:00

Summary

  • keep checking every scene, but exit 2 when any referenced image is missing or unreadable
  • keep exit 1 reserved for pixel-check failures in readable images, and document the precedence when both occur
  • update the built-in selftest expectation and add synthetic missing/corrupt/matching/mismatch regressions

Item: CONFORMANCE-EXPECT-INPUT-EXIT2

This carries forward the still-uncarried fix in old-pr/9987, originally written by lucastayaralvarenga-ui, reapplied and verified on current main.

Tests

Under the local machine coordination lock:

  • control: the new regression fails on the unpatched script because the corrupt-image run exits 1 like a pixel mismatch
  • fixed: python -I tests/test_conformance_expect_status.py — OK
  • python -I tools/conformance/compare.py selftest — pass
  • python -m compileall -q tools/conformance/compare.py tests/test_conformance_expect_status.py — pass
  • git diff --cached --check — pass

No game files or GPU.

AI-assisted with Devin.

## Summary - keep checking every scene, but exit 2 when any referenced image is missing or unreadable - keep exit 1 reserved for pixel-check failures in readable images, and document the precedence when both occur - update the built-in selftest expectation and add synthetic missing/corrupt/matching/mismatch regressions Item: CONFORMANCE-EXPECT-INPUT-EXIT2 This carries forward the still-uncarried fix in old-pr/9987, originally written by lucastayaralvarenga-ui, reapplied and verified on current main. ## Tests Under the local machine coordination lock: - control: the new regression fails on the unpatched script because the corrupt-image run exits 1 like a pixel mismatch - fixed: `python -I tests/test_conformance_expect_status.py` — OK - `python -I tools/conformance/compare.py selftest` — pass - `python -m compileall -q tools/conformance/compare.py tests/test_conformance_expect_status.py` — pass - `git diff --cached --check` — pass No game files or GPU. AI-assisted with Devin.
real-rusher commented 2026-11-26 10:06:27 +00:00

Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU). Merges cleanly, also together with #2213 (both touch tools/conformance/compare.py). With this PR, python -I tests/test_conformance_expect_status.py: OK. The same test file against main's compare.py: 2 failing subtests, so it fails on main and passes with the fix. All tests/test_docs_*.py pass with the COMPARE.md change. compileall clean.

AI-assisted: yes (Claude Code)

Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU). Merges cleanly, also together with #2213 (both touch tools/conformance/compare.py). With this PR, python -I tests/test_conformance_expect_status.py: OK. The same test file against main's compare.py: 2 failing subtests, so it fails on main and passes with the fix. All tests/test_docs_*.py pass with the COMPARE.md change. compileall clean. AI-assisted: yes (Claude Code)
whoalin1 commented 2026-11-26 13:25:15 +00:00

Consolidated into #2205 as cherry-pick 8754c9b90 to reduce review noise. The unreadable-image exit-status fix and regression test are preserved there.

Consolidated into #2205 as cherry-pick `8754c9b90` to reduce review noise. The unreadable-image exit-status fix and regression test are preserved there.
Sign in to join this conversation.
No description provided.