Skip to content

Commit

Permalink
[FLINK-6506] [build] Tests in flink-tests exceed memory resources on …
Browse files Browse the repository at this point in the history
…containerized Travis
  • Loading branch information
StefanRRichter committed May 9, 2017
1 parent f5471bd commit 6b451d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions flink-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -->
Expand Down
3 changes: 2 additions & 1 deletion tools/travis_mvn_watchdog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6b451d9

Please sign in to comment.