Skip to content

Commit 56279b3

Browse files
authored
[test/flink] Set forkCount=1 for versioned flink e2e tests (#1179)
This closes #1125
1 parent 32c066f commit 56279b3

File tree

4 files changed

+120
-0
lines changed

4 files changed

+120
-0
lines changed

fluss-flink/fluss-flink-1.18/pom.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,43 @@
165165

166166
<build>
167167
<plugins>
168+
<plugin>
169+
<groupId>org.apache.maven.plugins</groupId>
170+
<artifactId>maven-surefire-plugin</artifactId>
171+
<version>3.0.0-M5</version>
172+
<executions>
173+
<!-- Test end with ITCase is e2e test in this module -->
174+
<execution>
175+
<id>integration-tests</id>
176+
<phase>integration-test</phase>
177+
<inherited>false</inherited>
178+
<goals>
179+
<goal>test</goal>
180+
</goals>
181+
<configuration>
182+
<includes>
183+
<include>**/*ITCase.*</include>
184+
</includes>
185+
<!-- e2e test with flink/zookeeper cluster, we set forkCount=1 -->
186+
<forkCount>1</forkCount>
187+
</configuration>
188+
</execution>
189+
<!-- others unit tests -->
190+
<execution>
191+
<id>default-test</id>
192+
<phase>test</phase>
193+
<inherited>false</inherited>
194+
<goals>
195+
<goal>test</goal>
196+
</goals>
197+
<configuration>
198+
<excludes>
199+
<exclude>**/*ITCase.*</exclude>
200+
</excludes>
201+
</configuration>
202+
</execution>
203+
</executions>
204+
</plugin>
168205
<plugin>
169206
<groupId>org.apache.maven.plugins</groupId>
170207
<artifactId>maven-shade-plugin</artifactId>

fluss-flink/fluss-flink-1.19/pom.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,44 @@
158158

159159
<build>
160160
<plugins>
161+
<plugin>
162+
<groupId>org.apache.maven.plugins</groupId>
163+
<artifactId>maven-surefire-plugin</artifactId>
164+
<version>3.0.0-M5</version>
165+
<executions>
166+
<!-- Test end with ITCase is e2e test in this module -->
167+
<execution>
168+
<id>integration-tests</id>
169+
<phase>integration-test</phase>
170+
<inherited>false</inherited>
171+
<goals>
172+
<goal>test</goal>
173+
</goals>
174+
<configuration>
175+
<includes>
176+
<include>**/*ITCase.*</include>
177+
</includes>
178+
<!-- e2e test with flink/zookeeper cluster, we set forkCount=1 -->
179+
<forkCount>1</forkCount>
180+
</configuration>
181+
</execution>
182+
<!-- others unit tests -->
183+
<execution>
184+
<id>default-test</id>
185+
<phase>test</phase>
186+
<inherited>false</inherited>
187+
<goals>
188+
<goal>test</goal>
189+
</goals>
190+
<configuration>
191+
<excludes>
192+
<exclude>**/*ITCase.*</exclude>
193+
</excludes>
194+
</configuration>
195+
</execution>
196+
</executions>
197+
</plugin>
198+
161199
<plugin>
162200
<groupId>org.apache.maven.plugins</groupId>
163201
<artifactId>maven-shade-plugin</artifactId>

fluss-flink/fluss-flink-1.20/pom.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,44 @@
157157

158158
<build>
159159
<plugins>
160+
<plugin>
161+
<groupId>org.apache.maven.plugins</groupId>
162+
<artifactId>maven-surefire-plugin</artifactId>
163+
<version>3.0.0-M5</version>
164+
<executions>
165+
<!-- Test end with ITCase is e2e test in this module -->
166+
<execution>
167+
<id>integration-tests</id>
168+
<phase>integration-test</phase>
169+
<inherited>false</inherited>
170+
<goals>
171+
<goal>test</goal>
172+
</goals>
173+
<configuration>
174+
<includes>
175+
<include>**/*ITCase.*</include>
176+
</includes>
177+
<!-- e2e test with flink/zookeeper cluster, we set forkCount=1 -->
178+
<forkCount>1</forkCount>
179+
</configuration>
180+
</execution>
181+
<!-- others unit tests -->
182+
<execution>
183+
<id>default-test</id>
184+
<phase>test</phase>
185+
<inherited>false</inherited>
186+
<goals>
187+
<goal>test</goal>
188+
</goals>
189+
<configuration>
190+
<excludes>
191+
<exclude>**/*ITCase.*</exclude>
192+
</excludes>
193+
</configuration>
194+
</execution>
195+
</executions>
196+
</plugin>
197+
160198
<plugin>
161199
<groupId>org.apache.maven.plugins</groupId>
162200
<artifactId>maven-shade-plugin</artifactId>

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,13 @@
994994
<version>3.1.0</version>
995995
</plugin>
996996

997+
<!-- Pin the version of the maven surefire plugin -->
998+
<plugin>
999+
<groupId>org.apache.maven.plugins</groupId>
1000+
<artifactId>maven-surefire-plugin</artifactId>
1001+
<version>3.0.0-M5</version>
1002+
</plugin>
1003+
9971004
<!-- Pin the version of the maven shade plugin -->
9981005
<plugin>
9991006
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)