41
41
max-parallel : 4
42
42
matrix :
43
43
redis :
44
- - ' 7.0.5 '
45
- - ' 6.2.7 '
44
+ - ' 7.0'
45
+ - ' 6.2'
46
46
ruby :
47
47
- ' 3.2'
48
48
driver :
83
83
fail-fast : false
84
84
matrix :
85
85
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}
88
88
env :
89
89
REDIS_VERSION : ${{ matrix.redis }}
90
90
DOCKER_COMPOSE_FILE : ${{ matrix.compose }}
@@ -117,12 +117,12 @@ jobs:
117
117
fail-fast : false
118
118
matrix :
119
119
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}
126
126
env :
127
127
REDIS_VERSION : ${{ matrix.redis }}
128
128
DOCKER_COMPOSE_FILE : ${{ matrix.compose }}
@@ -153,7 +153,7 @@ jobs:
153
153
timeout-minutes : 15
154
154
runs-on : ubuntu-latest
155
155
env :
156
- REDIS_VERSION : ' 7.0.5 '
156
+ REDIS_VERSION : ' 7.0'
157
157
DOCKER_COMPOSE_FILE : ' compose.nat.yaml'
158
158
steps :
159
159
- name : Check out code
@@ -175,7 +175,7 @@ jobs:
175
175
HOST_ADDR : ${{ env.HOST_IP_ADDR }}
176
176
- name : Wait for nodes to be ready
177
177
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)
179
179
i=0
180
180
while :
181
181
do
@@ -184,7 +184,7 @@ jobs:
184
184
echo "Max attempts exceeded: $i times"
185
185
exit 1
186
186
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)
188
188
if [[ $healthy_cnt -eq $node_cnt ]]
189
189
then
190
190
break
@@ -211,7 +211,7 @@ jobs:
211
211
timeout-minutes : 15
212
212
runs-on : ubuntu-latest
213
213
env :
214
- REDIS_VERSION : ' 7.0.5 '
214
+ REDIS_VERSION : ' 7.0'
215
215
DOCKER_COMPOSE_FILE : ' compose.latency.yaml'
216
216
REDIS_REPLICA_SIZE : ' 2'
217
217
REDIS_CLIENT_MAX_THREADS : ' 5'
@@ -278,7 +278,7 @@ jobs:
278
278
- excessive_pipelining
279
279
- pipelining_in_moderation
280
280
env :
281
- REDIS_VERSION : ' 7.0.5 '
281
+ REDIS_VERSION : ' 7.0'
282
282
DOCKER_COMPOSE_FILE : ' compose.yaml'
283
283
steps :
284
284
- name : Check out code
0 commit comments