mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
ci: use bash arrays to pass opts to clickhouse-test for stateless/stateful
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
parent
8ce23ff113
commit
7c366a040f
@ -232,15 +232,25 @@ function run_tests()
|
|||||||
|
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
|
TEST_ARGS=(
|
||||||
|
-j 2
|
||||||
|
--testname
|
||||||
|
--shard
|
||||||
|
--zookeeper
|
||||||
|
--check-zookeeper-session
|
||||||
|
--no-stateless
|
||||||
|
--hung-check
|
||||||
|
--print-time
|
||||||
|
"${ADDITIONAL_OPTIONS[@]}"
|
||||||
|
"$SKIP_TESTS_OPTION"
|
||||||
|
)
|
||||||
if [[ -n "$USE_PARALLEL_REPLICAS" ]] && [[ "$USE_PARALLEL_REPLICAS" -eq 1 ]]; then
|
if [[ -n "$USE_PARALLEL_REPLICAS" ]] && [[ "$USE_PARALLEL_REPLICAS" -eq 1 ]]; then
|
||||||
clickhouse-test --client="clickhouse-client --allow_experimental_parallel_reading_from_replicas=1 --parallel_replicas_for_non_replicated_merge_tree=1 \
|
TEST_ARGS+=(
|
||||||
--max_parallel_replicas=100 --cluster_for_parallel_replicas='parallel_replicas'" \
|
--client="clickhouse-client --allow_experimental_parallel_reading_from_replicas=1 --parallel_replicas_for_non_replicated_merge_tree=1 --max_parallel_replicas=100 --cluster_for_parallel_replicas='parallel_replicas'"
|
||||||
-j 2 --testname --shard --zookeeper --check-zookeeper-session --no-stateless --no-parallel-replicas --hung-check --print-time "${ADDITIONAL_OPTIONS[@]}" \
|
--no-parallel-replicas
|
||||||
"$SKIP_TESTS_OPTION" 2>&1 | ts '%Y-%m-%d %H:%M:%S' | tee test_output/test_result.txt
|
)
|
||||||
else
|
|
||||||
clickhouse-test -j 2 --testname --shard --zookeeper --check-zookeeper-session --no-stateless --hung-check --print-time "${ADDITIONAL_OPTIONS[@]}" \
|
|
||||||
"$SKIP_TESTS_OPTION" 2>&1 | ts '%Y-%m-%d %H:%M:%S' | tee test_output/test_result.txt
|
|
||||||
fi
|
fi
|
||||||
|
clickhouse-test "${TEST_ARGS[@]}" 2>&1 | ts '%Y-%m-%d %H:%M:%S' | tee test_output/test_result.txt
|
||||||
set -e
|
set -e
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -264,9 +264,19 @@ function run_tests()
|
|||||||
TIMEOUT=$((MAX_RUN_TIME - 800 > 8400 ? 8400 : MAX_RUN_TIME - 800))
|
TIMEOUT=$((MAX_RUN_TIME - 800 > 8400 ? 8400 : MAX_RUN_TIME - 800))
|
||||||
START_TIME=${SECONDS}
|
START_TIME=${SECONDS}
|
||||||
set +e
|
set +e
|
||||||
timeout --preserve-status --signal TERM --kill-after 60m ${TIMEOUT}s \
|
|
||||||
clickhouse-test --testname --shard --zookeeper --check-zookeeper-session --hung-check --print-time \
|
TEST_ARGS=(
|
||||||
--no-drop-if-fail --test-runs "$NUM_TRIES" "${ADDITIONAL_OPTIONS[@]}" 2>&1 \
|
--testname
|
||||||
|
--shard
|
||||||
|
--zookeeper
|
||||||
|
--check-zookeeper-session
|
||||||
|
--hung-check
|
||||||
|
--print-time
|
||||||
|
--no-drop-if-fail
|
||||||
|
--test-runs "$NUM_TRIES"
|
||||||
|
"${ADDITIONAL_OPTIONS[@]}"
|
||||||
|
)
|
||||||
|
timeout --preserve-status --signal TERM --kill-after 60m ${TIMEOUT}s clickhouse-test "${TEST_ARGS[@]}" 2>&1 \
|
||||||
| ts '%Y-%m-%d %H:%M:%S' \
|
| ts '%Y-%m-%d %H:%M:%S' \
|
||||||
| tee -a test_output/test_result.txt
|
| tee -a test_output/test_result.txt
|
||||||
set -e
|
set -e
|
||||||
|
Loading…
Reference in New Issue
Block a user