4141 max-parallel : 4
4242 matrix :
4343 redis :
44- - ' 7.0.5 '
45- - ' 6.2.7 '
44+ - ' 7.0'
45+ - ' 6.2'
4646 ruby :
4747 - ' 3.2'
4848 driver :
8383 fail-fast : false
8484 matrix :
8585 include :
86- - {redis: '7.0.5 ', ruby: '3.2', compose: compose.replica.yaml, replica: 2}
87- - {redis: '5.0.14 ', ruby: '2.7', compose: compose.yaml, replica: 1}
86+ - {redis: '7.0', ruby: '3.2', compose: compose.replica.yaml, replica: 2}
87+ - {redis: '5.0', ruby: '2.7', compose: compose.yaml, replica: 1}
8888 env :
8989 REDIS_VERSION : ${{ matrix.redis }}
9090 DOCKER_COMPOSE_FILE : ${{ matrix.compose }}
@@ -117,12 +117,12 @@ jobs:
117117 fail-fast : false
118118 matrix :
119119 include :
120- - {redis: '7.0.5 ', task: state, compose: compose.replica.yaml, replica: 2, restart: always}
121- - {redis: '6.2.7 ', task: state, compose: compose.replica.yaml, replica: 2, restart: always}
122- - {redis: '7.0.5 ', task: broken, compose: compose.yaml, replica: 1, restart: 'no'}
123- - {redis: '6.2.7 ', task: broken, compose: compose.yaml, replica: 1, restart: 'no'}
124- - {redis: '7.0.5 ', task: scale, compose: compose.scale.yaml, replica: 1, restart: always}
125- - {redis: '6.2.7 ', task: scale, compose: compose.scale.yaml, replica: 1, restart: always}
120+ - {redis: '7.0', task: state, compose: compose.replica.yaml, replica: 2, restart: always}
121+ - {redis: '6.2', task: state, compose: compose.replica.yaml, replica: 2, restart: always}
122+ - {redis: '7.0', task: broken, compose: compose.yaml, replica: 1, restart: 'no'}
123+ - {redis: '6.2', task: broken, compose: compose.yaml, replica: 1, restart: 'no'}
124+ - {redis: '7.0', task: scale, compose: compose.scale.yaml, replica: 1, restart: always}
125+ - {redis: '6.2', task: scale, compose: compose.scale.yaml, replica: 1, restart: always}
126126 env :
127127 REDIS_VERSION : ${{ matrix.redis }}
128128 DOCKER_COMPOSE_FILE : ${{ matrix.compose }}
@@ -153,7 +153,7 @@ jobs:
153153 timeout-minutes : 15
154154 runs-on : ubuntu-latest
155155 env :
156- REDIS_VERSION : ' 7.0.5 '
156+ REDIS_VERSION : ' 7.0'
157157 DOCKER_COMPOSE_FILE : ' compose.nat.yaml'
158158 steps :
159159 - name : Check out code
@@ -175,7 +175,7 @@ jobs:
175175 HOST_ADDR : ${{ env.HOST_IP_ADDR }}
176176 - name : Wait for nodes to be ready
177177 run : |
178- node_cnt=$(docker compose -f $DOCKER_COMPOSE_FILE ps | awk '{print $3}' | tail -n +2 | wc -l)
178+ node_cnt=$(docker compose -f $DOCKER_COMPOSE_FILE ps | tail -n +2 | wc -l)
179179 i=0
180180 while :
181181 do
@@ -184,7 +184,7 @@ jobs:
184184 echo "Max attempts exceeded: $i times"
185185 exit 1
186186 fi
187- healthy_cnt=$(docker compose -f $DOCKER_COMPOSE_FILE ps | awk '{print $5}' | (grep '( healthy)' || true) | wc -l)
187+ healthy_cnt=$(docker compose -f $DOCKER_COMPOSE_FILE ps --format json | jq .[].Status | (grep healthy || true) | wc -l)
188188 if [[ $healthy_cnt -eq $node_cnt ]]
189189 then
190190 break
@@ -211,7 +211,7 @@ jobs:
211211 timeout-minutes : 15
212212 runs-on : ubuntu-latest
213213 env :
214- REDIS_VERSION : ' 7.0.5 '
214+ REDIS_VERSION : ' 7.0'
215215 DOCKER_COMPOSE_FILE : ' compose.latency.yaml'
216216 REDIS_REPLICA_SIZE : ' 2'
217217 REDIS_CLIENT_MAX_THREADS : ' 5'
@@ -278,7 +278,7 @@ jobs:
278278 - excessive_pipelining
279279 - pipelining_in_moderation
280280 env :
281- REDIS_VERSION : ' 7.0.5 '
281+ REDIS_VERSION : ' 7.0'
282282 DOCKER_COMPOSE_FILE : ' compose.yaml'
283283 steps :
284284 - name : Check out code
0 commit comments