-
-
Notifications
You must be signed in to change notification settings - Fork 12
fix: v3.1.1 - Test suite compatibility and cache improvements #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
## Fixed - Updated test references from old cache variables to new optimized ones (_instrument_cache -> _opt_instrument_cache) - Fixed datetime serialization/deserialization in cached DataFrames to preserve timezone information - Resolved BatchedWebSocketHandler flush mechanism with event-based signaling - Fixed race condition in BatchedWebSocketHandler task creation - Corrected SignalR mock methods in connection management tests (AsyncMock -> MagicMock) ## Improved - Enhanced datetime handling in msgpack cache with proper timezone preservation - More robust cache deserialization with fallback handling - Better datetime string format compatibility ## Tests - All 438 tests now passing - Added comprehensive test coverage for new cache implementation - Fixed all test suite compatibility issues with optimized cache This release ensures full test suite compatibility with the v3.1.0 performance optimizations.
|
Claude finished @TexasCoding's task —— View job Code Review Complete ✅I've thoroughly reviewed this PR focusing on code quality, potential issues, performance, security, and test coverage. Here's my comprehensive analysis: Review Checklist:
✅ Positive AspectsExcellent Cache Serialization Improvements (
|
Summary
This release fixes all test suite compatibility issues with the v3.1.0 performance optimizations and improves cache serialization for datetime handling.
Changes
🐛 Bug Fixes
_instrument_cache) to new optimized ones (_opt_instrument_cache)✨ Improvements
Test Results
Files Modified
src/project_x_py/client/cache.py- Enhanced datetime serializationsrc/project_x_py/realtime/batched_handler.py- Fixed flush mechanism and race conditionstests/client/test_client_integration.py- Updated cache variable namestests/client/test_market_data.py- Updated cache variable namestests/realtime/test_batched_handler.py- Fixed flush test timingtests/realtime/test_connection_management.py- Fixed mock methodsType of Change
Checklist
🤖 Generated with Claude Code
Co-Authored-By: Claude [email protected]