Repository: flink
Updated Branches:
  refs/heads/release-1.3 9c85ed233 -> 8dd05c053


[FLINK-6506] [build] Tests in flink-tests exceed memory resources on 
containerized Travis


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/8dd05c05
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/8dd05c05
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/8dd05c05

Branch: refs/heads/release-1.3
Commit: 8dd05c0530c87ed85703c396ac7dccee1fc86ac3
Parents: 9c85ed2
Author: Stefan Richter <[email protected]>
Authored: Tue May 9 11:23:30 2017 +0200
Committer: Stefan Richter <[email protected]>
Committed: Tue May 9 11:23:30 2017 +0200

----------------------------------------------------------------------
 flink-tests/pom.xml          | 3 +++
 tools/travis_mvn_watchdog.sh | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/8dd05c05/flink-tests/pom.xml
----------------------------------------------------------------------
diff --git a/flink-tests/pom.xml b/flink-tests/pom.xml
index e5e3e89..b17ef04 100644
--- a/flink-tests/pom.xml
+++ b/flink-tests/pom.xml
@@ -342,6 +342,9 @@ under the License.
                                                
<classpathDependencyExclude>org.apache.curator:curator-client</classpathDependencyExclude>
                                                
<classpathDependencyExclude>org.apache.curator:curator-framework</classpathDependencyExclude>
                                        </classpathDependencyExcludes>
+                                       <!-- We override the fork behaviour for 
those expensive tests to avoid process
+                                       kills due to container limits on travis 
-->
+                                       
<forkCount>${flink.forkCountTestPackage}</forkCount>
                                        <reuseForks>false</reuseForks>
                                        <environmentVariables>
                                                <!-- Make sure external hadoop 
environment will not affect maven building -->

http://git-wip-us.apache.org/repos/asf/flink/blob/8dd05c05/tools/travis_mvn_watchdog.sh
----------------------------------------------------------------------
diff --git a/tools/travis_mvn_watchdog.sh b/tools/travis_mvn_watchdog.sh
index 20afa87..d747f91 100755
--- a/tools/travis_mvn_watchdog.sh
+++ b/tools/travis_mvn_watchdog.sh
@@ -45,7 +45,7 @@ LOG4J_PROPERTIES=${HERE}/log4j-travis.properties
 
 # Maven command to run. We set the forkCount manually, because otherwise Maven 
sees too many cores
 # on the Travis VMs.
-MVN="mvn -Dflink.forkCount=2 -B $PROFILE -Dlog.dir=${ARTIFACTS_DIR} 
-Dlog4j.configuration=file://$LOG4J_PROPERTIES clean install"
+MVN="mvn -Dflink.forkCount=2 -Dflink.forkCountTestPackage=1 -B $PROFILE 
-Dlog.dir=${ARTIFACTS_DIR} -Dlog4j.configuration=file://$LOG4J_PROPERTIES clean 
install"
 
 MVN_PID="${ARTIFACTS_DIR}/watchdog.mvn.pid"
 MVN_EXIT="${ARTIFACTS_DIR}/watchdog.mvn.exit"
@@ -75,6 +75,7 @@ upload_artifacts_s3() {
        echo "COMPRESSING build artifacts."
 
        cd $ARTIFACTS_DIR
+       dmesg > container.log
        tar -zcvf $ARTIFACTS_FILE *
 
        # Upload to secured S3

Reply via email to