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

chore(ci): fix backwards compat tests #15448

Merged
merged 3 commits into from
Mar 5, 2024
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
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
Loading