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

Fixes for valkey 8.0 #124

Merged
merged 3 commits into from
Nov 25, 2024
Merged

Fixes for valkey 8.0 #124

merged 3 commits into from
Nov 25, 2024

Conversation

mkmkme
Copy link
Collaborator

@mkmkme mkmkme commented Nov 25, 2024

Pull Request check-list

  • Do tests and lints pass with this change?
  • Do the CI tests pass with this change (enable it first in your forked repo and wait for the github action build to finish)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Is there an example added to the examples folder (if applicable)?

Description of change

This PR should fix the tests that started failing when running with Valkey 8.0

Behaviour of READONLY was changed in
valkey-io/valkey#325 which became a part of
8.0.0. This caused test_readonly_invalid_cluster_state to fail.

This commit takes into account this change.

Signed-off-by: Mikhail Koviazin <[email protected]>
Hash commands are part of proprietary module that Valkey does not
implement for now. Mark them for skipping just like JSON and search.

Signed-off-by: Mikhail Koviazin <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Nov 25, 2024

Codecov Report

Attention: Patch coverage is 85.18519% with 4 lines in your changes missing coverage. Please review.

Project coverage is 75.29%. Comparing base (3f6a575) to head (486a7b7).

Files with missing lines Patch % Lines
tests/test_asyncio/test_commands.py 71.42% 2 Missing ⚠️
tests/test_commands.py 85.71% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #124      +/-   ##
==========================================
+ Coverage   75.17%   75.29%   +0.11%     
==========================================
  Files         132      132              
  Lines       34480    34496      +16     
==========================================
+ Hits        25921    25974      +53     
+ Misses       8559     8522      -37     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@mkmkme mkmkme marked this pull request as draft November 25, 2024 11:21
Previously the test relied on the amount of clients that are currently
connected to the server. This is not robust as this can be affected by
the outside or a bad timing. This caused quite a lot of test case
failures.
The proper way to handle this is:
* Create a client and assign a distinguishable name to it
* Verify it's in `CLIENT LIST`
* Sleep for enough time for it to be killed by maxage we provide
* Verify it's not anymore in `CLIENT LIST`

This commit does exactly that.

Signed-off-by: Mikhail Koviazin <[email protected]>
@mkmkme mkmkme marked this pull request as ready for review November 25, 2024 14:58
@aiven-sal aiven-sal merged commit 65d717a into main Nov 25, 2024
85 checks passed
@aiven-sal aiven-sal deleted the mkmkme/valkey-8-fixes branch November 25, 2024 15:03
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