mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:05:54 +01:00
[PR #256] Conformance expect returns input-error status for unreadable images #308
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#308
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/256
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9987📝 Commits (2)
bd1569bDistinguish unreadable expect inputs from pixel mismatchesa631bc6Clarify 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
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Restores
#7167after the repository-transfer closure. The original PR cannot be reopened by its author (viewerCanReopen: false). This resubmission uses the same branch and unchanged heada631bc68c4ce2ad4f7fb1993e6611aedfcf486da. Original independent review/test evidence: https://github.com/ProjectLeonida/Leonida/pull/7167#issuecomment-7111095925.An unreadable image in
compare.py expectnow returns exit 2, matching the tool's documented input-error contract. The command still reports every scene, and readable images with mismatched pixels return 1. This also updates the built-in selftest and the conflicting exit-code note in COMPARE.md. Following review, theexpectdocumentation explicitly lists exit codes 0, 1 and 2, including image-error precedence in mixed runs.Claimed in coordination.
Rebased onto main
1ce6eb5f5. Tested heada631bc68con Windows with Python 3.12.16 and synthetic inputs only. The regression's missing and corrupt images failed on the original parent. All four input states pass on this head, including mixed image errors and pixel mismatches. The four transparency tests and all 22 built-in selftest checks pass. Compilation,git diff --checkand the game-data check pass. CPU-only, no GPU run.AI-assisted (Codex).
Fresh integration verification against ProjectLeonida/Leonida main "
d083a2cc3": clean merge, tests/test_conformance_expect_status.py: 1 test with 4 input-state subtests; tests/test_conformance_png_transparency.py: 4 tests; compare.py selftest: all 22 checks passed. Whitespace and changed-file game-data checks passed. Windows, Python 3.12.16, CPU only, synthetic inputs; no GPU run. AI-assisted (Codex).Resubmission claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116960294
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.