Repository navigation
refactor(autoresearch): gate runSimdTests() behind FL_RUN_SIMD_TESTS_AT_BOOT - #2618
Conversation
…AT_BOOT Stop running the 85-test SIMD validation suite unconditionally on every boot of the AutoResearch example. The testSimd RPC handler in AutoResearchRemote.cpp is the canonical invocation path; the boot-time call was a redundant ~50-100 ms tax plus log noise for anyone using AutoResearch as the regular LED autoresearch tool. Mirrors the FL_BENCH_WAVE8_AT_BOOT / FL_BENCH_PARLIO_AT_BOOT pattern from PR #2539: keep the function callable, gate the boot-time invocation behind an opt-in macro for use as a bridge until the testSimd RPC routing on P4 is fixed (#2541). Closes #2542 Co-Authored-By: Claude Opus 4.7 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe AutoResearch sketch ChangesBoot-time test and benchmark consolidation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
…C-only) (#2624) 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]>
Summary
-DFL_RUN_SIMD_TESTS_AT_BOOT=1(off by default), mirroringFL_BENCH_WAVE8_AT_BOOT/FL_BENCH_PARLIO_AT_BOOTfrom perf(wave8): byte-indexed expansion LUT (#2526) — 1.66x on ESP32-P4 #2539runSimdTests()itself is unchanged; the existingtestSimdRPC handler inAutoResearchRemote.cppremains the canonical invocation pathCloses #2542.
Why
Every boot of AutoResearch was paying ~50–100 ms + log dump for a validation suite already callable on demand via RPC. Same anti-pattern PR #2539 fixed for the wave8 expansion bench.
Test plan
-DFL_RUN_SIMD_TESTS_AT_BOOT=1— SIMD tests SHOULD run at boot (bridge mode)testSimdRPC call still works (unchanged)🤖 Generated with Claude Code
Summary by CodeRabbit