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

Unblock redis>=4.0.2 (#542, #570) #576

Merged

Conversation

hartwork
Copy link
Contributor

@hartwork hartwork commented Dec 3, 2021

Fixes #542

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

@hartwork hartwork force-pushed the issue-542-fix-redis-py-dependency branch from dbbc1db to 5cd31d2 Compare December 3, 2021 15:24
@hartwork
Copy link
Contributor Author

hartwork commented Dec 8, 2021

Any thoughts?

@WisdomPill
Copy link
Member

Sorry I away from my laptop, will have a look at it by the end of weekend

@codecov
Copy link

codecov bot commented Dec 8, 2021

Codecov Report

Merging #576 (00e0d13) into master (c7c3ab3) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #576   +/-   ##
======================================
  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 c7c3ab3...00e0d13. Read the comment docs.

@hartwork hartwork force-pushed the issue-542-fix-redis-py-dependency branch from 5cd31d2 to 685447a Compare December 9, 2021 00:13
…, 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.
@hartwork hartwork force-pushed the issue-542-fix-redis-py-dependency branch from 685447a to 00e0d13 Compare December 9, 2021 00:50
@hartwork
Copy link
Contributor Author

hartwork commented Dec 9, 2021

@WisdomPill thanks!

@WisdomPill
Copy link
Member

It is okay for me, but now I have some doubts about the matrix strategy, I think we should test with specific versions of redis-py and maybe also specific versions of redis server.

By the way there is a comment in the ci action which should be uncommented, like here.

@terencehonles what do you think?

@terencehonles
Copy link
Contributor

terencehonles commented Dec 13, 2021

@WisdomPill I pushed the commit from this PR to #575 because I both have permission to push to that branch, but also it is the older branch. The change seems fine to me, but I will not have a chance to test it for a few days because I'm flying now and will likely be busy for a bit. I don't know why this should be an issue since this should return the previous functionality back to how it was before. I do think there are some issues with the connection pools Redis configures since now there is both a sentinel pool and a redis pool, but that should have already been an issue previously and this change should likely be sufficient until we have a more pressing need to allow independent connection pool configuration.

@WisdomPill
Copy link
Member

Okay, let's finish this on #575 then, but I see that there is an issue with packaging and there is already an issue open in redis/redis-py#1784 about it, so I guess we can wait to see what happens, by the way @hartwork is already involved in that conversation.

@WisdomPill WisdomPill closed this Dec 13, 2021
@hartwork
Copy link
Contributor Author

By the way there is a comment in the ci action which should be uncommented, like here.

@WisdomPill I had to keep those commented because redis-py master is broken in that regard, which I know you know by now. While I personally like the idea of becoming aware of future issues early, unless the CI gets an "accept failure" flag for those moving targets, moving targets are by design a problem to CI stability and reproducibility, so maybe not testing against redis-py master is in the interest of everyone working on pull requests around, for now.

@WisdomPill
Copy link
Member

I see your point, but I think keeping master on the CI and ignoring it when there are known issues is vital,
especially for the people maintaining those libraries,
in our case if we did not know that redis-py 4 was breaking sentinel support then our users would have discovered it in a painful way.
I see it as our duty to inform maintainers of libraries we use that the next version has something wrong that should be addressed before releasing on our or their side.
Even if it breaks and stays broken for sometime, we can always remove it and restore it.

@hartwork
Copy link
Contributor Author

I see your point, but I think keeping master on the CI and ignoring it when there are known issues is vital, especially for the people maintaining those libraries

Yes, but as long as any single CI task fails the whole thing will marked as failed and then people learn that CI is often red and always needs extra checking.

I see it as our duty to inform maintainers of libraries we use that the next version has something wrong that should be addressed before releasing on our or their side. Even if it breaks and stays broken for sometime, we can always remove it and restore it.

I see your point, but personally I think waiting for future breakage and bug reports and a fully green CI is more healthy. I guess it's okay that we disagree on that, it's just my 2 cents.

@hartwork hartwork mentioned this pull request Dec 13, 2021
@WisdomPill WisdomPill reopened this Dec 13, 2021
@WisdomPill WisdomPill merged commit a4b4064 into jazzband:master Dec 13, 2021
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.

Sentinel commands have migrated in redis main
3 participants