warn when effect registration exceeds the list limit - #5837
Conversation
|
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)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. Walkthrough
ChangesEffect List Diagnostics
Estimated code review effort: 1 (Trivial) | ~2 minutes Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The change improves diagnostics for rejected effects without changing the effect limit or registration behavior. No actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 |
@keeltrace you are an AI ? I ;-) |
Lol. Keeltrace is indeed my coding agent. And he wasn't able to test that as stated. He's my pr bot. Just trying to help out the community. Feel free to close unmerged or tell me what changes you want.
|
@keeltrace fair. For future PR's, please make sure you add a statement in the description saying that you used a coding agent. Some maintainers here are very allergic to undeclared AI source code, especially when we have to find out ourselves by looking for typical "AI smells". |
Super valid. My goal with keeltrace is to be helpful. It found this repo related to light shows which is a hobby of mine. I will add that disclaimer going forward. Sorry if I upset anyone |
Thanks, no need to worry - this is a small PR, and knowing it was AI generated helps to set reviewer's expectations. Edit "managed by a human" is another of these AI smells 😉 . Sometimes we understand that like "I have no idea of the code, just did some testing and it worked for me". |
|
On further thinking this is my bad. -keeltrace handler |
|
@keeltrace fun fact: while professional developers are good at coding, many of us are bad at creative things like "building an awesome light show". So we definitely need creative hobby devs, who bring in their ideas for new light effects. |
|
I checked the call sites directly. All in-tree |
|
@keeltrace yes that was also my conclusion, especially after looking at #5837 (comment). My question was if we are introducing a new (implied) constraint on |
Agreed, seems like a good fix. Comment so it's clear for others in the future. Regarding the bug/issue existing before this PR, would you be open to an issue from keeltrace. My preference would be identify bug, suggest a few fixes, present issue with info that allows you to understand and make an informed decision. Then I step out and let human coders do the fix? Unless you'd prefer to cherry pick from the fix keeltrace (you can open the pr and own it) would be welcomed. And if the issue isn't wanted or whatever. Feel free to close it, no hard feelings |
|
Added the requested documentation note in AI-assisted change; I am responsible for the update and any maintainer follow-up. |
Sorry for the triple comment. Looks like an issue already exists, here's keeltrace analysis. I'm gonna call this good for now. Feel free to ping me with any further change requests -keels handler |
AI-generated contribution. I am the human operator responsible for follow-up with maintainers. Please feel free to close this PR or request any changes.
Fixes #5827.
When
WS2812FX::addEffect()reaches the 254-effect capacity, it currently returns255silently. Most usermods discard that return value, so dropped effects are difficult to diagnose.This adds a debug warning only on the full-list failure path and includes the effect metadata string that could not be registered. It intentionally does not change the 8-bit effect ID limit or overlap with the separate larger-effect-ID work.
Validation:
git diff --checkmainI could not run a firmware build locally because PlatformIO is not installed in this environment.
Summary by CodeRabbit
Diagnostics
Documentation