Repository navigation
Reuse fbuild serial proxy in autoresearch recovery - #3245
Conversation
|
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)
📝 WalkthroughWalkthrough
ChangesGPIO serial proxy reuse on reset
Sequence Diagram(s)sequenceDiagram
participant Caller
participant run_gpio_pretest
participant RpcClient
participant serial_interface
Caller->>run_gpio_pretest: call with serial_interface
run_gpio_pretest->>RpcClient: ping() [fails]
run_gpio_pretest->>serial_interface: reset_device()
alt serial_interface is None
run_gpio_pretest->>RpcClient: close()
run_gpio_pretest->>RpcClient: new RpcClient + connect(boot_wait)
else serial_interface provided
run_gpio_pretest->>RpcClient: drain_boot_output()
end
run_gpio_pretest->>RpcClient: ping() [succeeds]
run_gpio_pretest-->>Caller: result
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 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 |
Refs FastLED/fbuild#592.\n\n## Summary\n- stop driver_sweep from forcing direct pyserial because of old fbuild daemon locking behavior\n- reuse the existing proxy-backed RpcClient after GPIO reset recovery instead of closing and recreating it\n- add host-only tests proving GPIO retry paths keep the supplied serial proxy open\n\n## Tests\n- uv run ruff format ci/autoresearch/driver_sweep.py ci/autoresearch/gpio.py ci/tests/test_gpio_serial_proxy_retry.py\n- uv run ruff check ci/autoresearch/driver_sweep.py ci/autoresearch/gpio.py ci/tests/test_gpio_serial_proxy_retry.py\n- uv run pytest ci/tests/test_gpio_serial_proxy_retry.py\n- uv run pytest ci/tests/test_autoresearch_phases.py ci/tests/test_serial_interface_reset.py
Summary by CodeRabbit
Bug Fixes
Tests