From a176aced3c047d780adc8f3981a4921faa526255 Mon Sep 17 00:00:00 2001 From: Noel Kwan <47273164+kwannoel@users.noreply.github.com> Date: Sun, 27 Oct 2024 13:33:42 +0800 Subject: [PATCH] fix(ci): fix standalone tests startup (#19067) --- ci/scripts/run-e2e-test.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/ci/scripts/run-e2e-test.sh b/ci/scripts/run-e2e-test.sh index c9a084396b296..5af127530f6f5 100755 --- a/ci/scripts/run-e2e-test.sh +++ b/ci/scripts/run-e2e-test.sh @@ -35,8 +35,11 @@ cluster_start() { mkdir -p "$PREFIX_LOG" risedev clean-data risedev pre-start-dev + risedev dev standalone-minio-sqlite & + PID=$! + sleep 1 start_standalone "$PREFIX_LOG"/standalone.log & - risedev dev standalone-minio-sqlite + wait $PID elif [[ $mode == "single-node" ]]; then mkdir -p "$PREFIX_LOG" risedev clean-data @@ -255,8 +258,11 @@ if [[ "$mode" == "standalone" ]]; then mkdir -p "$PREFIX_LOG" risedev clean-data risedev pre-start-dev + risedev dev standalone-minio-sqlite-compactor & + PID=$! + sleep 1 start_standalone_without_compactor "$PREFIX_LOG"/standalone.log & - risedev dev standalone-minio-sqlite-compactor + wait $PID wait_standalone if compactor_is_online then @@ -272,8 +278,11 @@ if [[ "$mode" == "standalone" ]]; then mkdir -p "$PREFIX_LOG" risedev clean-data risedev pre-start-dev + risedev dev standalone-minio-sqlite & + PID=$! + sleep 1 start_standalone "$PREFIX_LOG"/standalone.log & - risedev dev standalone-minio-sqlite + wait $PID wait_standalone if ! compactor_is_online then