Skip to content

Commit 739f061

Browse files
authored
Add cached run into testing of migrations (#3199)
* add cache into testing * add cache into testing
1 parent 865a441 commit 739f061

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/test-migrations.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,10 @@ function run_tests_for_version() {
141141
# Check if the version supports templates with arguments (> 0.52.0)
142142
if [ "$(version_compare "$VERSION" "0.52.0")" == ">" ]; then
143143
python3 run.py --feature-pipeline --training-pipeline --no-cache
144+
python3 run.py --feature-pipeline --training-pipeline # run with cache
144145
else
145146
python3 run.py --no-cache
147+
python3 run.py # run with cache
146148
fi
147149
# Add additional CLI tests here
148150
zenml version
@@ -177,6 +179,7 @@ function run_tests_for_version() {
177179
# Run the pipeline again to check if the restored database is working
178180
echo "===== Running starter template pipeline after DB restore (file dump) ====="
179181
python3 run.py --feature-pipeline --training-pipeline --no-cache
182+
python3 run.py --feature-pipeline --training-pipeline # run with cache
180183

181184
# For a mysql compatible database, perform a DB backup and restore using
182185
# the backup database
@@ -204,6 +207,7 @@ function run_tests_for_version() {
204207
# Run the pipeline again to check if the restored database is working
205208
echo "===== Running starter template pipeline after DB restore (backup database) ====="
206209
python3 run.py --feature-pipeline --training-pipeline --no-cache
210+
python3 run.py --feature-pipeline --training-pipeline # run with cache
207211
fi
208212

209213
else

0 commit comments

Comments
 (0)