You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by az...@apache.org on 2022/02/05 12:23:51 UTC

[cassandra-builds] branch trunk updated: Add versions logging for build tools

This is an automated email from the ASF dual-hosted git repository.

azotcsit pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-builds.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 51a654f  Add versions logging for build tools
51a654f is described below

commit 51a654f0bddc6d8a0db03132698dd5229f425752
Author: Aleksei Zotov <az...@gmail.com>
AuthorDate: Wed Feb 2 21:08:24 2022 +0400

    Add versions logging for build tools
    
    patch by Aleksei Zotov; reviewed by Mick Semb Wever for CASSANDRA-16630
---
 build-scripts/cassandra-artifacts.sh           |  5 +++++
 build-scripts/cassandra-dtest-pytest-docker.sh |  6 ++++++
 build-scripts/cassandra-dtest-pytest.sh        | 10 ++++++++++
 build-scripts/cassandra-test-docker.sh         |  3 +++
 build-scripts/cassandra-test.sh                |  4 ++++
 5 files changed, 28 insertions(+)

diff --git a/build-scripts/cassandra-artifacts.sh b/build-scripts/cassandra-artifacts.sh
index 80185f9..07dd620 100755
--- a/build-scripts/cassandra-artifacts.sh
+++ b/build-scripts/cassandra-artifacts.sh
@@ -18,6 +18,11 @@ command -v docker >/dev/null 2>&1 || { echo >&2 "docker needs to be installed";
 [ -f "build.xml" ] || { echo >&2 "build.xml must exist"; exit 1; }
 [ -d "${cassandra_builds_dir}" ] || { echo >&2 "cassandra-builds directory must exist"; exit 1; }
 
+# print debug information on versions
+ant -version
+pip --version
+virtualenv --version
+docker --version
 
 # Sphinx is needed for the gen-doc target
 virtualenv venv
diff --git a/build-scripts/cassandra-dtest-pytest-docker.sh b/build-scripts/cassandra-dtest-pytest-docker.sh
index d931961..5ff3cc1 100755
--- a/build-scripts/cassandra-dtest-pytest-docker.sh
+++ b/build-scripts/cassandra-dtest-pytest-docker.sh
@@ -43,6 +43,12 @@ DTEST_REPO=$3
 DTEST_BRANCH=$4
 EOF
 
+    # pre-conditions
+    command -v docker >/dev/null 2>&1 || { echo >&2 "docker needs to be installed"; exit 1; }
+
+    # print debug information on versions
+    docker --version
+
     set -x # debug, sometimes ${docker_cpus} is not evaluated
     # Jenkins agents run multiple executors per machine. `jenkins_executors=1` is used for anything non-jenkins.
     jenkins_executors=1
diff --git a/build-scripts/cassandra-dtest-pytest.sh b/build-scripts/cassandra-dtest-pytest.sh
index 89eb59b..448b50c 100755
--- a/build-scripts/cassandra-dtest-pytest.sh
+++ b/build-scripts/cassandra-dtest-pytest.sh
@@ -31,6 +31,16 @@ if [ $? -eq 0 -a -n "$JAVA8_HOME" -a -n "$JAVA11_HOME" ]; then
    export JAVA_HOME="$JAVA11_HOME"
 fi
 
+# pre-conditions
+command -v ant >/dev/null 2>&1 || { echo >&2 "ant needs to be installed"; exit 1; }
+command -v pip3 >/dev/null 2>&1 || { echo >&2 "pip3 needs to be installed"; exit 1; }
+command -v virtualenv >/dev/null 2>&1 || { echo >&2 "virtualenv needs to be installed"; exit 1; }
+
+# print debug information on versions
+ant -version
+pip3 --version
+virtualenv --version
+
 # Loop to prevent failure due to maven-ant-tasks not downloading a jar..
 for x in $(seq 1 3); do
     ant clean jar
diff --git a/build-scripts/cassandra-test-docker.sh b/build-scripts/cassandra-test-docker.sh
index 254c1a9..2693881 100755
--- a/build-scripts/cassandra-test-docker.sh
+++ b/build-scripts/cassandra-test-docker.sh
@@ -35,6 +35,9 @@ else
     command -v docker >/dev/null 2>&1 || { echo >&2 "docker needs to be installed"; exit 1; }
     (docker info >/dev/null 2>&1) || { echo >&2 "docker needs to running"; exit 1; }
 
+    # print debug information on versions
+    docker --version
+
     # start the docker container
     if [ "$#" -lt 5 ]; then
        echo "Usage: cassandra-test-docker.sh REPO BRANCH BUILDS_REPO_URL BUILDS_BRANCH DOCKER_IMAGE [target] [split_chunk]"
diff --git a/build-scripts/cassandra-test.sh b/build-scripts/cassandra-test.sh
index d783d86..2605b08 100755
--- a/build-scripts/cassandra-test.sh
+++ b/build-scripts/cassandra-test.sh
@@ -10,6 +10,10 @@ command -v ant >/dev/null 2>&1 || { echo >&2 "ant needs to be installed"; exit 1
 command -v git >/dev/null 2>&1 || { echo >&2 "git needs to be installed"; exit 1; }
 [ -f "build.xml" ] || { echo >&2 "build.xml must exist"; exit 1; }
 
+# print debug information on versions
+ant -version
+git --version
+
 # lists all tests for the specific test type
 _list_tests() {
   local -r classlistprefix="$1"

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org