-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add nexmark test, kafka test for backwards compatibility testing (
- Loading branch information
Showing
23 changed files
with
756 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Backwards Compatibility Tests | ||
|
||
The backwards compatibility tests run in the following manner: | ||
1. Prepare old-cluster artifacts | ||
2. Configure the old-cluster. | ||
3. Start the old-cluster. | ||
4. Run DDL / DML / DQL. | ||
5. Stop the old-cluster. | ||
6. Prepare new-cluster artifacts. | ||
7. Configure the new-cluster. | ||
8. Start the new-cluster. | ||
9. Verify results of step 4. | ||
|
||
We currently cover the following: | ||
1. Basic mv | ||
2. Nexmark (on rw table not nexmark source) | ||
3. TPC-H | ||
4. Kafka Source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
ORIGINAL_BRANCH=$(git branch --show-current) | ||
|
||
on_exit() { | ||
git checkout "$ORIGINAL_BRANCH" | ||
} | ||
|
||
trap on_exit EXIT | ||
|
||
source backwards-compat-tests/scripts/utils.sh | ||
|
||
configure_rw() { | ||
echo "--- Setting up cluster config" | ||
cat <<EOF > risedev-profiles.user.yml | ||
full-without-monitoring: | ||
steps: | ||
- use: minio | ||
- use: etcd | ||
- use: meta-node | ||
- use: compute-node | ||
- use: frontend | ||
- use: compactor | ||
- use: zookeeper | ||
- use: kafka | ||
EOF | ||
|
||
cat <<EOF > risedev-components.user.env | ||
RISEDEV_CONFIGURED=false | ||
ENABLE_MINIO=true | ||
ENABLE_ETCD=true | ||
ENABLE_KAFKA=true | ||
# Fetch risingwave binary from release. | ||
ENABLE_BUILD_RUST=true | ||
# Ensure it will link the all-in-one binary from our release. | ||
ENABLE_ALL_IN_ONE=true | ||
# ENABLE_RELEASE_PROFILE=true | ||
EOF | ||
} | ||
|
||
setup_old_cluster() { | ||
echo "--- Setting up old cluster" | ||
git checkout "v${OLD_VERSION}-rc" | ||
} | ||
|
||
setup_new_cluster() { | ||
echo "--- Setting up new cluster" | ||
rm -r .risingwave/bin/risingwave | ||
git checkout main | ||
} | ||
|
||
main() { | ||
set -euo pipefail | ||
get_rw_versions | ||
setup_old_cluster | ||
configure_rw | ||
seed_old_cluster "$OLD_VERSION" | ||
|
||
setup_new_cluster | ||
configure_rw | ||
validate_new_cluster "$NEW_VERSION" | ||
} | ||
|
||
main |
Oops, something went wrong.