-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Adding maintenance notification configuration to cluster client. Integration with testing helper proxy server. #3844
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds maintenance notification configuration support to the Redis cluster client, enabling applications to receive and handle maintenance events from Redis clusters. It also introduces a proxy-based testing infrastructure to simulate and validate maintenance notification handling.
- Adds
maint_notifications_configparameter toRedisClusterand propagates it through the cluster node initialization - Introduces comprehensive unit tests for maintenance notification classes and handlers
- Adds integration test helpers using a proxy server for testing notification behavior
- Updates Docker infrastructure to include proxy services for testing
Reviewed Changes
Copilot reviewed 6 out of 8 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| redis/cluster.py | Adds maint_notifications_config parameter to RedisCluster and NodesManager, propagates config to all cluster nodes |
| redis/client.py | Fixes grammar in documentation comment ("configuration" -> "configures") |
| tests/maint_notifications/test_maint_notifications.py | Comprehensive unit tests for notification classes, config, and handlers (897 lines) |
| tests/maint_notifications/test_cluster_maint_notifications_handling.py | Integration tests for cluster maintenance notification handling with proxy |
| tests/maint_notifications/proxy_server_helpers.py | Helper classes for proxy-based testing infrastructure |
| tests/maint_notifications/test_maint_notifications_handling.py | Documentation correction in docstring |
| docker-compose.yml | Adds proxy services and updates image tags for testing infrastructure |
| .gitignore | Adds /experimenting/ directory to ignore list |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tests/maint_notifications/test_cluster_maint_notifications_handling.py
Outdated
Show resolved
Hide resolved
ce738e3 to
4c06962
Compare
f57ea65
into
feat/hitless_upgrade_sync_cluster_client
…gration with testing helper proxy server. (#3844) * Adding maint_notifications_config to RedisCluster's NodesManager * Adding Redis Proxy integration * Migrating test proxy helper to use custom https client
…gration with testing helper proxy server. (#3844) * Adding maint_notifications_config to RedisCluster's NodesManager * Adding Redis Proxy integration * Migrating test proxy helper to use custom https client
Pull Request check-list
Please make sure to review and check all of these items:
NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.
Description of change
Please provide a description of the change here.