diff --git a/backwards-compat-tests/scripts/run_local.sh b/backwards-compat-tests/scripts/run_local.sh index 20e820ef3e09..e2604e6a114e 100755 --- a/backwards-compat-tests/scripts/run_local.sh +++ b/backwards-compat-tests/scripts/run_local.sh @@ -13,8 +13,11 @@ trap on_exit EXIT source backwards-compat-tests/scripts/utils.sh configure_rw() { -echo "--- Setting up cluster config" -cat < risedev-profiles.user.yml + VERSION="$1" + + echo "--- Setting up cluster config" + if version_le "$VERSION" "1.9.0"; then + cat < risedev-profiles.user.yml full-without-monitoring: steps: - use: minio @@ -28,6 +31,23 @@ full-without-monitoring: address: message_queue port: 29092 EOF + else + cat < risedev-profiles.user.yml + full-without-monitoring: + steps: + - use: minio + - use: etcd + - use: meta-node + meta-backend: etcd + - use: compute-node + - use: frontend + - use: compactor + - use: kafka + user-managed: true + address: message_queue + port: 29092 +EOF + fi cat < risedev-components.user.env RISEDEV_CONFIGURED=false @@ -58,11 +78,11 @@ main() { set -euo pipefail get_rw_versions setup_old_cluster - configure_rw + configure_rw "$OLD_VERSION" seed_old_cluster "$OLD_VERSION" setup_new_cluster - configure_rw + configure_rw "99.99.99" validate_new_cluster "$NEW_VERSION" } diff --git a/ci/scripts/backwards-compat-test.sh b/ci/scripts/backwards-compat-test.sh index 3ffb3fb8284a..b701054fdabb 100755 --- a/ci/scripts/backwards-compat-test.sh +++ b/ci/scripts/backwards-compat-test.sh @@ -41,7 +41,8 @@ VERSION="$1" ENABLE_BUILD="$2" echo "--- Setting up cluster config" -cat < risedev-profiles.user.yml + if version_le "$VERSION" "1.9.0"; then + cat < risedev-profiles.user.yml full-without-monitoring: steps: - use: minio @@ -51,6 +52,19 @@ full-without-monitoring: - use: frontend - use: compactor EOF + else + cat < risedev-profiles.user.yml +full-without-monitoring: + steps: + - use: minio + - use: etcd + - use: meta-node + meta-backend: etcd + - use: compute-node + - use: frontend + - use: compactor +EOF + fi cat < risedev-components.user.env RISEDEV_CONFIGURED=true