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

pin redis-py to 3.x until 4.x breaking changes can be addressed #570

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

terencehonles
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Nov 8, 2021

Codecov Report

Merging #570 (46b2f37) into master (7a2a377) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #570   +/-   ##
======================================
  Coverage    57.7%   57.7%           
======================================
  Files          39      39           
  Lines        2497    2497           
  Branches       63      63           
======================================
  Hits         1440    1440           
  Misses       1049    1049           
  Partials        8       8           
Flag Coverage Δ
mypy 33.8% <ø> (ø)
tests 83.3% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7a2a377...46b2f37. Read the comment docs.

@WisdomPill
Copy link
Member

LGTM

@WisdomPill
Copy link
Member

Is it possibile to not check for coverage on tests directory but only check types in tests directory?

@terencehonles
Copy link
Contributor Author

Is it possibile to not check for coverage on tests directory but only check types in tests directory?

Is that why it's codecov is complaining? I figured it was not enough typing over there. Let me look at the config.

@terencehonles
Copy link
Contributor Author

It should be excluding the tests:

django-redis/setup.cfg

Lines 46 to 49 in 9cd2bbe

[coverage:run]
omit =
# tests
tests/*,

@terencehonles
Copy link
Contributor Author

I think what you're seeing is that Mypy is complaining about any Any which the codebase has a lot since anything that's not defined is an Any.

@terencehonles terencehonles merged commit ef945d6 into jazzband:master Nov 8, 2021
@terencehonles terencehonles deleted the pin-redis-py branch November 8, 2021 13:21
@jacklinke
Copy link
Member

Is there a description of the problem or an associated issue that details what issues django-redis has with redis-py 4?

@terencehonles
Copy link
Contributor Author

@jacklinke right now what's known is #542. I had created #569 which may have been more clear, but it was closed as a dup of #542.

I understand the problem, but haven't had time to adjust the code. It does seem like it will be a "decent" amount of work because redis 4 separates sentinel and non sentinel connection pools a bit more. This is probably a good thing since you can configure the connection settings more independently, but not how I had written #460 and the code will need a little re-work. After that we would need to look for any other breaking changes and make sure we have sufficient test coverage to make sure expectations continue to be met regardless if breaking changes are documented or not.

@WisdomPill
Copy link
Member

WisdomPill commented Dec 1, 2021

@terencehonles regarding tests,
lately I have been contributing a little to redis-py and I saw how they are using tox with docker for setting up the environment.
I find it very clean and elegant since you just need docker running and the test suite will take care of the rest.

Would you mind taking a look and get back to me?
I would like to have something similar in the future for django-redis as well

@terencehonles
Copy link
Contributor Author

@WisdomPill do you mind creating a separate issue to discuss and research that? We probably don't need to keep bumping this thread with relation to a change like that.

hartwork added a commit to hartwork/django-redis that referenced this pull request Dec 3, 2021
Upstream commit redis/redis-py@d2b2333
that is included with redis-py >=4.0.2 adds method Redis.sentinel_masters
by making class Redis inherit from SentinelCommands, where the related code resides.

Related to issue jazzband#542, follow-up to pull request jazzband#570
hartwork added a commit to hartwork/django-redis that referenced this pull request Dec 3, 2021
hartwork added a commit to hartwork/django-redis that referenced this pull request Dec 3, 2021
Upstream commit redis/redis-py@d2b2333
that is included with redis-py >=4.0.2 adds method Redis.sentinel_masters
by making class Redis inherit from SentinelCommands, where the related code resides.

Related to issue jazzband#542, follow-up to pull request jazzband#570
@maarcingebala maarcingebala mentioned this pull request Dec 6, 2021
11 tasks
hartwork added a commit to hartwork/django-redis that referenced this pull request Dec 9, 2021
Upstream commit redis/redis-py@d2b2333
that is included with redis-py >=4.0.2 adds method Redis.sentinel_masters
by making class Redis inherit from SentinelCommands, where the related code resides.

Related to issue jazzband#542, follow-up to pull request jazzband#570
hartwork added a commit to hartwork/django-redis that referenced this pull request Dec 9, 2021
…, jazzband#570)

Upstream commit redis/redis-py@d2b2333
that is included with redis-py >=4.0.2 adds method Redis.sentinel_masters
by making class Redis inherit from SentinelCommands, where the related code resides.

Related to issue jazzband#542, follow-up to pull request jazzband#570
This reverts (parts of) commit ef945d6.
terencehonles pushed a commit to WisdomPill/django-redis that referenced this pull request Dec 13, 2021
…, jazzband#570)

Upstream commit redis/redis-py@d2b2333
that is included with redis-py >=4.0.2 adds method Redis.sentinel_masters
by making class Redis inherit from SentinelCommands, where the related code resides.

Related to issue jazzband#542, follow-up to pull request jazzband#570
This reverts (parts of) commit ef945d6.
WisdomPill pushed a commit that referenced this pull request Dec 13, 2021
#576)

Upstream commit redis/redis-py@d2b2333
that is included with redis-py >=4.0.2 adds method Redis.sentinel_masters
by making class Redis inherit from SentinelCommands, where the related code resides.

Related to issue #542, follow-up to pull request #570
This reverts (parts of) commit ef945d6.
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.

3 participants