mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:45:53 +01:00
[PR #1322] conformance: return exit 2 for unreadable expect inputs (DRAFT-256) #1351
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1351
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1322
Author: @fin-github
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:codex/draft-256📝 Commits (2)
a50d23aDistinguish unreadable expect inputs from pixel mismatches520b352Clarify expect exit codes and image-error precedence📊 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
Claimed in the coordination issue as: DRAFT-256 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145350336)
What and why
Supersedes carried-over draft #256. Both of Tayar's original commits from
old-pr/9987were cherry-picked with-xontomainat4a50cafc7.compare.py expectnow returns exit 2 for missing or unreadable images, even when another scene has a pixel mismatch. It still reports every scene. Exit 1 indicates pixel mismatches across readable inputs, and exit 0 indicates a match. The documentation and selftest reflect those statuses.Tested
On baseline
4a50cafc7, the missing and corrupt PNG subtests both returned 1. Reproduced in PowerShell with:All four exit-status subtests, four PNG transparency tests and all 22 comparison selftest checks passed. Compilation, changed-file game-data check and whitespace checks passed.
Windows 11 build 26200, Python 3.14.4, synthetic inputs only.
GPUs tested: n/a (CPU-only).
AI-assisted (Codex): rebasing and verification.
Checklist
mainand merges cleanly.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.