@@ -52,7 +52,11 @@ function cleanup() {
52
52
# If we're in CI, we want to slow down execution
53
53
# to give CPU some time to rest, so we don't time out
54
54
function ci_check() {
55
- :
55
+ if [[ " $FLUVIO_MODE " == " local" ]]; then
56
+ sleep $CI_SLEEP
57
+ else
58
+ :
59
+ fi
56
60
}
57
61
58
62
# This function is intended to be run second after the Stable-1 validation
@@ -104,6 +108,7 @@ function validate_cluster_stable() {
104
108
# https://github.com/infinyon/fluvio/issues/1819
105
109
echo " Validate consume on \" ${STABLE_TOPIC} \" before producing"
106
110
$STABLE_FLUVIO consume -B -d ${STABLE_TOPIC} 2> /dev/null
111
+ ci_check;
107
112
108
113
echo " Producing test data to ${STABLE_TOPIC} "
109
114
cat data1.txt.tmp | $STABLE_FLUVIO produce ${STABLE_TOPIC}
@@ -128,6 +133,7 @@ function validate_cluster_stable() {
128
133
129
134
130
135
$STABLE_FLUVIO partition list
136
+ ci_check;
131
137
132
138
}
133
139
@@ -151,7 +157,7 @@ function validate_upgrade_cluster_to_prerelease() {
151
157
~ /.fvm/bin/fvm install latest | tee /tmp/installer.output
152
158
# expectd output fvm current => 0.11.0-dev-1+hash (latest)
153
159
DEV_VERSION=$( ~/.fvm/bin/fvm current | awk ' {print $1}' )
154
- TARGET_VERSION=${PRERELEASE : 0: ${# PRERELEASE } -41}
160
+ TARGET_VERSION=${DEV_VERSION : 0: ${# DEV_VERSION } -41}
155
161
156
162
echo " Installed CLI version ${DEV_VERSION} "
157
163
echo " Upgrading cluster to ${DEV_VERSION} "
@@ -172,17 +178,18 @@ function validate_upgrade_cluster_to_prerelease() {
172
178
fi
173
179
if [[ " $FLUVIO_MODE " == " local" ]]; then
174
180
echo " Resuming local cluster"
175
- sleep 5
176
181
$FLUVIO_BIN_ABS_PATH cluster resume
177
182
fi
178
183
popd
179
184
185
+ ci_check;
180
186
181
187
# Validate that the development version output matches the expected version from installer output
182
188
$FLUVIO_BIN_ABS_PATH version
183
189
validate_cli_version $FLUVIO_BIN_ABS_PATH $TARGET_VERSION
184
190
validate_platform_version $FLUVIO_BIN_ABS_PATH $TARGET_VERSION
185
191
192
+ ci_check;
186
193
187
194
echo " Create test topic: ${PRERELEASE_TOPIC} "
188
195
$FLUVIO_BIN_ABS_PATH topic create ${PRERELEASE_TOPIC}
@@ -324,6 +331,8 @@ function main() {
324
331
echo " Update cluster to stable v${STABLE} . Create and validate data."
325
332
validate_cluster_stable;
326
333
334
+ ci_check;
335
+
327
336
echo " Update cluster to prerelease v${PRERELEASE} "
328
337
validate_upgrade_cluster_to_prerelease;
329
338
0 commit comments