zentol commented on a change in pull request #11241: [FLINK-16292][build
system] Add missing end to end tests
URL: https://github.com/apache/flink/pull/11241#discussion_r385098188
##########
File path: flink-end-to-end-tests/run-nightly-tests.sh
##########
@@ -185,5 +198,32 @@ run_test "Local recovery and sticky scheduling end-to-end
test" "$END_TO_END_DIR
run_test "Local recovery and sticky scheduling end-to-end test"
"$END_TO_END_DIR/test-scripts/test_local_recovery_and_scheduling.sh 4 10 rocks
true true" "skip_check_exceptions"
printf "\n[PASS] All bash e2e-tests passed\n"
+
+printf
"\n\n==============================================================================\n"
+printf "Running Java end-to-end tests\n"
+printf
"==============================================================================\n"
+
+set -x
+HERE="`dirname \"$0\"`" # relative
+HERE="`( cd \"${HERE}\" && pwd -P)`" # absolutized and normalized
+if [ -z "${HERE}" ] ; then
+ # error; for some reason, the path is not accessible
+ # to the script (e.g. permissions re-evaled after suid)
+ exit 1 # fail
+fi
+ARTIFACTS_DIR="${HERE}/artifacts"
+mkdir -p $ARTIFACTS_DIR || { echo "FAILURE: cannot create log directory
'${ARTIFACTS_DIR}'." ; exit 1; }
+
+LOG4J_PROPERTIES=${HERE}/../log4j-travis.properties
+
+MVN_LOGGING_OPTIONS="-Dlog.dir=${ARTIFACTS_DIR}
-Dlog4j.configurationFile=file://$LOG4J_PROPERTIES
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
+MVN_COMMON_OPTIONS="-nsu -B -Dflink.forkCount=2 -Dflink.forkCountTestPackage=2
-Dmaven.wagon.http.pool=false -Dfast -Pskip-webui-build"
+e2e_modules=$(find flink-end-to-end-tests -mindepth 2 -maxdepth 5 -name
'pom.xml' -printf '%h\n' | sort -u | tr '\n' ',')
+e2e_modules="${e2e_modules},$(find flink-walkthroughs -mindepth 2 -maxdepth 2
-name 'pom.xml' -printf '%h\n' | sort -u | tr '\n' ',')"
+
+PROFILE="$PROFILE -Pe2e-travis1 -Pe2e-travis2 -Pe2e-travis3 -Pe2e-travis4
-Pe2e-travis5 -Pe2e-travis6"
+mvn ${MVN_COMMON_OPTIONS} ${MVN_LOGGING_OPTIONS} ${PROFILE} verify -pl
${e2e_modules} -DdistDir=$(readlink -e build-target)
+
+
printf "\n Please remember to run java e2e-tests by running mvn verify
-Dcategories=\"\" -DdistDir=<path to flink-dist> in flink-end-to-end-tests\n"
Review comment:
can be removed
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services