Skip to content

fix(examples): filter RGBWW to memory>=large (AVR overflows by 46KB) - #2573

Merged
zackees merged 1 commit into
masterfrom
fix/rgbww-memory-filter
May 30, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/rgbww-memory-filter

Conversation

@zackees

@zackees zackees commented May 30, 2026 •

Copy link
Copy Markdown
Member

Summary

  • examples/RGBWW/RGBWW.ino (new in feat(rgbww): 5-channel RGB+WW pipeline via Channels API (#2558 Phases A-F) #2560) ships without an @filter, so CI tries to compile it on every board. It pulls in the Channels API + colorimetric RGB→RGBWW solvers — ~54 KB total, which overflows attiny85's 8 KB flash by 46,396 bytes and won't fit on uno (32 KB) either.
  • Affected workflows on master: attiny85, attiny88, attiny1604, attiny1616, atmega8a, plus the corresponding size guards (check_uno_size, attiny85_binary_size).
  • Adds // @filter: (memory is large) to the .ino — matches the existing pattern used by examples/Animartrix and examples/AnimartrixRing for similarly heavy examples.

Verified

Drove sketch_filter.parse_filter_from_sketch + should_skip_sketch against representative boards:

Board Tier Result
attiny85 tiny SKIP
attiny88 tiny SKIP
uno low SKIP
apollo3_red large BUILD
adafruit_feather_nrf52840_sense large BUILD
esp32dev huge BUILD
teensy41 huge BUILD

bash lint clean.

Fixes #2572

Generated with Claude Code (https://claude.com/claude-code)

Summary by CodeRabbit

  • Documentation
    • Enhanced the RGBWW example documentation with additional notes regarding memory constraints and board compatibility requirements for compilation.

Review Change Stack

examples/RGBWW/RGBWW.ino (new in #2560) ships without an @filter, so CI
attempts to compile it on every board. It pulls in the Channels API
plus the colorimetric RGB→RGBWW solvers — ~54 KB total, which overflows
attiny85's 8 KB flash by 46396 bytes and won't fit on uno (32 KB)
either.

Restrict CI compile matrix to boards in the "large" or "huge" memory
tier (Apollo3 / nRF52 / SAMD21+ / SAMD51 / STM32F4+ / teensy 3.5+ /
teensy 4.x / ESP32 / native / web / rp2040). Matches the existing
pattern used by Animartrix/AnimartrixRing for similarly heavy examples.

Verified filter behavior via sketch_filter.parse_filter_from_sketch +
should_skip_sketch against representative boards:
  attiny85       tier=tiny  -> SKIP
  attiny88       tier=tiny  -> SKIP
  uno            tier=low   -> SKIP
  apollo3_red    tier=large -> BUILD
  nrf52840_sense tier=large -> BUILD
  esp32dev       tier=huge  -> BUILD
  teensy41       tier=huge  -> BUILD

Fixes #2572
@coderabbitai

coderabbitai Bot commented May 30, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 107f8ef8-3ac4-4620-9132-8cda20cfeb81

📥 Commits

Reviewing files that changed from the base of the PR and between b2254c1 and 10c7533.

📒 Files selected for processing (1)
  • examples/RGBWW/RGBWW.ino

📝 Walkthrough

Walkthrough

Header comment block added to examples/RGBWW/RGBWW.ino documenting that the example's Channels API and RGBWW colorimetric solvers require ~54 KB flash and overflow on tiny/low-memory AVR boards, with guidance that CI should restrict the compile matrix to boards with sufficient memory tiers.

Changes

RGBWW Memory Constraints Documentation

Layer / File(s) Summary
Memory constraints and CI compile matrix guidance
examples/RGBWW/RGBWW.ino
Header comment extended to document code size footprint, identify which AVR boards lack sufficient flash (attiny85, atmega8a, uno, uno_r4), and specify that CI compile matrix should be restricted to large-memory board tiers.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A bunny sees the bytes pile high,
Tiny boards with memories shy—
A comment's born to guard the gate,
So CI skips what won't fit straight! 🐇💾

🚥 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 main change: adding a memory filter to the RGBWW example to prevent compilation on low-memory boards that overflow by 46KB.
Linked Issues check ✅ Passed The PR directly addresses issue #2572 by adding the proposed single-line @filter directive to prevent CI from compiling RGBWW on tiny/low memory boards that would cause linker overflow.
Out of Scope Changes check ✅ Passed All changes are strictly within scope: only the header comment block was extended with memory constraint notes and the @filter directive, with no code logic or API changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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/rgbww-memory-filter

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 and usage tips.

@zackees
zackees merged commit af0b3c5 into master May 30, 2026
5 of 6 checks passed
@zackees
zackees deleted the fix/rgbww-memory-filter branch May 30, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

examples/RGBWW: needs @filter to skip tiny/low memory boards (overflows attiny85 by 46KB)

1 participant