Skip to content
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

Add redis to test matrix #377

Merged
merged 1 commit into from Jan 10, 2024
Merged

Add redis to test matrix #377

merged 1 commit into from Jan 10, 2024

Conversation

sevdog
Copy link
Contributor

@sevdog sevdog commented Jan 9, 2024

As discussed on #376 this PR aims to add redis to test matrix.

It also adds channels versions to test matrix in order to ensure compatibility with it.

Redis compatibility is tested only against current stable release of channels while channels compatibility is tested only against current stable release of redis.

During the tests I had to increase minimun redis supported version to 4.6 due to https://github.com/redis/redis-py/issues/2754 which was introduced in the 4.5 branch and fixed in 4.6.
  File "channels_redis/channels_redis/pubsub.py", line 297, in _do_receiving
    message = await self._pubsub.get_message(
  File "channels_redis/.tox/py310-chmain-redis45/lib/python3.10/site-packages/redis/asyncio/client.py", line 927, in get_message
    response = await self.parse_response(block=(timeout is None), timeout=timeout)
  File "channels_redis/.tox/py310-chmain-redis45/lib/python3.10/site-packages/redis/asyncio/client.py", line 804, in parse_response
    response = await self._execute(
  File "channels_redis/.tox/py310-chmain-redis45/lib/python3.10/site-packages/redis/asyncio/client.py", line 784, in _execute
    return await conn.retry.call_with_retry(
  File "channels_redis/.tox/py310-chmain-redis45/lib/python3.10/site-packages/redis/asyncio/retry.py", line 59, in call_with_retry
    return await do()
  File "channels_redis/.tox/py310-chmain-redis45/lib/python3.10/site-packages/redis/asyncio/client.py", line 785, in 
    lambda: command(*args, **kwargs),
TypeError: SentinelManagedConnection.read_response() got an unexpected keyword argument 'disconnect_on_error'

This should solve #348 and #366.

Copy link
Member

@carltongibson carltongibson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks nice. Thanks! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants