Skip to content

Commit 5c54e27

Browse files
committed
[test/flink] Se forkCount=1 for versioned flink e2e tests
This closes apache#1125.
1 parent 94c8073 commit 5c54e27

File tree

4 files changed

+117
-0
lines changed

4 files changed

+117
-0
lines changed

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,42 @@
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+
<!-- e2e test with flink/zookeeper cluster, we set forkCount=1 -->
174+
<execution>
175+
<id>e2e-tests</id>
176+
<phase>test</phase>
177+
<goals>
178+
<goal>test</goal>
179+
</goals>
180+
<configuration>
181+
<excludes>
182+
<!-- Test end with ITCase is e2e test in this module -->
183+
<exclude>**/*ITCase.*</exclude>
184+
</excludes>
185+
<forkCount>1</forkCount>
186+
</configuration>
187+
</execution>
188+
189+
<!-- others tests, reuse parent's config -->
190+
<execution>
191+
<id>default-test</id>
192+
<phase>test</phase>
193+
<goals>
194+
<goal>test</goal>
195+
</goals>
196+
<configuration>
197+
<excludes>
198+
<exclude>**/*ITCase.*</exclude>
199+
</excludes>
200+
</configuration>
201+
</execution>
202+
</executions>
203+
</plugin>
168204
<plugin>
169205
<groupId>org.apache.maven.plugins</groupId>
170206
<artifactId>maven-shade-plugin</artifactId>

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

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,43 @@
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+
<!-- e2e test with flink/zookeeper cluster, we set forkCount=1 -->
167+
<execution>
168+
<id>e2e-tests</id>
169+
<phase>test</phase>
170+
<goals>
171+
<goal>test</goal>
172+
</goals>
173+
<configuration>
174+
<excludes>
175+
<!-- Test end with ITCase is e2e test in this module -->
176+
<exclude>**/*ITCase.*</exclude>
177+
</excludes>
178+
<forkCount>1</forkCount>
179+
</configuration>
180+
</execution>
181+
182+
<!-- others tests, reuse parent's config -->
183+
<execution>
184+
<id>default-test</id>
185+
<phase>test</phase>
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+
161198
<plugin>
162199
<groupId>org.apache.maven.plugins</groupId>
163200
<artifactId>maven-shade-plugin</artifactId>

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

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,43 @@
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+
<!-- e2e test with flink/zookeeper cluster, we set forkCount=1 -->
166+
<execution>
167+
<id>e2e-tests</id>
168+
<phase>test</phase>
169+
<goals>
170+
<goal>test</goal>
171+
</goals>
172+
<configuration>
173+
<excludes>
174+
<!-- Test end with ITCase is e2e test in this module -->
175+
<exclude>**/*ITCase.*</exclude>
176+
</excludes>
177+
<forkCount>1</forkCount>
178+
</configuration>
179+
</execution>
180+
181+
<!-- others tests, reuse parent's config -->
182+
<execution>
183+
<id>default-test</id>
184+
<phase>test</phase>
185+
<goals>
186+
<goal>test</goal>
187+
</goals>
188+
<configuration>
189+
<excludes>
190+
<exclude>**/*ITCase.*</exclude>
191+
</excludes>
192+
</configuration>
193+
</execution>
194+
</executions>
195+
</plugin>
196+
160197
<plugin>
161198
<groupId>org.apache.maven.plugins</groupId>
162199
<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)