Added optional CELL_SIZE argument for CMS.INITBYDIM and CMS.INITBYPROB (#1729)

This commit is contained in:
Vladyslav Vildanov
2026-09-29 21:31:27 +03:00
committed by GitHub
parent 35019cf292
commit 4082600075
13 changed files with 269 additions and 28 deletions
+1 -1
View File
@@ -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"
+10 -4
View File
@@ -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