You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by nl...@apache.org on 2018/06/29 17:50:05 UTC

[incubator-heron] branch master updated: modify travis ci to enable integration topology test (#2940)

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

nlu90 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git


The following commit(s) were added to refs/heads/master by this push:
     new 5b79124  modify travis ci to enable integration topology test (#2940)
5b79124 is described below

commit 5b7912481f92e80efcb6c368d1ccd08917269858
Author: Yao Li <cl...@gmail.com>
AuthorDate: Fri Jun 29 10:50:01 2018 -0700

    modify travis ci to enable integration topology test (#2940)
    
    * modify travis ci to enable integration topology test
    
    * fix java test data dir
---
 scripts/packages/BUILD                 | 12 ++++++++++++
 scripts/packages/tests_template_bin.sh |  9 ++++++++-
 scripts/travis/test.sh                 | 12 ++++++++++++
 3 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/scripts/packages/BUILD b/scripts/packages/BUILD
index b32411c..01bdc2f 100644
--- a/scripts/packages/BUILD
+++ b/scripts/packages/BUILD
@@ -348,6 +348,7 @@ pkg_tar(
     srcs = [
         "//integration_test/src/python/http_server:http-server",
         "//integration_test/src/python/test_runner:test-runner",
+        "//integration_test/src/python/topology_test_runner:topology-test-runner",
     ]
 )
 
@@ -370,6 +371,15 @@ pkg_tar(
 )
 
 pkg_tar(
+    name = "heron-tests-data-topology-java",
+    package_dir = "data/java/topology_test",
+    srcs = [
+        "//integration_test/src/java:topology-test-data-files",
+    ],
+    strip_prefix = '/integration_test/src/java/org/apache/heron/integration_topology_test/topology/'
+)
+
+pkg_tar(
     name = "heron-tests-data-python",
     package_dir = "data/python",
     srcs = [
@@ -384,6 +394,7 @@ pkg_tar(
     srcs = [
        "//integration_test/src/scala:scala-integration-tests",
        "//integration_test/src/java:integration-tests",
+       "//integration_test/src/java:integration-topology-tests",
        "//integration_test/src/python/integration_test/topology:heron_integ_topology",
     ],
 )
@@ -396,6 +407,7 @@ pkg_tar(
         ":heron-tests-bin",
         ":heron-tests-data-scala",
         ":heron-tests-data-java",
+        ":heron-tests-data-topology-java",
         ":heron-tests-data-python",
         ":heron-tests-lib",
     ],
diff --git a/scripts/packages/tests_template_bin.sh b/scripts/packages/tests_template_bin.sh
index 66567b3..b3604a2 100755
--- a/scripts/packages/tests_template_bin.sh
+++ b/scripts/packages/tests_template_bin.sh
@@ -71,12 +71,18 @@ echo -n "Uncompressing."
 if [ -L "${bin}/test-runner" ]; then
   rm -f "${bin}/test-runner"
 fi
+if [ -L "${bin}/topology-test-runner" ]; then
+  rm -f "${bin}/topology-test-runner"
+fi
 if [ -L "${bin}/http-server" ]; then
   rm -f "${bin}/http-server"
 fi
 if [ -d "${base}" -a -x "${base}/bin/test-runner" ]; then
   rm -fr "${base}"
 fi
+if [ -d "${base}" -a -x "${base}/bin/topology-test-runner" ]; then
+  rm -fr "${base}"
+fi
 
 mkdir -p ${bin} ${base}
 echo -n .
@@ -84,7 +90,7 @@ echo -n .
 unzip -q -o "${BASH_SOURCE[0]}" -d "${base}"
 untar ${base}/heron-tests.tar.gz ${base}
 echo -n .
-chmod 0755 ${base}/bin/test-runner ${base}/bin/http-server
+chmod 0755 ${base}/bin/test-runner ${base}/bin/http-server ${base}/bin/topology-test-runner
 echo -n .
 chmod -R og-w "${base}"
 chmod -R og+rX "${base}"
@@ -92,6 +98,7 @@ chmod -R u+rwX "${base}"
 echo -n .
 
 ln -s "${base}/bin/test-runner" "${bin}/test-runner"
+ln -s "${base}/bin/topology-test-runner" "${bin}/topology-test-runner"
 ln -s "${base}/bin/http-server" "${bin}/http-server"
 mv "${base}/lib/heron_integ_topology" "${base}/lib/heron_integ_topology.pex"
 echo -n .
diff --git a/scripts/travis/test.sh b/scripts/travis/test.sh
index 2cece60..1c22fc1 100755
--- a/scripts/travis/test.sh
+++ b/scripts/travis/test.sh
@@ -14,6 +14,7 @@ echo "Using $PLATFORM platform"
 
 # integration test binaries have to be specified as absolute path
 JAVA_INTEGRATION_TESTS_BIN="${HOME}/.herontests/lib/integration-tests.jar"
+JAVA_INTEGRATION_TOPOLOGY_TESTS_BIN="${HOME}/.herontests/lib/integration-topology-tests.jar"
 PYTHON_INTEGRATION_TESTS_BIN="${HOME}/.herontests/lib/heron_integ_topology.pex"
 SCALA_INTEGRATION_TESTS_BIN="${HOME}/.herontests/lib/scala-integration-tests.jar"
 
@@ -79,4 +80,15 @@ ${HOME}/bin/test-runner \
   -cl local -rl heron-staging -ev devel
 end_timer "$T"
 
+# run the java integration topology test
+T="heron integration_topology_test java"
+start_timer "$T"
+${HOME}/bin/topology-test-runner \
+  -hc heron -tb ${JAVA_INTEGRATION_TOPOLOGY_TESTS_BIN} \
+  -rh localhost -rp 8080\
+  -tp ${HOME}/.herontests/data/java/topology_test \
+  -cl local -rl heron-staging -ev devel
+end_timer "$T"
+
 print_timer_summary
+