-
Notifications
You must be signed in to change notification settings - Fork 595
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into xx/foyer-block-cache
Signed-off-by: MrCroxx <[email protected]>
- Loading branch information
Showing
78 changed files
with
1,820 additions
and
1,395 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
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 |
---|---|---|
|
@@ -192,20 +192,6 @@ if [[ "$RUN_COMPACTION" -eq "1" ]]; then | |
cluster_stop | ||
fi | ||
|
||
if [[ "$RUN_META_BACKUP" -eq "1" ]]; then | ||
echo "--- e2e, ci-meta-backup-test" | ||
test_root="src/storage/backup/integration_tests" | ||
BACKUP_TEST_MCLI=".risingwave/bin/mcli" \ | ||
BACKUP_TEST_MCLI_CONFIG=".risingwave/config/mcli" \ | ||
BACKUP_TEST_RW_ALL_IN_ONE="target/debug/risingwave" \ | ||
RW_HUMMOCK_URL="hummock+minio://hummockadmin:[email protected]:9301/hummock001" \ | ||
RW_META_ADDR="http://127.0.0.1:5690" \ | ||
RUST_LOG="info,risingwave_stream=info,risingwave_batch=info,risingwave_storage=info" \ | ||
bash "${test_root}/run_all.sh" | ||
echo "--- Kill cluster" | ||
cargo make kill | ||
fi | ||
|
||
if [[ "$mode" == "standalone" ]]; then | ||
run_sql() { | ||
psql -h localhost -p 4566 -d dev -U root -c "$@" | ||
|
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,80 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Exits as soon as any line fails. | ||
set -euo pipefail | ||
|
||
source ci/scripts/common.sh | ||
|
||
while getopts 'p:m:' opt; do | ||
case ${opt} in | ||
p ) | ||
profile=$OPTARG | ||
;; | ||
m ) | ||
mode=$OPTARG | ||
;; | ||
\? ) | ||
echo "Invalid Option: -$OPTARG" 1>&2 | ||
exit 1 | ||
;; | ||
: ) | ||
echo "Invalid option: $OPTARG requires an argument" 1>&2 | ||
;; | ||
esac | ||
done | ||
shift $((OPTIND -1)) | ||
|
||
if [[ $mode == "standalone" ]]; then | ||
source ci/scripts/standalone-utils.sh | ||
fi | ||
|
||
if [[ $mode == "single-node" ]]; then | ||
source ci/scripts/single-node-utils.sh | ||
fi | ||
|
||
cluster_start() { | ||
if [[ $mode == "standalone" ]]; then | ||
mkdir -p "$PREFIX_LOG" | ||
cargo make clean-data | ||
cargo make pre-start-dev | ||
start_standalone "$PREFIX_LOG"/standalone.log & | ||
cargo make dev standalone-minio-etcd | ||
elif [[ $mode == "single-node" ]]; then | ||
mkdir -p "$PREFIX_LOG" | ||
cargo make clean-data | ||
cargo make pre-start-dev | ||
start_single_node "$PREFIX_LOG"/single-node.log & | ||
# Give it a while to make sure the single-node is ready. | ||
sleep 3 | ||
else | ||
cargo make ci-start "$mode" | ||
fi | ||
} | ||
|
||
cluster_stop() { | ||
if [[ $mode == "standalone" ]] | ||
then | ||
stop_standalone | ||
# Don't check standalone logs, they will exceed the limit. | ||
cargo make kill | ||
elif [[ $mode == "single-node" ]] | ||
then | ||
stop_single_node | ||
else | ||
cargo make ci-kill | ||
fi | ||
} | ||
|
||
download_and_prepare_rw "$profile" common | ||
|
||
echo "--- e2e, ci-meta-backup-test" | ||
test_root="src/storage/backup/integration_tests" | ||
BACKUP_TEST_MCLI=".risingwave/bin/mcli" \ | ||
BACKUP_TEST_MCLI_CONFIG=".risingwave/config/mcli" \ | ||
BACKUP_TEST_RW_ALL_IN_ONE="target/debug/risingwave" \ | ||
RW_HUMMOCK_URL="hummock+minio://hummockadmin:[email protected]:9301/hummock001" \ | ||
RW_META_ADDR="http://127.0.0.1:5690" \ | ||
RUST_LOG="info,risingwave_stream=info,risingwave_batch=info,risingwave_storage=info" \ | ||
bash "${test_root}/run_all.sh" | ||
echo "--- Kill cluster" | ||
cargo make kill |
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
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
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
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
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
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
Oops, something went wrong.