Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cached run into testing of migrations #3199

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/test-migrations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,10 @@ function run_tests_for_version() {
# Check if the version supports templates with arguments (> 0.52.0)
if [ "$(version_compare "$VERSION" "0.52.0")" == ">" ]; then
python3 run.py --feature-pipeline --training-pipeline --no-cache
python3 run.py --feature-pipeline --training-pipeline # run with cache
else
python3 run.py --no-cache
python3 run.py # run with cache
fi
# Add additional CLI tests here
zenml version
Expand Down Expand Up @@ -177,6 +179,7 @@ function run_tests_for_version() {
# Run the pipeline again to check if the restored database is working
echo "===== Running starter template pipeline after DB restore (file dump) ====="
python3 run.py --feature-pipeline --training-pipeline --no-cache
python3 run.py --feature-pipeline --training-pipeline # run with cache

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

else
Expand Down
Loading