From 5091b14849d7e3ffdf434649793e5fc5e93a9e89 Mon Sep 17 00:00:00 2001 From: Rui Mo Date: Fri, 11 Jun 2021 11:05:07 +0800 Subject: [PATCH] fix ut compile and travis --- .github/workflows/unittests.yml | 3 +-- native-sql-engine/core/pom.xml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 17f5c2919..512a52c7e 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -101,10 +101,9 @@ jobs: mvn clean install -DskipTests -Dbuild_arrow=OFF cd .. mvn clean package -P full-scala-compiler -am -pl native-sql-engine/core -DskipTests -Dbuild_arrow=OFF - cd native-sql-engine/core/ mvn test -P full-scala-compiler -DmembersOnlySuites=org.apache.spark.sql.travis -am -DfailIfNoTests=false -Dexec.skip=true -DargLine="-Dspark.test.home=/tmp/spark-3.0.0-bin-hadoop2.7" &> log-file.log echo '#!/bin/bash' > grep.sh - echo "module_tested=0; module_should_test=1; tests_total=0; while read -r line; do num=\$(echo \"\$line\" | grep -o -E '[0-9]+'); tests_total=\$((tests_total+num)); done <<<\"\$(grep \"Total number of tests run:\" log-file.log)\"; succeed_total=0; while read -r line; do [[ \$line =~ [^0-9]*([0-9]+)\, ]]; num=\${BASH_REMATCH[1]}; succeed_total=\$((succeed_total+num)); let module_tested++; done <<<\"\$(grep \"succeeded\" log-file.log)\"; if test \$tests_total -eq \$succeed_total -a \$module_tested -eq \$module_should_test; then echo \"All unit tests succeed\"; else echo \"Unit tests failed\"; exit 1; fi" >> grep.sh + echo "module_tested=0; module_should_test=5; tests_total=0; while read -r line; do num=\$(echo \"\$line\" | grep -o -E '[0-9]+'); tests_total=\$((tests_total+num)); done <<<\"\$(grep \"Total number of tests run:\" log-file.log)\"; succeed_total=0; while read -r line; do [[ \$line =~ [^0-9]*([0-9]+)\, ]]; num=\${BASH_REMATCH[1]}; succeed_total=\$((succeed_total+num)); let module_tested++; done <<<\"\$(grep \"succeeded\" log-file.log)\"; if test \$tests_total -eq \$succeed_total -a \$module_tested -eq \$module_should_test; then echo \"All unit tests succeed\"; else echo \"Unit tests failed\"; exit 1; fi" >> grep.sh bash grep.sh formatting-check: diff --git a/native-sql-engine/core/pom.xml b/native-sql-engine/core/pom.xml index f836c3fb9..69daec929 100644 --- a/native-sql-engine/core/pom.xml +++ b/native-sql-engine/core/pom.xml @@ -308,7 +308,7 @@ net.alchim31.maven scala-maven-plugin - 4.4.0 + 4.3.0 ${scala.recompile.mode}