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

mck 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 de1e237  Prerequisite for 5.0+ as it no longer calls `ant jar` in 
cassandra-cqlsh-tests.sh
de1e237 is described below

commit de1e2375426429c0ec917352f478adfab3867234
Author: Mick Semb Wever <[email protected]>
AuthorDate: Fri Jul 7 14:41:09 2023 +0200

    Prerequisite for 5.0+ as it no longer calls `ant jar` in 
cassandra-cqlsh-tests.sh
    
     patch by Mick Semb Wever; reviewd by Stefan Miklosovic for CASSANDRA-18133
---
 build-scripts/cassandra-test.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/build-scripts/cassandra-test.sh b/build-scripts/cassandra-test.sh
index e12ec43..21b2eed 100755
--- a/build-scripts/cassandra-test.sh
+++ b/build-scripts/cassandra-test.sh
@@ -77,6 +77,7 @@ _main() {
 
   local -r java_version=$(java -version 2>&1 | awk -F '"' '/version/ {print 
$2}' | awk -F. '{print $1}')
   local -r version=$(grep 'property\s*name=\"base.version\"' build.xml |sed 
-ne 's/.*value=\"\([^"]*\)\".*/\1/p')
+  local -r regx_version="(2.2|3.0|3.11|4.0|4.1)(.([0-9]+))?$"
 
   if [ "$java_version" -ge 17 ]; then
     if [[ "${target}" == "jvm-dtest-upgrade" ]] ; then
@@ -85,7 +86,6 @@ _main() {
     fi
   elif [ "$java_version" -ge 11 ]; then
     export CASSANDRA_USE_JDK11=true
-    regx_version="(2.2|3.0|3.11|4.0|4.1)(.([0-9]+))?$"
     if ! grep -q "java.version.11" build.xml ; then
         echo "Skipping ${target}. JDK11 not supported against ${version}"
         exit 0
@@ -164,6 +164,12 @@ _main() {
       ant testclasslist -Dtest.classlistprefix=distributed 
-Dtest.timeout=$(_timeout_for "test.distributed.timeout") 
-Dtest.classlistfile=<(echo "${testlist}") -Dtmp.dir="${TMP_DIR}" || echo 
"failed $target"
       ;;
     "cqlsh-test")
+
+      if ! [[ $version =~ $regx_version ]] ; then
+        # CASSANDRA-18133 – 5.0+ no longer does `ant jar` in 
cassandra-cqlsh-tests.sh
+        ant jar -Dno-checkstyle=true -Drat.skip=true -Dant.gen-doc.skip=true 
-Djavadoc.skip=true
+      fi
+
       ./pylib/cassandra-cqlsh-tests.sh $(pwd)
       ;;
     *)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to