Skip to content

refactor(autoresearch): remove FL_*_AT_BOOT boot bridges entirely (RPC-only) - #2624

Merged
zackees merged 1 commit into
masterfrom
refactor/2542-followup-remove-simd-boot-bridge
May 31, 2026
Merged

zackees merged 1 commit into
masterfrom
refactor/2542-followup-remove-simd-boot-bridge

Conversation

@zackees

@zackees zackees commented May 31, 2026 •

Copy link
Copy Markdown
Member

Summary

Follow-up to #2618. Delete the #ifdef FL_RUN_SIMD_TESTS_AT_BOOT / FL_BENCH_WAVE8_AT_BOOT / FL_BENCH_PARLIO_AT_BOOT invocation blocks from examples/AutoResearch/AutoResearch.ino. The SIMD validation suite, Wave8 expansion bench, and PARLIO encode bench are now invoked exclusively via their RPC handlers in AutoResearchRemote.cpp:

  • testSimd -> autoresearch::simd_check::runSimdTests()
  • wave8ExpandBenchmark -> autoresearch::wave8_bench::measureWave8Expand()
  • parlioEncodeBenchmark -> autoresearch::parlio_bench::measureParlioEncode()

Why

Per maintainer feedback on #2618: opt-in "bridge" macros leave scaffolding that future edits quietly reactivate, defeating the whole point of moving validation/bench code off setup(). The RPC layer is the canonical invocation rail; if RPC routing is broken on a platform (e.g. the ESP32-P4 Serial misroute fixed in #2620), fix the routing — don't re-add a boot-time bridge.

Also updates the file-level doc comments in AutoResearchWave8Expand.h and AutoResearchParlioEncode.h to drop references to the now-removed boot macros and state RPC-only invocation.

Test plan

  • Compile AutoResearch for esp32p4 — boot path stays lean; no SIMD/Wave8/PARLIO bench output at startup
  • testSimd / wave8ExpandBenchmark / parlioEncodeBenchmark RPC calls still work (no change to handlers)
  • grep -r FL_RUN_SIMD_TESTS_AT_BOOT examples/AutoResearch returns nothing
  • grep -r FL_BENCH_WAVE8_AT_BOOT examples/AutoResearch returns nothing
  • grep -r FL_BENCH_PARLIO_AT_BOOT examples/AutoResearch returns nothing

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Refactor
    • Benchmarks (SIMD validation suite, Wave8 expansion, and PARLIO encode) no longer execute automatically at startup. They are now exclusively invoked on-demand via remote procedure calls.
    • Updated documentation to reflect the new benchmark invocation method.

…C-only)

Follow-up to #2618. The SIMD validation suite, Wave8 expansion bench, and
PARLIO encode bench are now invoked exclusively via their RPC handlers
(`testSimd`, `wave8ExpandBenchmark`, `parlioEncodeBenchmark` — all
registered in AutoResearchRemote.cpp). Drop the `#ifdef
FL_RUN_SIMD_TESTS_AT_BOOT` / `FL_BENCH_WAVE8_AT_BOOT` /
`FL_BENCH_PARLIO_AT_BOOT` invocation blocks from AutoResearch.ino's
setup() — keeping these as opt-in "bridge" macros leaves scaffolding
that future edits quietly reactivate, defeating the move off the boot
path. Update the file-level doc comments in AutoResearchWave8Expand.h
and AutoResearchParlioEncode.h to reflect RPC-only invocation.

If RPC routing is broken on a platform (e.g. ESP32-P4 Serial misroute
fixed in #2620), the correct response is to fix the routing — not to
re-introduce a boot-time bridge.

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

coderabbitai Bot commented May 31, 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

Run ID: ce87ee1a-e47e-4420-863b-cb22f9ca6c06

📥 Commits

Reviewing files that changed from the base of the PR and between d2a63e7 and c32c639.

📒 Files selected for processing (3)
  • examples/AutoResearch/AutoResearch.ino
  • examples/AutoResearch/AutoResearchParlioEncode.h
  • examples/AutoResearch/AutoResearchWave8Expand.h

📝 Walkthrough

Walkthrough

The PR removes boot-time execution of three benchmarks (SIMD tests, Wave8 expansion, and PARLIO encode) from AutoResearch.ino's setup() function and replaces them with comments indicating RPC-driven invocation. Corresponding documentation updates clarify that these benchmarks are now accessible only via JSON-RPC handlers.

Changes

Benchmark RPC Migration

Layer / File(s) Summary
Boot-time execution block removal
examples/AutoResearch/AutoResearch.ino
Removes conditional blocks for FL_RUN_SIMD_TESTS_AT_BOOT, FL_BENCH_WAVE8_AT_BOOT, and FL_BENCH_PARLIO_AT_BOOT from setup(), replacing them with comments directing users to RPC handlers in AutoResearchRemote.cpp.
Header documentation updates
examples/AutoResearch/AutoResearchParlioEncode.h, examples/AutoResearch/AutoResearchWave8Expand.h
Updates file comments to reflect that benchmarks are RPC-only via parlioEncodeBenchmark and wave8ExpandBenchmark handlers, removing prior boot-time flag guidance.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related issues

  • FastLED/FastLED#2542: Proposes moving runSimdTests() from boot-time to RPC-only invocation, matching this PR's removal of FL_RUN_SIMD_TESTS_AT_BOOT execution block.
  • FastLED/FastLED#2540: Addresses Wave8 benchmark logging, which relates to the benchmark being converted to RPC-only invocation documented in this PR's AutoResearchWave8Expand.h update.

Possibly related PRs

  • FastLED/FastLED#2618: Directly aligns with this PR's removal of boot-time SIMD/PARLIO blocks by gating runSimdTests() for RPC-driven invocation.
  • FastLED/FastLED#2547: Adds the parlioEncodeBenchmark RPC handler that this PR documents as the replacement for boot-time PARLIO execution.
  • FastLED/FastLED#2584: Modifies the same FL_BENCH_WAVE8_AT_BOOT block in AutoResearch.ino that this PR removes.

Poem

🐰 Three benchmarks hop from boot to RPC calls,
No more gatekeeping at setup's morning halls,
Comments light the path where handlers now dwell,
Cleaner startup, more tests on-demand to tell. ✨

✨ 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 refactor/2542-followup-remove-simd-boot-bridge

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 f16e542 into master May 31, 2026
4 of 5 checks passed
@zackees
zackees deleted the refactor/2542-followup-remove-simd-boot-bridge branch August 21, 2026 19:16
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.

1 participant