Reject non-finite channels in First Light readbacks (FIRST-LIGHT-FINITE-READBACK) #2040
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2040"
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?
Imported from ubiquitarianism/leonida. Originally posted by alexandersato0830 on 2026-11-25T18:47:18Z.
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.Imported from ubiquitarianism/leonida. Originally posted by DeadlyChirp on 2026-11-26T10:32:35Z.
Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main.
tests/test_first_light.py: 45 passed, 8 skipped, 95 subtests passed (main: 44 passed). The skips are environment ones (no symlink privilege,vk_harnessnot built), the same on main.(AI-assisted test run; output checked by hand.)
Imported from ubiquitarianism/leonida. Originally posted by sodove on 2026-11-28T10:11:56Z.
#2040 | head
4171724fb3db097f0a6ba70cccf9f8357f6d0201|python3 -I tests/test_first_light.py -v| red: 49 run, 3 failures, 4 skips | green: 45 passed, 4 skipped | Red → greenThree assertions accepted non-finite readback channels on main. Three checks requiring a First Light fixture directory and one optional native harness check skipped on both sides.
Pinned main
33db04a7010e81c40a7a6a15624525aa0c4a3a58, merged into this PR head. Ubuntu 26.04.1 (WSL2), Python 3.14.4. Full suite: not run. AI-assisted: OpenAI Codex. Batch claim.Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-28T10:47:50Z.
Merged, thank you @alexandersato0830!
What it does: Reject non-finite channels in First Light readbacks (FIRST-LIGHT-FINITE-READBACK)
How it was checked: sodove tested this PR at head
4171724fbon main33db04a70: the PR's own test fails on main and passes with this PR merged in (his result is linked from the batch summary in #1608). We then re-ran the same test locally on Windows 11 and got the same verdict: on main, red (3 failures); with the PR, green (49 OK, 8 skips).CI: the red jobs on this PR fail the same way on main, or on the older main it was built on (the
cs_dpp_cmp.asmtranslator fixture, since fixed on main, and the Windows runner's Visual Studio setup), so none comes from this change.Merged one by one with 20 other PRs of the same reviewed batch, pinned to the tested head.
AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.