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

Add Valkey support to the build and to the compatibility test in CI #210

Merged
merged 4 commits into from
Apr 16, 2024

Conversation

bjosv
Copy link
Collaborator

@bjosv bjosv commented Apr 11, 2024

Adds the CMake option TEST_WITH_VALKEY_VERSION to enable make start to setup Valkey clusters instead of Redis.
The default behavior, when the option is not set, is to run tests with Redis, but a given Valkey version takes precedence.

(Note: There is already an option to specify a Redis version TEST_WITH_REDIS_VERSION and Redis 6.2.1 is the default.)

Example usage:

mkdir build && cd build
cmake -DTEST_WITH_VALKEY_VERSION=7.2.5 ..

make start   # Start valkey clusters 
make test    # Tests run on valkey clusters
make stop    # Stop valkey clusters

Additionallty adds Valkey 7.2.5 to the compatibility test in CI.

@zuiderkwast
Copy link
Collaborator

Shall we leave this open until the next release candidate, or the actual release, is out?

@bjosv
Copy link
Collaborator Author

bjosv commented Apr 11, 2024

I guess you know best how far away an actual release is, and I've seen talks about possibly changing which patch-version to use.
The only benefit to merge it before could be to get the script in place to tryout more, and locally run towards unstable now and then..

@zuiderkwast
Copy link
Collaborator

ok, do as you want.

the release is within a week.

bjosv added 4 commits April 16, 2024 17:21
Adds the CMake option TEST_WITH_VALKEY_VERSION to enable `make start`
to setup a Valkey Cluster. The default behaviour, when the option is not set,
is to run tests with Redis. A given Valkey version takes precedence.

Example usage:
 mkdir build && cd build
 cmake -DTEST_WITH_VALKEY_VERSION=7.2.5 ..
 make start
 make test
 make stop
@bjosv bjosv force-pushed the add-valkey-to-ci branch from aebc6e7 to a92eae5 Compare April 16, 2024 15:47
@bjosv
Copy link
Collaborator Author

bjosv commented Apr 16, 2024

Updated to run on the first stable release of Valkey 7.2.5.

@bjosv bjosv merged commit 0cb09dd into Nordix:master Apr 16, 2024
34 checks passed
@bjosv bjosv deleted the add-valkey-to-ci branch April 16, 2024 20:45
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.

2 participants