Skip to content

Commit f149938

Browse files
committed
[FLINK-4151] Split test execution on travis into two groups
(The groups being tests starting from A-N and N-Z) This closes apache#2201
1 parent a13ba7b commit f149938

File tree

2 files changed

+46
-7
lines changed

2 files changed

+46
-7
lines changed

.travis.yml

+22-7
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,31 @@ language: java
1616
# The file assumes a certain build order for the maven / nightly build deployments.
1717
matrix:
1818
include:
19+
# Always run test groups A and B together
1920
- jdk: "oraclejdk8"
20-
env: PROFILE="-Dhadoop.version=2.7.2 -Dscala-2.11 -Pinclude-yarn-tests -Dmaven.javadoc.skip=true"
21+
env: PROFILE="-Dhadoop.version=2.7.2 -Dscala-2.11 -Pinclude-yarn-tests,flink-fast-tests-a -Dmaven.javadoc.skip=true"
2122
- jdk: "oraclejdk8"
22-
env: PROFILE="-Dhadoop.version=2.6.3 -Pinclude-yarn-tests -Dmaven.javadoc.skip=true"
23+
env: PROFILE="-Dhadoop.version=2.7.2 -Dscala-2.11 -Pinclude-yarn-tests,flink-fast-tests-b -Dmaven.javadoc.skip=true"
24+
25+
- jdk: "oraclejdk8"
26+
env: PROFILE="-Dhadoop.version=2.6.3 -Pinclude-yarn-tests,flink-fast-tests-a -Dmaven.javadoc.skip=true"
27+
- jdk: "oraclejdk8"
28+
env: PROFILE="-Dhadoop.version=2.6.3 -Pinclude-yarn-tests,flink-fast-tests-b -Dmaven.javadoc.skip=true"
29+
2330
- jdk: "openjdk7"
24-
env: PROFILE="-Dhadoop.version=2.4.1 -Dscala-2.11 -Pinclude-yarn-tests"
25-
- jdk: "oraclejdk7" # this uploads the Hadoop 2 build to Maven and S3
26-
env: PROFILE="-Dhadoop.version=2.3.0"
27-
- jdk: "openjdk7" # this uploads the Hadoop 1 build to Maven and S3
28-
env: PROFILE="-Dhadoop.profile=1"
31+
env: PROFILE="-Dhadoop.version=2.4.1 -Dscala-2.11 -Pinclude-yarn-tests,flink-fast-tests-a"
32+
- jdk: "openjdk7"
33+
env: PROFILE="-Dhadoop.version=2.4.1 -Dscala-2.11 -Pinclude-yarn-tests,flink-fast-tests-b"
34+
35+
- jdk: "oraclejdk7"
36+
env: PROFILE="-Dhadoop.version=2.3.0 -Pflink-fast-tests-a"
37+
- jdk: "oraclejdk7"
38+
env: PROFILE="-Dhadoop.version=2.3.0 -Pflink-fast-tests-b"
39+
40+
- jdk: "openjdk7"
41+
env: PROFILE="-Dhadoop.profile=1 -Pflink-fast-tests-a"
42+
- jdk: "openjdk7"
43+
env: PROFILE="-Dhadoop.profile=1 -Pflink-fast-tests-b"
2944

3045

3146
git:

pom.xml

+24
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ under the License.
8282
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
8383
<!-- Mutable name of the hadoop shading artifact. The module name can contain a scala version suffix. -->
8484
<shading-artifact.name>error</shading-artifact.name>
85+
<!-- Internal property to reduce build times on TravisCi -->
86+
<flink-fast-tests-pattern>never-match-me</flink-fast-tests-pattern>
8587
<!-- The shading artifact module name can be used as a module name. it does not get a scala version suffix -->
8688
<shading-artifact-module.name>error</shading-artifact-module.name>
8789
<hadoop-one.version>1.2.1</hadoop-one.version>
@@ -213,6 +215,7 @@ under the License.
213215
<artifactId>avro</artifactId>
214216
<version>1.7.6</version>
215217
</dependency>
218+
216219
<dependency>
217220
<groupId>org.apache.avro</groupId>
218221
<artifactId>avro-ipc</artifactId>
@@ -741,6 +744,23 @@ under the License.
741744
</plugins>
742745
</build>
743746
</profile>
747+
<!--
748+
Test profile A excludes all tests starting with (A-M).
749+
profile B excludes tests (N-Z).
750+
This allows us to split up the test execution into separate profiles.
751+
-->
752+
<profile>
753+
<id>flink-fast-tests-a</id>
754+
<properties>
755+
<flink-fast-tests-pattern>%regex[.*/[A-M].*]</flink-fast-tests-pattern>
756+
</properties>
757+
</profile>
758+
<profile>
759+
<id>flink-fast-tests-b</id>
760+
<properties>
761+
<flink-fast-tests-pattern>%regex[.*/[N-Z].*]</flink-fast-tests-pattern>
762+
</properties>
763+
</profile>
744764
</profiles>
745765

746766
<build>
@@ -989,6 +1009,7 @@ under the License.
9891009
<configuration>
9901010
<excludes>
9911011
<exclude>**/*ITCase.*</exclude>
1012+
<exclude>${flink-fast-tests-pattern}</exclude>
9921013
</excludes>
9931014
</configuration>
9941015
</execution>
@@ -1002,6 +1023,9 @@ under the License.
10021023
<includes>
10031024
<include>**/*ITCase.*</include>
10041025
</includes>
1026+
<excludes>
1027+
<exclude>${flink-fast-tests-pattern}</exclude>
1028+
</excludes>
10051029
<reuseForks>false</reuseForks>
10061030
</configuration>
10071031
</execution>

0 commit comments

Comments
 (0)