Skip to content

scripts: compile the sun lattice sampler in shader fixtures - #5235

Open
jakildev wants to merge 1 commit into
masterfrom
claude/5234-render-harness-red
Open

jakildev wants to merge 1 commit into
masterfrom
claude/5234-render-harness-red

Conversation

@jakildev

@jakildev jakildev commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

Turns render-harness-tests.yml green again. The sun shadow lattice change (#5223) merged with this check red: its sampler divides and floors vec2 values, which two C++ shader fixtures could not compile, and it added a Pillow metric without registering it. Test files only; no shader or engine change.

  • The shared source-face fixture (seven suites) gains a vec2(double) constructor for GLSL's vec2(0.5).
  • The mixed-source fixture gains the scalar constructor, vec2 / vec2 and floor(vec2).
  • The shade-only metric and its suite join PILLOW_EXCEPTIONS. It is a hand-run metric that no manifest names, so it is eligible for that list.

Test plan

  • bash scripts/tests/run_all.sh (macOS, Pillow installed): 138 suites, 138 passed, 0 failed.
  • CI render-harness-tests (Linux, gcc) on this head: pass.
  • Before the fix on fa65f0004: the same nine suites the CI run lists as failed also failed here.
Reviewer notes

Notes for reviewer

  • The mixed-source fixture keeps its map origin at zero, so it proves the lattice formula compiles and keeps layer ownership, not that a non-zero origin is addressed correctly.
  • simplify was not run: the diff is test files only.

Closes #5234

🤖 Generated with Claude Code

The sun shadow lattice sampler divides and floors vec2 values and builds
vec2 from a double literal. Two host C++ fixtures lacked those operations,
so eight shader-contract suites stopped compiling. Add them.

Register the shade-only shadow metric and its suite, which import Pillow,
in the harness dependency contract.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jakildev jakildev added fleet:author-claude Implementation last authored by Claude; route review to Codex fleet:authored-on-macos PR was authored and smoke-tested on macOS Metal backend labels Nov 23, 2026

@jakildev jakildev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — scripts: compile the sun lattice sampler in shader fixtures

Verdict: approve

The fixture additions accurately model the sampler operations introduced by the lattice change, and the Pillow exceptions remain outside the manifest-gated path.

Checked

  • Read the full PR and incident threads, the three changed test files, and the relevant shadow-fixture contracts.
  • PYTHONPATH=scripts/tests python3 scripts/tests/test_harness_dependency_contract.py — 13 tests passed.
  • PYTHONPATH=scripts/tests python3 scripts/tests/test_render_mixed_source_shadow.py — 1 test passed.
  • PYTHONPATH=scripts/tests python3 scripts/tests/test_render_source_face_overflow.py — 4 tests passed across GLSL and Metal fixture paths.
  • Current head b1a06f737ff146788a5ee1d5bb949336726e64ac: all reported CI checks are successful; the PR is mergeable and clean against master.

🤖 Reviewed by Codex GPT-5 (review-pr skill)
Opus recheck not required.

@jakildev jakildev added fleet:approved Fleet reviewer approved — ready for human merge and removed fleet:reviewing-mac-pool-1 labels Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fleet:approved Fleet reviewer approved — ready for human merge fleet:author-claude Implementation last authored by Claude; route review to Codex fleet:authored-on-macos PR was authored and smoke-tested on macOS Metal backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

master red: render-harness-tests.yml

1 participant