Skip to content

fix(autoresearch): --rmt --legacy binds legacy templates to RMT for every chipset - #4662

Merged
zackees merged 1 commit into
masterfrom
fix/autoresearch-legacy-rmt-define
Oct 2, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/autoresearch-legacy-rmt-define

Conversation

@zackees

@zackees zackees commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Problem

bash autoresearch esp32c6 --rmt --legacy --strip-sizes 1,2 fails every test:

Error: LegacyDriverMismatch
Message: Legacy templates are compile-time bound to PARLIO, but the request selected RMT

FL_ESP32_LEGACY_CLOCKLESS_USE_RMT=1 was only added when --chipset was ws2814 or ws2818. On PARLIO-capable chips (C6/P4/H2/C5), legacy templates otherwise bind PARLIO, so --rmt --legacy with the default WS2812 chipset can never run. The define's own comment ("so the requested/reported driver is real") applies to every chipset.

Fix

Add the define for any --legacy --rmt request, on both the parse-time and the deferred synthesis paths.

Evidence

Summary by CodeRabbit

  • Bug Fixes
    • Legacy builds that select RMT now consistently use the RMT clockless driver across chipsets. This includes default-chipset ESP32-C6 configurations and supported strip sizes, which previously could fail to select the requested driver.

…very chipset

FL_ESP32_LEGACY_CLOCKLESS_USE_RMT was only added for WS2814/WS2818. On
ESP32-C6 (and P4/H2/C5) legacy templates otherwise bind PARLIO, so the
documented `bash autoresearch esp32c6 --rmt --legacy` with the default
WS2812 chipset failed every test with LegacyDriverMismatch.

Co-Authored-By: Claude <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: FastLED/FastLED/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 5f42262d-b0e9-49b5-93d0-958e91594d00

📥 Commits

Reviewing files that changed from the base of the PR and between ec0a0f3 and 0255680.

📒 Files selected for processing (2)
  • ci/autoresearch/phases.py
  • ci/tests/test_autoresearch_phases.py

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.


📝 Walkthrough

Walkthrough

The parse-time and deferred build-definition paths now add FL_ESP32_LEGACY_CLOCKLESS_USE_RMT=1 for any chipset when --legacy and --rmt are selected. A test checks this behavior for the default-chipset ESP32-C6 case.

Changes

Legacy RMT Binding

Layer / File(s) Summary
Apply and verify legacy RMT define
ci/autoresearch/phases.py, ci/tests/test_autoresearch_phases.py
Both build-definition paths add the define when legacy and RMT are selected, without restricting the chipset. The ESP32-C6 test checks that synthesis receives the define and selects the RMT driver.

Priority: ➖ Normal

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

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 02556

ESP32-C6 legacy RMT requests now bind to RMT. ESP32-C2 does not support RMT, and its request is rejected rather than silently selecting another driver; no actionable merge blocker remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: making --rmt --legacy bind legacy templates to RMT for every chipset.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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 d0932a0 into master Oct 2, 2026
119 checks passed
zackees added a commit that referenced this pull request Oct 2, 2026
…stic serial fake (#4665)

Review follow-ups from #4661 and #4662: the deferred synthesis path now has a
WS2812 case (only WS2814 was tested), the native serial test fake waits out
its timeout like fbuild's AsyncSerialMonitor, and the AutoResearch doc says
the RMT binding applies to any --legacy --rmt run.

Co-authored-by: Claude <[email protected]>
@zackees
zackees deleted the fix/autoresearch-legacy-rmt-define 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.

1 participant