Repository navigation
refactor(autoresearch): remove FL_*_AT_BOOT boot bridges entirely (RPC-only) - #2624
Conversation
…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]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe 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. ChangesBenchmark RPC Migration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Summary
Follow-up to #2618. Delete the
#ifdef FL_RUN_SIMD_TESTS_AT_BOOT/FL_BENCH_WAVE8_AT_BOOT/FL_BENCH_PARLIO_AT_BOOTinvocation blocks fromexamples/AutoResearch/AutoResearch.ino. The SIMD validation suite, Wave8 expansion bench, and PARLIO encode bench are now invoked exclusively via their RPC handlers inAutoResearchRemote.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.handAutoResearchParlioEncode.hto drop references to the now-removed boot macros and state RPC-only invocation.Test plan
testSimd/wave8ExpandBenchmark/parlioEncodeBenchmarkRPC calls still work (no change to handlers)grep -r FL_RUN_SIMD_TESTS_AT_BOOT examples/AutoResearchreturns nothinggrep -r FL_BENCH_WAVE8_AT_BOOT examples/AutoResearchreturns nothinggrep -r FL_BENCH_PARLIO_AT_BOOT examples/AutoResearchreturns nothing🤖 Generated with Claude Code
Summary by CodeRabbit