diff --git a/docker/test/keeper-jepsen/Dockerfile b/docker/test/keeper-jepsen/Dockerfile index 656d6bf35b8..acba52b1a66 100644 --- a/docker/test/keeper-jepsen/Dockerfile +++ b/docker/test/keeper-jepsen/Dockerfile @@ -5,14 +5,16 @@ ENV DEBIAN_FRONTEND=noninteractive ENV CLOJURE_VERSION=1.10.3.814 # arguments -ENV CLICKHOUSE_PACKAGE="" +ENV PR_TO_TEST="" +ENV SHA_TO_TEST="" + ENV NODES_USERNAME="root" ENV NODES_PASSWORD="" ENV TESTS_TO_RUN="30" ENV TIME_LIMIT="30" + # volumes -ENV CLICKHOUSE_REPO_PATH="/repo" ENV NODES_FILE_PATH="/nodes.txt" ENV TEST_OUTPUT="/test_output" ENV SSH_KEY_PATH="/root/.ssh/id_rsa" diff --git a/docker/test/keeper-jepsen/run.sh b/docker/test/keeper-jepsen/run.sh index adb70c5ba5d..715b685caba 100644 --- a/docker/test/keeper-jepsen/run.sh +++ b/docker/test/keeper-jepsen/run.sh @@ -1,6 +1,14 @@ #!/usr/bin/env bash set -euo pipefail +CLICKHOUSE_PACKAGE=${CLICKHOUSE_PACKAGE="https://clickhouse-builds.s3.yandex.net/$PR_TO_TEST/$SHA_TO_TEST/clickhouse_build_check/clang-11_relwithdebuginfo_none_bundled_unsplitted_disable_False_binary/clickhouse"} + +CLICKHOUSE_REPO_PATH=ch +rm -rf ch ||: +mkdir ch ||: +wget -nv -nd -c "https://clickhouse-test-reports.s3.yandex.net/$PR_TO_TEST/$SHA_TO_TEST/repo/clickhouse_no_subs.tar.gz" +tar -C ch --strip-components=1 -xf clickhouse_no_subs.tar.gz +ls -lath ||: cd "$CLICKHOUSE_REPO_PATH/tests/jepsen.clickhouse-keeper"