Skip to content

Commit c5f79c1

Browse files
committed
use new version's sushi in migration test
1 parent 7f14786 commit c5f79c1

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

.circleci/test_migration.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ TEST_DIR="$TMP_DIR/$EXAMPLE_NAME"
2424

2525
echo "Running migration test for '$EXAMPLE_NAME' in '$TEST_DIR' for example project '$EXAMPLE_DIR' using options '$SQLMESH_OPTS'"
2626

27+
# Copy the example project from the *current* checkout so it's stable across old/new SQLMesh versions
28+
cp -r "$EXAMPLE_DIR" "$TEST_DIR"
29+
2730
git checkout $LAST_TAG
2831

2932
# Install dependencies from the previous release.
3033
make install-dev
3134

32-
cp -r $EXAMPLE_DIR $TEST_DIR
33-
3435
# this is only needed temporarily until the released tag for $LAST_TAG includes this config
3536
if [ "$EXAMPLE_NAME" == "sushi_dbt" ]; then
3637
echo 'migration_test_config = sqlmesh_config(Path(__file__).parent, dbt_target_name="duckdb")' >> $TEST_DIR/config.py
@@ -53,4 +54,4 @@ make install-dev
5354
pushd $TEST_DIR
5455
sqlmesh $SQLMESH_OPTS migrate
5556
sqlmesh $SQLMESH_OPTS diff prod
56-
popd
57+
popd

sqlmesh/migrations/v0101_bump_sqlglot_28-6-0.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)