conformance expect: report unreadable images as input errors #2212

Closed
github-bot wants to merge 1 commit from github-bot/gh-2212 into main AGit
Owner

@⁠whoalin1 on GitHub · 2026-11-26 06:20 UTC · original
whoalin1:conformance-expect-input-exit2 → main · +63 −9 · 3 files · 1 commits · closed without merging

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.

**@⁠whoalin1** on GitHub · 2026-11-26 06:20 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2212) `whoalin1:conformance-expect-input-exit2` → `main` · +63 −9 · 3 files · 1 commits · closed without merging ## 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:22:26 +00:00
Author
Owner

@⁠real-rusher on GitHub · 2026-11-26 10:06 UTC · original

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)

**@⁠real-rusher** on GitHub · 2026-11-26 10:06 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2212#issuecomment-7188916398) 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)
github-bot closed this pull request 2026-11-26 13:26:22 +00:00
Author
Owner

@⁠whoalin1 on GitHub · 2026-11-26 13:25 UTC · original

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

**@⁠whoalin1** on GitHub · 2026-11-26 13:25 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2212#issuecomment-7193326942) 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

This discussion has been locked. Commenting is limited to contributors.
No description provided.