conformance expect: report unreadable images as input errors #2212

Closed
whoalin1 wants to merge 1 commit from upstream-pr/2212 into main
whoalin1 commented 2026-11-26 06:20:12 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-26T06:20:12Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5505090285 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2212). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-26T06:20:12Z. --- ## 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by real-rusher on 2026-11-26T10:06:27Z.


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)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7188916398 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2212#issuecomment-7188916398). Originally posted by [real-rusher](https://github.com/real-rusher) on 2026-11-26T10:06:27Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-26T13:25:15Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7193326942 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2212#issuecomment-7193326942). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-26T13:25:15Z. --- Consolidated into #2205 as cherry-pick `8754c9b90` to reduce review noise. The unreadable-image exit-status fix and regression test are preserved there.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!2212
No description provided.