Conformance expect returns input-error status for unreadable images #256

Open
github-bot wants to merge 2 commits from github-bot/gh-256 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:54 UTC · original
ubiquitarianism:old-pr/9987 → main · +63 −9 · 3 files · 2 commits · draft

Carried over from old PR 9987 by lucastayaralvarenga-ui in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9987, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
lucastayaralvarenga-ui: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Restores #7167 after the repository-transfer closure. The original PR cannot be reopened by its author (viewerCanReopen: false). This resubmission uses the same branch and unchanged head a631bc68c4ce2ad4f7fb1993e6611aedfcf486da. Original independent review/test evidence: https://github.com/ProjectLeonida/Leonida/pull/7167#issuecomment-7111095925.

An unreadable image in compare.py expect now 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, the expect documentation explicitly lists exit codes 0, 1 and 2, including image-error precedence in mixed runs.

Claimed in coordination.

Rebased onto main 1ce6eb5f5. Tested head a631bc68c on 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 --check and 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

**@⁠Andretuta** on GitHub · 2026-11-24 02:54 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/256) `ubiquitarianism:old-pr/9987` → `main` · +63 −9 · 3 files · 2 commits · draft > Carried over from **old PR 9987** by `lucastayaralvarenga-ui` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9987`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `lucastayaralvarenga-ui`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Restores `#7167` after the repository-transfer closure. The original PR cannot be reopened by its author (`viewerCanReopen: false`). This resubmission uses the same branch and unchanged head `a631bc68c4ce2ad4f7fb1993e6611aedfcf486da`. Original independent review/test evidence: https://github.com/ProjectLeonida/Leonida/pull/7167#issuecomment-7111095925. An unreadable image in `compare.py expect` now 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, the `expect` documentation explicitly lists exit codes 0, 1 and 2, including image-error precedence in mixed runs. Claimed in [coordination](https://github.com/ProjectLeonida/Leonida/issues/7049#issuecomment-7106575790). Rebased onto main `1ce6eb5f5`. Tested head `a631bc68c` on 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 --check` and 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
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:50:45 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/256/head:github-bot/gh-256'
git switch 'github-bot/gh-256'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-256'
git switch 'github-bot/gh-256'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-256'
git switch 'github-bot/gh-256'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-256'
git switch 'main'
git merge --squash 'github-bot/gh-256'
git switch 'main'
git merge --ff-only 'github-bot/gh-256'
git switch 'main'
git merge 'github-bot/gh-256'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.