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

Version 5.1.0b7 #22

Merged
merged 5 commits into from
Jun 24, 2024
Merged

Version 5.1.0b7 #22

merged 5 commits into from
Jun 24, 2024

Conversation

aiven-sal
Copy link
Member

Merge changes from redis-py for v5.1.0b7

gerzse and others added 5 commits June 21, 2024 17:07
Parse lists in the response of INFO, and even lines where list items are
mixed with key=value items, in which case the overall structure will be
a dict, and the items without value get `True` as their value.

Signed-off-by: Salvatore Mesoraca <salvatore.mesoraca@aiven.io>
Make the parsing of XINFO STREAM response more resilient, by
handling the case when first and last entries are None after XTRIM.

Improve the parsing of consumers related info.

Signed-off-by: Salvatore Mesoraca <salvatore.mesoraca@aiven.io>
The CI tests were not running with RESP3 protocol, it was just an
illusion that they do. Fix this, and also preserve coverage and test
artifacts from those runs too.

Some issues have surfaced after the change.

The most notable issue is a bug in hiredis-py, which prevents it
from being used in cluster mode at least. Make sure cluster tests do
not run with hiredis-py. Also make sure some specific unit tests do
not run with hiredis-py.

One other issue with hiredis-py is fixed in this commit. Use a
sentinel object instance to signal lack of data in hiredis-py, instead
of piggybacking of `False`, which can also be returned by parsing
valid RESP payloads.

Some of the unit tests, mostly for modules, were failing, they are now
updated so that they pass.

Remove async parser from test fixture params. Leave the decision for
the async parser to be used in tests to be taken based on the availability
of hiredis-py, and on the protocol that is set for the tests. Otherwise
when hiredis-py is available we would also run the non-hiredis tests.

Signed-off-by: Salvatore Mesoraca <salvatore.mesoraca@aiven.io>
Try to not restrict the versions of pytest dependencies, see if we can
get rid of the segmentation faults that we see pretty often in the CI.

Take the opportunity to sort the dev_requirements.txt file.

Signed-off-by: Salvatore Mesoraca <salvatore.mesoraca@aiven.io>
Signed-off-by: Salvatore Mesoraca <salvatore.mesoraca@aiven.io>
Copy link
Collaborator

@mkmkme mkmkme left a comment

Choose a reason for hiding this comment

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

Looks good

@aiven-sal aiven-sal merged commit d116aa6 into main Jun 24, 2024
46 checks passed
@aiven-sal aiven-sal deleted the aiven-sal/changes_for_b7 branch June 24, 2024 09:40
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.

4 participants