Repository navigation
docs(lessons): record RP2350W HIL diagnosis lessons - #4209
Conversation
Eight entries from an unattended RP2350W/ESP32-C6 bench session, each tied to a concrete failure rather than general advice: - a harness PASS asserts only what the harness checks (runParallelTest skips RX validation for the RP PIO0+PIO1 pair; I cited it as loopback evidence on #3899 and had to retract) - on a HIL bench most "device faults" are host-side -- four in one session - a second RpcBench on a held port connects and is then silently inert (#4207) - when an error path swallows its signal, instrument instead of hypothesising (four successive refuted guesses at one `None`) - verify the firmware you think you flashed actually landed - Python equivalence checks cannot see C overflow - peer-OTA reflashes the fixture, which has no escape armed - the non-W rp2350 build renames the board's /dev/serial/by-id path Per CLAUDE.md "Self-improvement: Update agents/tasks/lessons.md after corrections". Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01KkufoNxfnNRU9psT3R9F51
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughAdded thirteen lessons to ChangesHardware Testing Lessons
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This update documents HIL bench lessons without changing runtime code, tests, or deployment behavior. No merge-blocking risk is evident. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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 |
Five more from the same bench session: sampling one artifact when the property depends on cache-hit status, mistaking a real bug in the right subsystem for the actual cause, forcing opaque wrapper errors to yield their underlying exception, checking what a manifest is before calling it truncated, and the RP controller resource-lifetime trap. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01KkufoNxfnNRU9psT3R9F51
Eight entries appended to
agents/tasks/lessons.mdfrom an unattendedRP2350W + ESP32-C6 bench session. Each is tied to a specific failure with the
evidence that produced it, per the CLAUDE.md rule "Self-improvement: Update
agents/tasks/lessons.mdafter corrections".The two I'd most want a future agent to read:
A harness
PASSmeans what the harness checked, not what its name implies.runParallelTestskips RX loopback validation for the RPPIO0+PIO1pair(
AutoResearchRemoteRunParallelTest.cpp:308), so its PASS proves channelcreation and a clean shared
show()— not byte-correct output. I quoted it on#3899 as "decisive loopback evidence" and had to retract that.
On a HIL bench, most "device faults" are host-side. Four in this session
alone: a 20 ms RPC timeout that read as a hung board;
deployed firmware schema does not contain rpSpiLoopbackagainst a board that exposes it; azero_capturethat was an unfitted jumper; andserial driver may be wedgedthat was a dead fbuild daemon. Three of those are fixed in #4206/#4208 so they
now say what they mean.
The rest cover the silent second-
RpcBenchfailure (#4207), instrumentingrather than hypothesising when an error path swallows its own signal, verifying
the firmware you think you flashed actually landed, Python equivalence checks
being blind to C overflow, peer-OTA reflashing a fixture that has no watchdog
escape armed, and the non-W
rp2350build renaming the board's/dev/serial/by-idpath.Docs only — no code or test changes.
bash lintclean.🤖 Generated with Claude Code
https://claude.ai/code/session_01KkufoNxfnNRU9psT3R9F51
Summary by CodeRabbit