Repository navigation
test(ci): cover the two stage headers nothing was compiling (#4337) - #4338
Conversation
The self-containment guard listed six of the eight per-pixel stage headers. flux_scalar.h and source_xyz.h were covered by accident -- pipeline.h is listed and includes both, so a break failed, blamed on pipeline.h. transfer.h and chromatic_adaptation.h are included by no listed header and had no coverage at all. Measured: dropping `#include "fl/gfx/color_profile.h"` from transfer.h left this file at 15 passed. With the four added it names the header -- FAILED ... [fl/gfx/transfer.h] -- and transfer.h is the decode stage, the "one semantic conversion" B3 is written around. All four are self-contained today, so this stays green at 19 rather than 15 and closes the gap instead of reporting one. Third guard over this path with its own hand-maintained list, after #4330 (over-claimed scope) and #4335 (missed the gamut mapper). None of the three agreed. Comment added to each pointing at the others; whether the stage set should be declared once and imported is raised on #4337 rather than decided here. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe self-containment test adds direct coverage for four per-pixel stage headers. The change identifies headers that previously had only transitive coverage or no coverage. ChangesHeader coverage
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to This change improves header coverage without altering runtime behavior and is ready to merge after normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes #4337.
The gap
test_fixed_point_headers_are_self_contained.pycompiles each listed header as a translation unit's only include. Its list named six of the eight per-pixel stage headers.Two of the four omissions were covered by accident:
pipeline.his listed and includesflux_scalar.handsource_xyz.h, so breaking either fails — blamed onpipeline.hrather than the header at fault, but it fails.transfer.handchromatic_adaptation.hare included by no listed header. No coverage at all.Measured
Removing
#include "fl/gfx/color_profile.h"fromtransfer.h, leaving it depending on an include it doesn't make:15 passed— silentFAILED ... [fl/gfx/transfer.h],1 failed, 18 passedAll four are self-contained today, so this stays green at 19 instead of 15 and closes the gap rather than reporting one.
transfer.his worth more than its size here: it's the decode stage, the "one semantic conversion" B3 is written around, and the only stage the reference corpus checks numerically.Third of a kind, and that is the part worth reading
Three structural guards over the same eight-stage path, three hand-maintained lists, none agreeing. Each was defensible read alone; the gaps only appeared side by side. A guard's list is itself a thing nothing checks.
Each file now carries a comment naming the other two. Whether the stage set should be declared once and imported — so adding a stage cannot silently skip a guard — is raised on #4337 as a question rather than decided in a test fix.
bash lintclean. Test-only; no source changes.🤖 Generated with Claude Code
https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9
Summary by CodeRabbit