From ee0ef0bd4fe76245036c3ed81ba0196c3109f46f Mon Sep 17 00:00:00 2001 From: Noel Kwan <47273164+kwannoel@users.noreply.github.com> Date: Tue, 5 Mar 2024 16:48:03 +0800 Subject: [PATCH] chore(ci): fix backwards compat tests (#15448) --- ci/scripts/backwards-compat-test.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ci/scripts/backwards-compat-test.sh b/ci/scripts/backwards-compat-test.sh index c085b7a957f5f..84fda2e2f2b0f 100755 --- a/ci/scripts/backwards-compat-test.sh +++ b/ci/scripts/backwards-compat-test.sh @@ -37,6 +37,8 @@ source backwards-compat-tests/scripts/utils.sh ################################### Main configure_rw() { +VERSION="$1" + echo "--- Setting up cluster config" cat < risedev-profiles.user.yml full-without-monitoring: @@ -64,6 +66,10 @@ ENABLE_BUILD_RUST=false # Use target/debug for simplicity. ENABLE_RELEASE_PROFILE=false EOF + +if version_le "${VERSION:-}" "1.7.0" ; then + echo "ENABLE_ALL_IN_ONE=true" >> risedev-components.user.env +fi } configure_rw_build() { @@ -116,7 +122,7 @@ setup_old_cluster() { echo "--- Start cluster on tag $OLD_VERSION" git config --global --add safe.directory /risingwave - configure_rw + configure_rw $OLD_VERSION fi } @@ -138,7 +144,10 @@ main() { seed_old_cluster "$OLD_VERSION" setup_new_cluster - configure_rw + # Assume we use the latest version, so we just set to some large number. + # The current $NEW_VERSION as of this change is 1.7.0, so we can't use that. + # See: https://github.com/risingwavelabs/risingwave/pull/15448 + configure_rw "99.99.99" validate_new_cluster "$NEW_VERSION" }