Skip to content

feat(autoresearch): stock RP2040 no-port RPC smoke - #3633

Merged
zackees merged 1 commit into
masterfrom
feat/rp2040-rpc-smoke-no-port
Jul 14, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/rp2040-rpc-smoke-no-port

Conversation

@zackees

@zackees zackees commented Jul 14, 2026 •

Copy link
Copy Markdown
Member

Implements the first stock Raspberry Pi Pico bring-up phase for #3626, #3627, and #3628.\n\n- accepts --environment rp2040/--rpc-smoke without a pre-existing serial port\n- consumes fbuild's post-deploy FBUILD_DEPLOY_PORT marker\n- runs pin-free JSON-RPC discovery/help/ping/status/drivers/testNoSerial/error smoke\n- preserves list/scalar JSON-RPC response payloads\n- adds focused parser and RPC tests\n\nValidation: bash lint; 112 focused pytest tests passed. Hardware acceptance remains pending until the attached stock Pico is detected.

Summary by CodeRabbit

  • New Features
    • Added an optional RPC smoke-test mode for RP2040 targets using --rpc-smoke.
    • The smoke test validates discovery, health checks, payload handling, status readiness, drivers, and expected error responses.
    • Deployment results can now report the application port, which is automatically used for subsequent checks.
  • Bug Fixes
    • RPC responses now preserve arrays, scalars, and other non-object payloads without losing data.
  • Tests
    • Added coverage for RPC smoke-test execution and command-line parsing.

@zackees
zackees merged commit f7df508 into master Jul 14, 2026
10 of 11 checks passed
@coderabbitai

coderabbitai Bot commented Jul 14, 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: 1323645e-2381-461f-96cf-b5a156fa77ec

📥 Commits

Reviewing files that changed from the base of the PR and between 5ba8aec and 63b4a38.

📒 Files selected for processing (8)
  • ci/autoresearch/args.py
  • ci/autoresearch/build_driver.py
  • ci/autoresearch/context.py
  • ci/autoresearch/phases.py
  • ci/rpc_client.py
  • ci/tests/test_autoresearch_phases.py
  • ci/tests/test_fbuild_default_selection.py
  • ci/util/fbuild_runner.py

📝 Walkthrough

Walkthrough

Adds --rpc-smoke for pin-free RP2040 JSON-RPC validation, propagates deployment ports, preserves arbitrary RPC payloads, updates pipeline control flow, and adds argument-parsing and smoke-flow tests.

Changes

RPC Smoke Validation

Layer / File(s) Summary
RPC smoke mode wiring
ci/autoresearch/args.py, ci/autoresearch/context.py, ci/autoresearch/phases.py
Adds the --rpc-smoke argument, carries it through RunContext, validates incompatible modes, and skips GPIO-oriented setup.
Structured deploy results
ci/util/fbuild_runner.py, ci/autoresearch/build_driver.py, ci/autoresearch/phases.py
Returns deployment output and an optional FBUILD_DEPLOY_PORT, then transfers that port into the run context.
RPC smoke execution
ci/rpc_client.py, ci/autoresearch/phases.py
Preserves non-dictionary JSON-RPC results and validates discovery, health, payload echo, drivers, serial behavior, and missing-method errors.
Smoke mode test coverage
ci/tests/test_autoresearch_phases.py, ci/tests/test_fbuild_default_selection.py
Tests the mocked RPC sequence and pin-free RP2040 argument parsing.

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

Sequence Diagram(s)

sequenceDiagram
  participant BuildDriver
  participant RunContext
  participant RpcClient
  participant RP2040
  BuildDriver->>RunContext: provide deployment result and application port
  RunContext->>RpcClient: connect using upload_port
  RpcClient->>RP2040: send RPC smoke requests
  RP2040-->>RpcClient: return responses or RpcError
  RpcClient-->>RunContext: return validation results
Loading

Possibly related issues

✨ 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/rp2040-rpc-smoke-no-port

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