Reliability Validation (Minimum Loop)
Channel compatibility note: See shared/channel-compat.md for the canonical reference on channel/transport configuration across all platforms.This folder provides practical checks for:
- endurance (long-run control/read loop)
- error/timeout behavior (automated unit tests + manual HIL checks)
- disconnect/recovery (manual HIL steps)
- cross-platform scan consistency (Linux vs Windows)
1) Endurance
Run one command repeatedly and generate a JSON report: Windows (PCAN) example:can0 or slcan0):
slcan0 regression (recommended):
tools/reliability/templates/linux_slcan_endurance_4340p.jsontools/reliability/templates/linux_slcan_endurance_rs00_vel.json
fail == 0success_rate == 1.0
thresholds.max_failthresholds.min_success_rate
2) Error/Timeout Injection
Automated coverage is incargo test --workspace --all-targets:
- bus read error path (
CoreController) - Damiao register timeout
- RobStride parameter timeout
3) Disconnect / Recovery (HIL)
Manual steps:- Start a short control loop (
pos-velorvel). - Unplug PCAN-USB (or down Linux CAN interface).
- Verify command pauses, then auto-reconnect/retry is attempted.
- Re-plug / recover bus.
- Verify loop resumes without restarting the process, or re-run scan/control to confirm recovery.
4) Cross-Platform Consistency (Scan)
Save scan stdout logs on Linux and Windows, then compare:- per-vendor
hitswith optional tolerance (--allow-hit-delta) - vendor subset filtering (
--vendors) - configurable
idmatching mode (--id-mode):exactleft-subsetright-subsetintersect-nonempty