Skip to content

Commit 2d54da2

Browse files
authored
ci: configure REDIS_CLIENT_MAX_STARTUP_SAMPLE for flaky test cases (#245)
1 parent f2f1772 commit 2d54da2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/test.yaml

+8-6
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,19 @@ jobs:
3838
- {redis: '5.0', ruby: '2.7'}
3939
- {ruby: 'jruby'}
4040
- {ruby: 'truffleruby'}
41-
- {task: test_cluster_state, redis: '7.0', replica: '2', compose: compose.replica.yaml}
42-
- {task: test_cluster_state, redis: '6.2', replica: '2', compose: compose.replica.yaml}
43-
- {task: test_cluster_broken, redis: '7.0', restart: 'no'}
44-
- {task: test_cluster_broken, redis: '6.2', restart: 'no'}
45-
- {task: test_cluster_scale, redis: '7.0', compose: compose.scale.yaml}
46-
- {task: test_cluster_scale, redis: '6.2', compose: compose.scale.yaml}
41+
- {task: test_cluster_state, redis: '7.0', replica: '2', compose: compose.replica.yaml, startup: '9'}
42+
- {task: test_cluster_state, redis: '6.2', replica: '2', compose: compose.replica.yaml, startup: '9'}
43+
- {task: test_cluster_broken, redis: '7.0', restart: 'no', startup: '6'}
44+
- {task: test_cluster_broken, redis: '6.2', restart: 'no', startup: '6'}
45+
- {task: test_cluster_scale, redis: '7.0', compose: compose.scale.yaml, startup: '8'}
46+
- {task: test_cluster_scale, redis: '6.2', compose: compose.scale.yaml, startup: '8'}
4747
env:
4848
REDIS_VERSION: ${{ matrix.redis || '7.0' }}
4949
DOCKER_COMPOSE_FILE: ${{ matrix.compose || 'compose.yaml' }}
5050
REDIS_CONNECTION_DRIVER: ${{ matrix.driver || 'ruby' }}
5151
REDIS_REPLICA_SIZE: ${{ matrix.replica || '1' }}
5252
RESTART_POLICY: ${{ matrix.restart || 'always' }}
53+
REDIS_CLIENT_MAX_STARTUP_SAMPLE: ${{ matrix.startup || '3' }}
5354
steps:
5455
- name: Check out code
5556
uses: actions/checkout@v3
@@ -247,6 +248,7 @@ jobs:
247248
DOCKER_COMPOSE_FILE: 'compose.massive.yaml'
248249
REDIS_SHARD_SIZE: '10'
249250
REDIS_REPLICA_SIZE: '2'
251+
REDIS_CLIENT_MAX_STARTUP_SAMPLE: '5'
250252
steps:
251253
- name: Check out code
252254
uses: actions/checkout@v3

0 commit comments

Comments
 (0)