Implement automatic connection recovery and long-duration testing infrastructure to complete Phase 2 (Network Reliability) of the RSIPI improvement roadmap. New Features: - Auto-reconnection manager with configurable retry strategies - IMMEDIATE: Reconnect without delay - LINEAR_BACKOFF: Incremental retry delays - EXPONENTIAL_BACKOFF: Exponential retry delays - Background watchdog monitoring (checks every 2 seconds) - Reconnection statistics tracking (attempts, failures, timestamps) - Optional callbacks for reconnection events (success/failure) - 24-hour stability test script with comprehensive reporting - Configurable test duration and sample intervals - Real-time health monitoring and progress logging - Detailed JSON reports with timing and network statistics - Human-readable summary with health percentage Modified Files: - src/RSIPI/rsi_client.py - Added auto-reconnect integration with enable_auto_reconnect parameter - Start/stop auto-reconnect monitor in lifecycle methods - Clear metrics on reconnection to reset statistics New Files: - src/RSIPI/auto_reconnect.py (241 lines) - AutoReconnectManager class with background monitoring thread - ReconnectStrategy enum for retry behavior configuration - Watchdog timeout detection and automatic recovery - Reconnection verification with health checks - tests/stability_test.py (365 lines) - StabilityTest class for long-duration testing - Command-line interface with argparse - Automatic log file generation with timestamps - Sample collection with configurable intervals - Statistical analysis and reporting - Graceful interruption handling (KeyboardInterrupt) Phase 2 Status: ✅ COMPLETE - ✅ Timing instrumentation (commit |
||
|---|---|---|
| .. | ||
| __pycache__ | ||
| __init__.py | ||
| stability_test.py | ||
| test_safety_manager.py | ||
| test_trajectory_planner.py | ||
| test_xml_handler.py | ||