mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:50:52 +01:00
[PR #1324] conformance: preserve traceback and exit 2 for unexpected exceptions (DRAFT-114) #1354
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#1354
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/1324
Author: @fin-github
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:codex/draft-114📝 Commits (1)
9946837conformance/compare.py: import traceback, so an unexpected crash exits 2 and not the mismatch code 1📊 Changes
2 files changed (+59 additions, -0 deletions)
View changed files
➕
tests/test_conformance_compare_crash.py(+58 -0)📝
tools/conformance/compare.py(+1 -0)📄 Description
Claimed in the coordination issue as: DRAFT-114 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145478287)
What and why
Supersedes carried-over draft #114. David's original commit from
old-pr/9848was cherry-picked with-xontomainat4a50cafc7.compare.pynow importstracebackso an unexpected command-handler exception prints the original exception and exits 2. Exit 1 remains the pixel mismatch status. The missing import had raised a second exception inside the error handler and caused Python to exit 1.Tested
On baseline
4a50cafc7, the direct test raisedNameErrorand the subprocess test returned 1. Reproduced in PowerShell with:Both crash regressions, all four PNG transparency tests and all 22 comparison selftest checks passed. Touched-file compilation, changed-file game-data and whitespace checks passed. The merge simulation with #1322 was clean.
Windows 11 build 26200, Python 3.14.4, synthetic inputs only.
GPUs tested: n/a (CPU-only).
AI-assisted: original patch by Claude Code (Claude Opus 5.5), rebase and verification by Codex.
Checklist
mainand merges cleanly.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.