Skip to content

test(ci): cover the two stage headers nothing was compiling (#4337) - #4338

Merged
zackees merged 1 commit into
masterfrom
fix/4337-stage-header-coverage
Sep 11, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/4337-stage-header-coverage

Conversation

@zackees

@zackees zackees commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

Fixes #4337.

The gap

test_fixed_point_headers_are_self_contained.py compiles 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.h is listed and includes flux_scalar.h and source_xyz.h, so breaking either fails — blamed on pipeline.h rather than the header at fault, but it fails.

transfer.h and chromatic_adaptation.h are included by no listed header. No coverage at all.

Measured

Removing #include "fl/gfx/color_profile.h" from transfer.h, leaving it depending on an include it doesn't make:

list result
as it was 15 passed — silent
with the four FAILED ... [fl/gfx/transfer.h], 1 failed, 18 passed

All four are self-contained today, so this stays green at 19 instead of 15 and closes the gap rather than reporting one.

transfer.h is 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

guard failure
#4330 docstring over-claimed the scope it scanned
#4335 under-covered the stages it claimed — missed the gamut mapper, the one stage A3 is about
this covers six of eight; two had no coverage at all

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 lint clean. Test-only; no source changes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9

Summary by CodeRabbit

  • Tests
    • Expanded automated coverage to verify additional graphics headers can be included independently.
    • Improved validation for per-pixel graphics stages, including transfer, source, chromatic adaptation, and scalar processing components.
    • No user-facing functionality or behavior changes.

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
@coderabbitai

coderabbitai Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: f6148d3c-c383-40f6-ac0c-992aaa638717

📥 Commits

Reviewing files that changed from the base of the PR and between 7bd1b1f and e95629d.

📒 Files selected for processing (1)
  • ci/tests/test_fixed_point_headers_are_self_contained.py

Included review availability: Your plan provides up to 8 included reviews per hour; 2 remain after this review.


📝 Walkthrough

Walkthrough

The 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.

Changes

Header coverage

Layer / File(s) Summary
Add per-pixel header coverage
ci/tests/test_fixed_point_headers_are_self_contained.py
The test list adds transfer.h, source_xyz.h, chromatic_adaptation.h, and flux_scalar.h for standalone compilation checks.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Severity of issue fixed: Low

Merge Risk: ⚪ Minimal · up to e9562

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)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the CI test change and the missing stage-header coverage addressed by issue #4337.
Linked Issues check ✅ Passed The PR adds direct self-containment coverage for all four omitted headers, including transfer.h and chromatic_adaptation.h, and raises the suite from 15 to 19 tests as required by issue #4337.
Out of Scope Changes check ✅ Passed The PR only updates the self-containment test list and related comments. No unrelated source or functional changes are included.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/4337-stage-header-coverage

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zackees
zackees merged commit 2a3b20f into master Sep 11, 2026
27 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Sep 11, 2026
@zackees
zackees deleted the fix/4337-stage-header-coverage branch November 5, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Two per-pixel stage headers have no self-containment coverage: transfer.h and chromatic_adaptation.h

1 participant