Skip to content

test: preserve per-channel color order - #3923

Merged
zackees merged 1 commit into
masterfrom
test/1009-mixed-color-orders
Aug 20, 2026
Merged

zackees merged 1 commit into
masterfrom
test/1009-mixed-color-orders

Conversation

@zackees

@zackees zackees commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

Adds regression coverage for the legacy ESP32 color-order erasure reported in #1009 and linked #827. The modern Channel pipeline is exercised with two clockless channels on different pins sharing slices of one CRGB array; captured wire bytes prove RGB and GRB remain independent for both pixels on each channel.

The old ESP32 RMT/I2S controller arrays that erased template types have been replaced; modern transports consume already encoded per-channel ChannelData. This test protects that boundary.

Validation:

  • bash test channel
  • bash test channel --debug
  • bash lint
  • clud-review: clean

Closes #1009

Summary by CodeRabbit

  • Tests
    • Added integration coverage confirming that channels sharing color data maintain independent color orders.
    • Verified channel pin assignments and transmitted RGB/GRB byte sequences.

@zackees
zackees merged commit 6c69e24 into master Aug 20, 2026
3 of 4 checks passed
@zackees
zackees deleted the test/1009-mixed-color-orders branch August 20, 2026 10:17
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Aug 20, 2026
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Aug 20, 2026
@coderabbitai

coderabbitai Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 4bda24b6-dd44-4905-b2b2-3106232cd6ce

📥 Commits

Reviewing files that changed from the base of the PR and between da149b9 and 659e07a.

📒 Files selected for processing (1)
  • tests/fl/channels/channel.cpp

📝 Walkthrough

Walkthrough

Adds an integration test that verifies RGB and GRB channels preserve independent color orders when they use adjacent segments of one shared CRGB array.

Changes

Shared Buffer Color Order

Layer / File(s) Summary
Independent channel encoding validation
tests/fl/channels/channel.cpp
The test configures RGB and GRB channels, captures both transmissions, validates pin assignments, and asserts the expected encoded byte sequences.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

✨ 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 test/1009-mixed-color-orders

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.

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.

One CRGB[], multiple pins with multiple color order broke since last update (ESP32?)

1 participant