-
Notifications
You must be signed in to change notification settings - Fork 65
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
CI: Add Support for Valkey 6.2, 7.0 and 7.2 #1711
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
0546b9b
CI: Adding support in Valkey
barshaul 6501b18
Add Valkey support for all wrappers
barshaul 8614ff5
Fix MacOS, move matricecs into a seperate folder
barshaul b93d7d5
Fixed C# GetRedisVersion
barshaul ddb357b
Fixed Java extractRedisVersion
barshaul b46e700
Skip redis installation via package manager option
barshaul 00913fb
Moved all engine versions to be built from valkey, added valkey/redis…
barshaul 99ae1d5
Support non valkey releases
barshaul 4d3bf38
New comparison scfript
barshaul 2182abc
remove prev check
barshaul ec38065
some fixes
barshaul 9b64f7d
Some fixes
barshaul ecf8fb5
Removed 6.0
barshaul 76789ff
Move Install Valkey into the shared dependencies
barshaul 7a438a1
Removed redis installation
barshaul 1b076c4
Added missings
barshaul b5d8211
Some fixes
barshaul 7d47ee4
Added libressl-dev to musl installation
barshaul 7c8bb8d
Removing redis-7.2.4 version
barshaul 1395739
Change documentation
barshaul c0e517a
Fixed Java
barshaul b370a58
Fixed Java quicklist test
barshaul 573d357
Added install-valkey path to all actions, try to fix alpine on npm CD
barshaul 3cb0ce6
Added documentation, addressing PR comments
barshaul dc87537
clean valkey repo before cloning it
barshaul a29be70
Removed all symlink specific checks
barshaul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"type": "valkey", | ||
"version": "7.2.5" | ||
}, | ||
{ | ||
"type": "valkey", | ||
"version": "redis-7.0.15" | ||
}, | ||
{ | ||
"type": "valkey", | ||
"version": "redis-6.2.14" | ||
} | ||
] | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Install Valkey | ||
|
||
inputs: | ||
engine-version: | ||
description: "Engine version to install" | ||
required: true | ||
type: string | ||
target: | ||
description: "Specified target toolchain, ex. x86_64-unknown-linux-gnu" | ||
type: string | ||
required: true | ||
options: | ||
- x86_64-unknown-linux-gnu | ||
- aarch64-unknown-linux-gnu | ||
- x86_64-apple-darwin | ||
- aarch64-apple-darwin | ||
- aarch64-unknown-linux-musl | ||
- x86_64-unknown-linux-musl | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
VALKEY_MIN_VERSION: "7.2.5" | ||
|
||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
- name: Cache Valkey | ||
# TODO: remove the musl ARM64 limitation when https://github.com/actions/runner/issues/801 is resolved | ||
if: ${{ inputs.target != 'aarch64-unknown-linux-musl' }} | ||
uses: actions/cache@v4 | ||
id: cache-valkey | ||
with: | ||
path: | | ||
~/valkey | ||
key: valkey-${{ inputs.engine-version }}-${{ inputs.target }} | ||
|
||
- name: Build Valkey | ||
if: ${{ steps.cache-valkey.outputs.cache-hit != 'true' }} | ||
shell: bash | ||
run: | | ||
echo "Building valkey ${{ inputs.engine-version }}" | ||
cd ~ | ||
rm -rf valkey | ||
git clone https://github.com/valkey-io/valkey.git | ||
cd valkey | ||
git checkout ${{ inputs.engine-version }} | ||
make BUILD_TLS=yes | ||
|
||
- name: Install Valkey | ||
shell: bash | ||
run: | | ||
cd ~/valkey | ||
if command -v sudo &> /dev/null | ||
then | ||
echo "sudo command exists" | ||
sudo make install | ||
else | ||
echo "sudo command does not exist" | ||
make install | ||
fi | ||
echo 'export PATH=/usr/local/bin:$PATH' >>~/.bash_profile | ||
|
||
- name: Verify Valkey installation and symlinks | ||
shell: bash | ||
run: | | ||
# In Valkey releases, the engine is built with symlinks from valkey-server and valkey-cli | ||
# to redis-server and redis-cli. This step ensures that the engine is properly installed | ||
# with the expected version and that Valkey symlinks are correctly created. | ||
EXPECTED_VERSION=`echo ${{ inputs.engine-version }} | sed -e "s/^redis-//"` | ||
INSTALLED_VER=$(redis-server -v) | ||
if [[ $INSTALLED_VER != *"${EXPECTED_VERSION}"* ]]; then | ||
echo "Wrong version has been installed. Expected: $EXPECTED_VERSION, Installed: $INSTALLED_VER" | ||
exit 1 | ||
else | ||
echo "Successfully installed the server: $INSTALLED_VER" | ||
fi | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it not worth adding 6.0? is there something special about 6.2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding 6.0 breaks a lot of our tests due to API incompatibilities. We will do it in a different PR - pre or post GA wasn't decided yet.