Repository navigation
test(lpc): add fault emit autoresearch mode - #3615
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 (5)
📝 WalkthroughWalkthroughAdds a FASTLED_AUTORESEARCH_FAULT_TEST build mode for LPC845 that intentionally triggers OOM and stack-blow faults via RPC endpoints, a ChangesFault-Emit Validation
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related issues
Sequence Diagram(s)sequenceDiagram
participant CLI as autoresearch CLI
participant Phases as ci/autoresearch/phases.py
participant Device as LPC845 Firmware
CLI->>Phases: run with --fault-emit-test
Phases->>Phases: validate target env is LPC845 WS2812
Phases->>Device: build and flash fault-test firmware
Phases->>Device: reset, send trigger_oom RPC
Device-->>Phases: FAULT: output or normal result
Phases->>Phases: classify PASS/FAIL
Phases->>Device: re-flash fresh firmware
Phases->>Device: reset, send trigger_stackblow RPC
Device-->>Phases: FAULT: output or normal result
Phases->>Phases: classify PASS/FAIL
Phases->>CLI: print PASS/FAIL summary
✨ 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 |
Summary
--fault-emit-testAutoResearch modetrigger_oomandtrigger_stackblowRPCs behindFASTLED_AUTORESEARCH_FAULT_TEST=1agents/docs/hardware-autoresearch.mdCloses #3302.
Part of #3348.
Local validation
fbuild port scanconfirmed LPC-Link2 CMSIS-DAP on COM10.bash lint ci/autoresearch/args.py ci/autoresearch/phases.py examples/AutoResearch/AutoResearchLowMemory.hbash autoresearch lpc845 --fault-emit-test --upload-port COM10 --timeout 120s --skip-lintObserved fault diagnostics:
trigger_oom: FAULT: HardFault PC=0x10001E70 LR=0xFFFFFFF9 xPSR=0x10000020trigger_stackblow: FAULT: HardFault PC=0x10002FC0 LR=0xFFFFFFF9 xPSR=0x00000000Summary by CodeRabbit
New Features
FAULT:diagnostic before resetting.Documentation