flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmetz...@apache.org
Subject flink git commit: [FLINK-4151] Split test execution on travis into two groups (The groups being tests starting from A-N and N-Z)
Date Wed, 06 Jul 2016 11:42:58 GMT
Repository: flink
Updated Branches:
  refs/heads/master a13ba7b38 -> f1499388b


[FLINK-4151] Split test execution on travis into two groups
(The groups being tests starting from A-N and N-Z)

This closes #2201


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

Branch: refs/heads/master
Commit: f1499388b31e00455967a0c62338377f18b304b0
Parents: a13ba7b
Author: Robert Metzger <rmetzger@apache.org>
Authored: Mon Jul 4 16:55:47 2016 +0200
Committer: Robert Metzger <rmetzger@apache.org>
Committed: Wed Jul 6 12:10:42 2016 +0200

----------------------------------------------------------------------
 .travis.yml | 29 ++++++++++++++++++++++-------
 pom.xml     | 24 ++++++++++++++++++++++++
 2 files changed, 46 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/f1499388/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 57f4a52..024f716 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,16 +16,31 @@ language: java
 # The file assumes a certain build order for the maven / nightly build deployments.
 matrix:
   include:
+  # Always run test groups A and B together
     - jdk: "oraclejdk8"
-      env: PROFILE="-Dhadoop.version=2.7.2 -Dscala-2.11 -Pinclude-yarn-tests -Dmaven.javadoc.skip=true"
+      env: PROFILE="-Dhadoop.version=2.7.2 -Dscala-2.11 -Pinclude-yarn-tests,flink-fast-tests-a
-Dmaven.javadoc.skip=true"
     - jdk: "oraclejdk8"
-      env: PROFILE="-Dhadoop.version=2.6.3 -Pinclude-yarn-tests -Dmaven.javadoc.skip=true"
+      env: PROFILE="-Dhadoop.version=2.7.2 -Dscala-2.11 -Pinclude-yarn-tests,flink-fast-tests-b
-Dmaven.javadoc.skip=true"
+
+    - jdk: "oraclejdk8"
+      env: PROFILE="-Dhadoop.version=2.6.3 -Pinclude-yarn-tests,flink-fast-tests-a -Dmaven.javadoc.skip=true"
+    - jdk: "oraclejdk8"
+      env: PROFILE="-Dhadoop.version=2.6.3 -Pinclude-yarn-tests,flink-fast-tests-b -Dmaven.javadoc.skip=true"
+
     - jdk: "openjdk7"
-      env: PROFILE="-Dhadoop.version=2.4.1 -Dscala-2.11 -Pinclude-yarn-tests"
-    - jdk: "oraclejdk7" # this uploads the Hadoop 2 build to Maven and S3
-      env: PROFILE="-Dhadoop.version=2.3.0"
-    - jdk: "openjdk7" # this uploads the Hadoop 1 build to Maven and S3
-      env: PROFILE="-Dhadoop.profile=1" 
+      env: PROFILE="-Dhadoop.version=2.4.1 -Dscala-2.11 -Pinclude-yarn-tests,flink-fast-tests-a"
+    - jdk: "openjdk7"
+      env: PROFILE="-Dhadoop.version=2.4.1 -Dscala-2.11 -Pinclude-yarn-tests,flink-fast-tests-b"
+
+    - jdk: "oraclejdk7"
+      env: PROFILE="-Dhadoop.version=2.3.0 -Pflink-fast-tests-a"
+    - jdk: "oraclejdk7"
+      env: PROFILE="-Dhadoop.version=2.3.0 -Pflink-fast-tests-b"
+
+    - jdk: "openjdk7" 
+      env: PROFILE="-Dhadoop.profile=1 -Pflink-fast-tests-a" 
+    - jdk: "openjdk7" 
+      env: PROFILE="-Dhadoop.profile=1 -Pflink-fast-tests-b" 
 
 
 git:

http://git-wip-us.apache.org/repos/asf/flink/blob/f1499388/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index c038844..a161cdc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -82,6 +82,8 @@ under the License.
 		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
 		<!-- Mutable name of the hadoop shading artifact. The module name can contain a scala
version suffix. -->
 		<shading-artifact.name>error</shading-artifact.name>
+		<!-- Internal property to reduce build times on TravisCi -->
+		<flink-fast-tests-pattern>never-match-me</flink-fast-tests-pattern>
 		<!-- The shading artifact module name can be used as a module name. it does not get
a scala version suffix -->
 		<shading-artifact-module.name>error</shading-artifact-module.name>
 		<hadoop-one.version>1.2.1</hadoop-one.version>
@@ -213,6 +215,7 @@ under the License.
 				<artifactId>avro</artifactId>
 				<version>1.7.6</version>
 			</dependency>
+			
 			<dependency>
 				<groupId>org.apache.avro</groupId>
 				<artifactId>avro-ipc</artifactId>
@@ -741,6 +744,23 @@ under the License.
 				</plugins>
 			</build>
 		</profile>
+		<!--
+			Test profile A excludes all tests starting with (A-M).
+			profile B excludes tests (N-Z).
+			This allows us to split up the test execution into separate profiles.
+		-->
+		<profile>
+			<id>flink-fast-tests-a</id>
+			<properties>
+				<flink-fast-tests-pattern>%regex[.*/[A-M].*]</flink-fast-tests-pattern>
+			</properties>
+		</profile>
+		<profile>
+			<id>flink-fast-tests-b</id>
+			<properties>
+				<flink-fast-tests-pattern>%regex[.*/[N-Z].*]</flink-fast-tests-pattern>
+			</properties>
+		</profile>
 	</profiles>
 
 	<build>
@@ -989,6 +1009,7 @@ under the License.
 						<configuration>
 							<excludes>
 								<exclude>**/*ITCase.*</exclude>
+								<exclude>${flink-fast-tests-pattern}</exclude>
 							</excludes>
 						</configuration>
 					</execution>
@@ -1002,6 +1023,9 @@ under the License.
 							<includes>
 								<include>**/*ITCase.*</include>
 							</includes>
+							<excludes>
+								<exclude>${flink-fast-tests-pattern}</exclude>
+							</excludes>
 							<reuseForks>false</reuseForks>
 						</configuration>
 					</execution>


Mime
View raw message