Skip to content

feat(autoresearch): validate RP2350W and C6 peer networking - #3851

Merged
zackees merged 1 commit into
masterfrom
feat/rp2350w-net-peer
Aug 6, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/rp2350w-net-peer

Conversation

@zackees

@zackees zackees commented Aug 6, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add a strict fbuild-only --net-peer\ AutoResearch mode for RP2350W/Pico 2 W plus ESP32-C6
  • require explicit primary and companion ports, then test ten device-to-device WiFi/HTTP reconnect cycles without host WiFi switching
  • verify post-teardown serial JSON-RPC responsiveness and cover parser, deployment, and orchestration behavior

Verification

  • \uv run pytest ci/tests/test_autoresearch_net.py ci/tests/test_autoresearch_phases.py ci/tests/test_autoresearch_rpc_acceptance.py -q\ (180 passed)
  • \�ash lint ci/autoresearch/args.py ci/autoresearch/context.py ci/autoresearch/phases.py ci/autoresearch/net.py ci/tests/test_autoresearch_phases.py ci/tests/test_autoresearch_rpc_acceptance.py ci/tests/test_autoresearch_net.py\

Live HIL remains intentionally blocked: fbuild reports the attached RP2350W as a non-selectable phantom while Windows reports USB Code 43.

Summary by CodeRabbit

  • New Features

    • Added network peer testing for RP2350W and ESP32-C6 devices.
    • Added configuration options for selecting the peer environment and upload port.
    • Added device-to-device HTTP testing with automatic reconnection and cleanup.
    • Added validation for compatible boards, environments, and required ports.
  • Tests

    • Added coverage for peer configuration, deployment, communication, and repeated network test cycles.

@zackees
zackees merged commit 419d0ce into master Aug 6, 2026
15 of 17 checks passed
@zackees
zackees deleted the feat/rp2350w-net-peer branch August 6, 2026 06:44
@coderabbitai

coderabbitai Bot commented Aug 6, 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 Plus

Run ID: cdb32896-c173-4033-8cac-a1c262fbea11

📥 Commits

Reviewing files that changed from the base of the PR and between 19a5a1f and dfdcf25.

📒 Files selected for processing (7)
  • ci/autoresearch/args.py
  • ci/autoresearch/context.py
  • ci/autoresearch/net.py
  • ci/autoresearch/phases.py
  • ci/tests/test_autoresearch_net.py
  • ci/tests/test_autoresearch_phases.py
  • ci/tests/test_autoresearch_rpc_acceptance.py

📝 Walkthrough

Walkthrough

Added --net-peer support for RP2350W-to-ESP32-C6 AutoResearch. The change parses and validates peer settings, deploys both boards, runs ten coordinated network cycles, and verifies cleanup and RPC health.

Changes

Network peer AutoResearch

Layer / File(s) Summary
Peer configuration and validation
ci/autoresearch/args.py, ci/autoresearch/context.py, ci/autoresearch/phases.py, ci/tests/test_autoresearch_phases.py, ci/tests/test_autoresearch_rpc_acceptance.py
Adds peer CLI options and context state. Validates board environments and upload ports. Skips GPIO-specific setup and tests for peer mode.
Companion staging and deployment
ci/autoresearch/phases.py, ci/tests/test_autoresearch_phases.py
Stages and deploys the ESP32-C6 companion project through fbuild on its explicit upload port.
Dual-board network execution
ci/autoresearch/net.py, ci/autoresearch/phases.py, ci/tests/test_autoresearch_net.py
Coordinates both RPC clients, access-point startup, ten RP2350W reconnect and HTTP-test cycles, deadline handling, health checks, failure reporting, and cleanup.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related issues

  • FastLED issue 3832: Covers the same RP2350W–ESP32-C6 peer-network AutoResearch mode and ten reconnect/test cycles.

Possibly related PRs

  • FastLED/FastLED#3843: Adds the RP2350W AutoResearch HTTP peer implementation exercised by this flow.
  • FastLED/FastLED#3844: Adds related AutoResearch network peer support for the RP2350W and ESP32-C6 devices.

Sequence Diagram(s)

sequenceDiagram
  participant AutoResearch
  participant RP2350W
  participant ESP32C6
  participant HTTPTests
  AutoResearch->>RP2350W: Connect and validate board identity
  AutoResearch->>ESP32C6: Connect and validate board identity
  AutoResearch->>ESP32C6: Start access point and HTTP server
  AutoResearch->>RP2350W: Reconnect and wait for IP
  RP2350W->>HTTPTests: Run HTTP tests in both directions
  AutoResearch->>RP2350W: Stop service and verify RPC response
  AutoResearch->>ESP32C6: Ping companion and close RPC client
Loading
✨ 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 feat/rp2350w-net-peer

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.

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