mirror of
https://github.com/predis/predis.git
synced 2026-10-04 19:08:31 +00:00
Added optional CELL_SIZE argument for CMS.INITBYDIM and CMS.INITBYPROB (#1729)
This commit is contained in:
committed by
GitHub
parent
35019cf292
commit
4082600075
@@ -71,7 +71,7 @@ services:
|
||||
- TLS_CLIENT_CNS=test_user
|
||||
- PORT=6372
|
||||
- TLS_PORT=27379
|
||||
command: ${REDIS_EXTRA_ARGS:---enable-debug-command yes --enable-module-command yes --tls-auth-clients optional --save "" --requirepass "foobar"}
|
||||
command: ${REDIS_EXTRA_ARGS:---enable-debug-command yes --enable-module-command yes --tls-auth-clients optional --save "" --requirepass "foobar"} ${REDIS_CLUSTER_EXTRA_ARGS:-}
|
||||
ports:
|
||||
- "6372-6377:6372-6377"
|
||||
- "27379-27384:27379-27384"
|
||||
|
||||
@@ -35,10 +35,7 @@ jobs:
|
||||
- '7.2'
|
||||
- '7.4'
|
||||
- '8.2'
|
||||
- '8.4'
|
||||
- '8.6'
|
||||
- '8.8'
|
||||
- '8.10'
|
||||
- '8.12'
|
||||
|
||||
steps:
|
||||
|
||||
@@ -46,6 +43,7 @@ jobs:
|
||||
run: |
|
||||
# Mapping of original redis versions to client test containers
|
||||
declare -A redis_clients_version_mapping=(
|
||||
["8.12"]="unstable-35791556614-debian"
|
||||
["8.10"]="8.10.0"
|
||||
["8.8"]="8.8.0"
|
||||
["8.6"]="8.6.1"
|
||||
@@ -67,6 +65,7 @@ jobs:
|
||||
echo "DOCKER_SERVICE=redis-clients" >> $GITHUB_ENV
|
||||
|
||||
redis_major_version=$(echo "${{ matrix.redis }}" | grep -oP '^\d+')
|
||||
redis_minor_version=$(echo "${{ matrix.redis }}" | grep -oP '(?<=\.)\d+')
|
||||
|
||||
# Some configuration options available since Redis > 7
|
||||
if (( redis_major_version < 7 )); then
|
||||
@@ -76,6 +75,13 @@ jobs:
|
||||
echo "REDIS_STACK_SERVER_PORT=6379" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
# Since 8.12, cluster-bus-port-protected-mode defaults to yes, which
|
||||
# aborts cluster startup unless explicitly disabled or tls-cluster
|
||||
# is enabled.
|
||||
if (( redis_major_version > 8 || (redis_major_version == 8 && redis_minor_version >= 12) )); then
|
||||
echo "REDIS_CLUSTER_EXTRA_ARGS=--cluster-bus-port-protected-mode no" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
else
|
||||
echo "REDIS_IMAGE_NAME=redis:${{ matrix.redis }}" >> $GITHUB_ENV
|
||||
echo "DOCKER_SERVICE=redis-official" >> $GITHUB_ENV
|
||||
|
||||
Reference in New Issue
Block a user