Skip to content

Reduce RMT allocation failure logging bloat - #3900

Merged
zackees merged 1 commit into
masterfrom
fix/2978-rmt-allocation-cold-logs
Aug 19, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/2978-rmt-allocation-cold-logs

Conversation

@zackees

@zackees zackees commented Aug 19, 2026 •

Copy link
Copy Markdown
Member

Summary

  • move RMT TX fallback formatting into a file-local noinline cold helper
  • move detailed allocation failure warnings into a separate cold helper
  • compile the fallback helper and calls away when RMT/runtime logging is disabled

Verification

  • bash test rmt_memory_manager
  • bash lint --cpp
  • git diff --check
  • /clud-review clean

Fixes #2978

Summary by CodeRabbit

  • Bug Fixes
    • Improved diagnostics for transmission fallback events and allocation failures.
    • Preserved existing allocation and error-handling behavior while making related logging more reliable.

@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Aug 19, 2026
@zackees
zackees merged commit c13e736 into master Aug 19, 2026
9 of 16 checks passed
@zackees
zackees deleted the fix/2978-rmt-allocation-cold-logs branch August 19, 2026 02:10
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Aug 19, 2026
@coderabbitai

coderabbitai Bot commented Aug 19, 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: 5dda6051-f167-48e1-a583-759f3331d0ba

📥 Commits

Reviewing files that changed from the base of the PR and between 2144e2f and 6d165fd.

📒 Files selected for processing (1)
  • src/platforms/esp/32/drivers/rmt/rmt_5/rmt_memory_manager.cpp.hpp

📝 Walkthrough

Walkthrough

The RMT TX allocation failure path now uses cold, no-inline helpers for fallback and diagnostic logging. Existing allocation behavior, diagnostic inputs, conditional messages, and error results remain unchanged.

Changes

TX allocation logging extraction

Layer / File(s) Summary
Logging helpers and failure-path integration
src/platforms/esp/32/drivers/rmt/rmt_5/rmt_memory_manager.cpp.hpp
Added file-local helpers for TX fallback and allocation-failure diagnostics. handleAllocateTxFailure now calls these helpers while retaining fallback allocation and error handling.

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

✨ 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/2978-rmt-allocation-cold-logs

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.

bloat: extract RmtMemoryManager::handleAllocateTxFailure format machinery into shared cold helper

1 participant