@@ -38,9 +38,6 @@ source backwards-compat-tests/scripts/utils.sh
38
38
39
39
# ################################## Main
40
40
41
- OLD_TAG=1.0.0
42
- NEW_TAG=1.1.0
43
-
44
41
configure_rw () {
45
42
echo " --- Setting up cluster config"
46
43
cat << EOF > risedev-profiles.user.yml
77
74
}
78
75
79
76
setup_old_cluster () {
80
- echo " --- Build risedev for $OLD_TAG , it may not be backwards compatible"
77
+ echo " --- Build risedev for $OLD_VERSION , it may not be backwards compatible"
81
78
git config --global --add safe.directory /risingwave
82
- git checkout " v${OLD_TAG } -rc"
79
+ git checkout " v${OLD_VERSION } -rc"
83
80
cargo build -p risedev
84
- OLD_URL=https://github.com/risingwavelabs/risingwave/releases/download/v${OLD_TAG } /risingwave-v${OLD_TAG } -x86_64-unknown-linux.tar.gz
81
+ OLD_URL=https://github.com/risingwavelabs/risingwave/releases/download/v${OLD_VERSION } /risingwave-v${OLD_VERSION } -x86_64-unknown-linux.tar.gz
85
82
wget $OLD_URL
86
- tar -xvf risingwave-v${OLD_TAG } -x86_64-unknown-linux.tar.gz
83
+ tar -xvf risingwave-v${OLD_VERSION } -x86_64-unknown-linux.tar.gz
87
84
mv risingwave target/debug/risingwave
88
85
89
- # echo "--- Setup old release $OLD_TAG "
86
+ # echo "--- Setup old release $OLD_VERSION "
90
87
# pushd ..
91
- # git clone --depth 1 --branch "v${OLD_TAG }-rc" "https://github.com/risingwavelabs/risingwave.git"
88
+ # git clone --depth 1 --branch "v${OLD_VERSION }-rc" "https://github.com/risingwavelabs/risingwave.git"
92
89
# pushd risingwave
93
90
# mkdir -p target/debug
94
91
# echo "Branch:"
95
92
# git branch
96
93
# cp risingwave target/debug/risingwave
97
94
98
- echo " --- Start cluster on tag $OLD_TAG "
95
+ echo " --- Start cluster on tag $OLD_VERSION "
99
96
git config --global --add safe.directory /risingwave
100
97
}
101
98
@@ -108,13 +105,15 @@ setup_new_cluster() {
108
105
}
109
106
110
107
main () {
108
+ set -euo pipefail
109
+ get_rw_versions
111
110
setup_old_cluster
112
111
configure_rw
113
- seed_old_cluster $OLD_TAG
112
+ seed_old_cluster " $OLD_VERSION "
114
113
115
114
setup_new_cluster
116
115
configure_rw
117
- validate_new_cluster $NEW_TAG
116
+ validate_new_cluster " $NEW_VERSION "
118
117
}
119
118
120
119
main
0 commit comments