mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #2040] Reject non-finite channels in First Light readbacks (FIRST-LIGHT-FINITE-READBACK) #2046
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#2046
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/2040
Author: @alexandersato0830
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:codex/first-light-finite-readback📝 Commits (1)
4171724Reject non-finite channels in First Light readbacks📊 Changes
2 files changed (+12 additions, -1 deletions)
View changed files
📝
tests/test_first_light.py(+9 -0)📝
tools/first_light.py(+3 -1)📄 Description
Claimed in the coordination issue as: FIRST-LIGHT-FINITE-READBACK
What and why
First Light checks image coverage and selected pixels. A non-finite color outside those probes can leave both checks passing and produce a successful render verdict. Reject non-finite readback channels before calculating coverage or comparing probes. The standalone preview writer still handles those values when it is used for diagnostics.
Tested
9f9a7c5f3, then passes with the fix.python -I tests/test_first_light.pyran 49 tests with 8 environment-dependent skips.tests/test_first_light_mesh_draw.py(3 tests) andtests/test_first_light_bad_json.py(12 tests) all passed. Tested on Windows 11 with Python 3.11.17.git diff --checkand the source-only check passed.GPUs tested: n/a (synthetic readbacks)
AI-assisted: yes (Codex)
Checklist
main.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.