Skip to content

Commit

Permalink
chore(ci): fix backwards compat tests (#15448)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel authored Mar 5, 2024
1 parent 7162071 commit ee0ef0b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions ci/scripts/backwards-compat-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ source backwards-compat-tests/scripts/utils.sh
################################### Main

configure_rw() {
VERSION="$1"

echo "--- Setting up cluster config"
cat <<EOF > risedev-profiles.user.yml
full-without-monitoring:
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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
}

Expand All @@ -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"
}

Expand Down

0 comments on commit ee0ef0b

Please sign in to comment.