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

Types #1

Closed
wants to merge 39 commits into from
Closed

Types #1

wants to merge 39 commits into from

Conversation

Rafiot
Copy link
Owner

@Rafiot Rafiot commented Sep 11, 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

Rafiot and others added 28 commits December 3, 2024 10:57
Related valkey-io#84

Signed-off-by: Raphaël Vinot <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Signed-off-by: Salvatore Mesoraca <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
These lines were missing the `assert` keyword and hence were
meaningless.

Signed-off-by: Mikhail Koviazin <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
These tests were copied from the sync tests and adapted to use the async
client.

This commit fixes valkey-io#63

Signed-off-by: Mikhail Koviazin <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Signed-off-by: amirreza <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Signed-off-by: amirreza <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Signed-off-by: Salvatore Mesoraca <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Signed-off-by: ArtemIsmagilov <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Bumps [rojopolis/spellcheck-github-actions](https://github.com/rojopolis/spellcheck-github-actions) from 0.41.0 to 0.42.0.
- [Release notes](https://github.com/rojopolis/spellcheck-github-actions/releases)
- [Changelog](https://github.com/rojopolis/spellcheck-github-actions/blob/master/CHANGELOG.md)
- [Commits](rojopolis/spellcheck-github-actions@0.41.0...0.42.0)

---
updated-dependencies:
- dependency-name: rojopolis/spellcheck-github-actions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
…d doc

Signed-off-by: ArtemIsmagilov <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Signed-off-by: Salvatore Mesoraca <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Close valkey-io#111

Signed-off-by: Salvatore Mesoraca <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
This reverts commit 318019a.

Signed-off-by: Salvatore Mesoraca <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Signed-off-by: Salvatore Mesoraca <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
This reverts commit 318019a.

Signed-off-by: Salvatore Mesoraca <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Bumps [rojopolis/spellcheck-github-actions](https://github.com/rojopolis/spellcheck-github-actions) from 0.42.0 to 0.44.0.
- [Release notes](https://github.com/rojopolis/spellcheck-github-actions/releases)
- [Changelog](https://github.com/rojopolis/spellcheck-github-actions/blob/master/CHANGELOG.md)
- [Commits](rojopolis/spellcheck-github-actions@0.42.0...0.44.0)

---
updated-dependencies:
- dependency-name: rojopolis/spellcheck-github-actions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Fixes valkey-io#119

Signed-off-by: Saverio Proto <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
mkmkme and others added 11 commits December 3, 2024 11:01
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]>
Signed-off-by: Raphaël Vinot <[email protected]>
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]>
Signed-off-by: Raphaël Vinot <[email protected]>
Signed-off-by: Salvatore Mesoraca <[email protected]>
Signed-off-by: Mikhail Koviazin <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
In Python 3.13, `ssl.create_default_context()` added
`VERIFY_X509_STRICT` to the flags by default which caused the tests to
fail due to missing key usage. This commit adds it to the certificate
configuration and replaces the certificates with reconfigured ones.

Signed-off-by: Mikhail Koviazin <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
This commit adds support for minimum_ssl_version and maximum_ssl_version
to `_ValkeyTCPServer` in tests. Previously it was written with
`ssl.wrap_socket` in mind which only supported `ssl_version`.
`SSLContext` OTOH supports passing both minimum and maximum supported TLS
versions. This commit utilizes that.

Additionally, TLS version in test_tcp_ssl_version_mismatch was fixed.
It was broken since 7783e0b. This change was added there by mistake and
in fact didn't change anything for Python 3.12. Instead, it seems to
have hidden a bug that revealed itself with Python 3.13.

Signed-off-by: Mikhail Koviazin <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Signed-off-by: Salvatore Mesoraca <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Support for this commands may come in the future[1].
But it will take some time, so for now it's better
to drop them.

This is a breaking change for 6.1.

Close valkey-io#78

[1]: valkey-io/valkey#640

Signed-off-by: Salvatore Mesoraca <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v4...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Bumps [rojopolis/spellcheck-github-actions](https://github.com/rojopolis/spellcheck-github-actions) from 0.44.0 to 0.45.0.
- [Release notes](https://github.com/rojopolis/spellcheck-github-actions/releases)
- [Changelog](https://github.com/rojopolis/spellcheck-github-actions/blob/master/CHANGELOG.md)
- [Commits](rojopolis/spellcheck-github-actions@0.44.0...0.45.0)

---
updated-dependencies:
- dependency-name: rojopolis/spellcheck-github-actions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
Signed-off-by: Mikhail Koviazin <[email protected]>
Signed-off-by: Raphaël Vinot <[email protected]>
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.

6 participants