ClickHouse/docker/test/keeper-jepsen/run.sh

23 lines
1.1 KiB
Bash
Raw Normal View History

2021-03-30 15:42:53 +00:00
#!/usr/bin/env bash
set -euo pipefail
2021-03-31 12:30:28 +00:00
CLICKHOUSE_PACKAGE=${CLICKHOUSE_PACKAGE:="https://clickhouse-builds.s3.amazonaws.com/$PR_TO_TEST/$SHA_TO_TEST/clickhouse_build_check/clang-14_relwithdebuginfo_none_unsplitted_disable_False_binary/clickhouse"}
2021-03-31 12:30:28 +00:00
CLICKHOUSE_REPO_PATH=${CLICKHOUSE_REPO_PATH:=""}
2021-03-30 20:51:41 +00:00
2021-03-31 08:36:23 +00:00
if [ -z "$CLICKHOUSE_REPO_PATH" ]; then
CLICKHOUSE_REPO_PATH=ch
rm -rf ch ||:
mkdir ch ||:
2022-03-28 13:53:22 +00:00
wget -nv -nd -c "https://clickhouse-test-reports.s3.amazonaws.com/$PR_TO_TEST/$SHA_TO_TEST/repo/clickhouse_no_subs.tar.gz"
2021-03-31 08:36:23 +00:00
tar -C ch --strip-components=1 -xf clickhouse_no_subs.tar.gz
ls -lath ||:
fi
2021-03-30 15:42:53 +00:00
cd "$CLICKHOUSE_REPO_PATH/tests/jepsen.clickhouse-keeper"
2021-03-31 15:19:38 +00:00
(lein run test-all --nodes-file "$NODES_FILE_PATH" --username "$NODES_USERNAME" --logging-json --password "$NODES_PASSWORD" --time-limit "$TIME_LIMIT" --concurrency 50 -r 50 --snapshot-distance 100 --stale-log-gap 100 --reserved-log-items 10 --lightweight-run --clickhouse-source "$CLICKHOUSE_PACKAGE" -q --test-count "$TESTS_TO_RUN" || true) | tee "$TEST_OUTPUT/jepsen_run_all_tests.log"
2021-03-30 15:42:53 +00:00
mv store "$TEST_OUTPUT/"