mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:25:53 +01:00
[PR #2205] conformance compare: harden crash and image input error handling #2209
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#2209
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/2205
Author: @whoalin1
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:compare-unexpected-exit2📝 Commits (3)
c3b9fb6conformance compare: report unexpected crashes as tool errors8754c9bconformance expect: report unreadable images as input errorsdbfcd31conformance: reject invalid critical PNG chunk structure📊 Changes
5 files changed (+174 additions, -9 deletions)
View changed files
➕
tests/test_conformance_compare_crash.py(+58 -0)➕
tests/test_conformance_expect_status.py(+51 -0)📝
tests/test_conformance_png_transparency.py(+32 -0)📝
tools/conformance/COMPARE.md(+7 -7)📝
tools/conformance/compare.py(+26 -2)📄 Description
Summary
tracebackintools/conformance/compare.py, so the existing catch-all can actually print the traceback and returnEXIT_ERRORItem: TEST-CONFORMANCE-COMPARE-TRACEBACK
This carries forward the still-uncarried fix in old-pr/9848, originally written by David, reapplied and verified on current main.
Tests
Under the local machine coordination lock:
NameError: name 'traceback' is not definedand the script-level path exits 1python -I tests/test_conformance_compare_crash.py— 2 tests, OKpython -m compileall -q tools/conformance/compare.py tests/test_conformance_compare_crash.py— passgit diff --check— passNo game files, renderer or GPU.
AI-assisted with Devin.
Consolidated conformance hardening
This branch now also includes the two conformance-compare fixes formerly opened as #2212 and #2213:
expectreturns input-error exit 2 for unreadable, missing, or corrupt images instead of reporting them as ordinary pixel mismatches;The consolidated branch is the original reviewed commit plus cherry-picks
8754c9b90anddbfcd31ab; no additional code was written during consolidation. Independent reviewers had already verified the individual fixes and reported that the overlapping compare.py branches merge cleanly together.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.