[PR #2212] [CLOSED] conformance expect: report unreadable images as input errors #2216

Closed
opened 2026-11-26 21:20:27 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2212
Author: @whoalin1
Created: 11/26/2026
Status: ❌ Closed

Base: main ← Head: conformance-expect-input-exit2


📝 Commits (1)

  • ea5101b conformance expect: report unreadable images as input errors

📊 Changes

3 files changed (+63 additions, -9 deletions)

View changed files

➕ tests/test_conformance_expect_status.py (+51 -0)
📝 tools/conformance/COMPARE.md (+7 -7)
📝 tools/conformance/compare.py (+5 -2)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2212 **Author:** [@whoalin1](https://github.com/whoalin1) **Created:** 11/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `conformance-expect-input-exit2` --- ### 📝 Commits (1) - [`ea5101b`](https://github.com/ubiquitarianism/leonida/commit/ea5101b6d0d61f70303c72cd4e7d4cf266f24b7b) conformance expect: report unreadable images as input errors ### 📊 Changes **3 files changed** (+63 additions, -9 deletions) <details> <summary>View changed files</summary> ➕ `tests/test_conformance_expect_status.py` (+51 -0) 📝 `tools/conformance/COMPARE.md` (+7 -7) 📝 `tools/conformance/compare.py` (+5 -2) </details> ### 📄 Description ## 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 21:20:27 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#2216
No description provided.