Repository navigation
refactor(examples): rename AutoResearchRemote bind*Methods by what they test (System/Driver/Pin/Math/Network/Async/Benchmark) - #3191
Conversation
…ey test Follow-up to #3187/#3188/#3189. Old names were partly implementation-named (FlexIO is Teensy-only), partly vague (Basic, Coroutine). Renaming so each group describes WHAT the RPCs exercise. Rename map: bindBasicMethods → bindSystemMethods // status, ping, debug, help bindFlexioMethods → bindDriverMethods // LED driver tests (FlexIO today) bindGpioMethods → bindPinMethods // pin config (GPIO is impl) bindBenchmarkMethods → bindMathMethods // SIMD/animartrix/wave/parlio bindAsyncNetMethods → bindNetworkMethods // WiFi/OTA/BLE/codec/testAsync bindCoroutineMethods → bindAsyncMethods // coroutine + promise primitives bindPerfMethods → bindBenchmarkMethods // perfProbe* + wave2dPerf Files renamed (git mv preserves history): BasicMethods.cpp → SystemMethods.cpp FlexioMethods.cpp → DriverMethods.cpp GpioMethods.cpp → PinMethods.cpp BenchmarkMethods.cpp → MathMethods.cpp AsyncNetMethods.cpp → NetworkMethods.cpp CoroutineMethods.cpp → AsyncMethods.cpp PerfMethods.cpp → BenchmarkMethods.cpp (swap: was PerfMethods, takes BenchmarkMethods name now) Header file-comments rewritten to describe the *category* rather than enumerate every RPC — categories are stable, RPC lists drift. Driver bin's comment notes the platform-specificity intent: today it holds Teensy 4.x FlexIO RX validation; future platform-specific driver tests for other MCUs land in the same bin, gated by per-binding #if guards rather than file-level partitioning. Verified: bash compile wasm --examples AutoResearch — success (library 40.03 s, sketch 2.89 s, link 6.05 s, total 59.89 s). Co-Authored-By: Claude Opus 4.7 (1M context) <[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 (10)
📝 WalkthroughWalkthroughThe AutoResearch example's RPC binding helpers are reorganized from six old groups (basic/flexio/gpio/asyncNet/coroutine/perf) into seven new groups (system/driver/pin/math/network/async/benchmark). Five files are renamed-only, ChangesAutoResearch RPC Binding Reorganization
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 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 |
Follow-up to #3187 / #3188 / #3189. Old names mixed implementation (FlexIO is Teensy-only) and vague labels (Basic, Coroutine). Renaming each binder to describe what it tests, not how the implementation is structured.
bindBasicMethodsbindSystemMethodsbindFlexioMethodsbindDriverMethodsbindGpioMethodsbindPinMethodsbindBenchmarkMethodsbindMathMethodsbindAsyncNetMethodsbindNetworkMethodsbindCoroutineMethodsbindAsyncMethodsbindPerfMethodsbindBenchmarkMethodsNote the swap of the
BenchmarkMethodsname: oldbindBenchmarkMethods(SIMD/animartrix/wave) renamed tobindMathMethods; oldbindPerfMethods(perfProbe*) renamed tobindBenchmarkMethods— the framework probes are the actual benchmarks.Files renamed via
git mv(history preserved):The
driversrename in particular addresses the issue called out in the spec: "FlexIO methods, that's teensy level stuff right? Maybe we just call it bind drivers and let the platform level stuff happen in the details." Per-binding#if FL_IS_TEENSY_4Xguards already gate platform specifics inside each driver-test body — no platform leakage at the file boundary.File-comment headers also rewritten to describe the category (stable) rather than enumerate every RPC (drifts as RPCs come/go).
Verified:
bash compile wasm --examples AutoResearch— success (59.89 s total).Generated with Claude Code.
Summary by CodeRabbit
Refactor
New Features