Skip to content

Commit 9e7b0f8

Browse files
yuxiqianqwencoder
andcommitted
[ci][hotfix] Enable parallel execution for pipeline-e2e tests
Change forkCount from 1 to 2 to enable parallel test execution. This should reduce the total test time from ~80 minutes to ~40-50 minutes. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
1 parent bcb4a4b commit 9e7b0f8

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

flink-cdc-e2e-tests/flink-cdc-pipeline-e2e-tests/pom.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ limitations under the License.
8383
<version>${project.version}</version>
8484
<type>test-jar</type>
8585
<scope>test</scope>
86+
<exclusions>
87+
<exclusion>
88+
<artifactId>reload4j</artifactId>
89+
<groupId>ch.qos.reload4j</groupId>
90+
</exclusion>
91+
</exclusions>
8692
</dependency>
8793
<dependency>
8894
<groupId>org.apache.flink</groupId>
@@ -332,6 +338,14 @@ limitations under the License.
332338
<groupId>org.slf4j</groupId>
333339
<artifactId>slf4j-log4j12</artifactId>
334340
</exclusion>
341+
<exclusion>
342+
<artifactId>reload4j</artifactId>
343+
<groupId>ch.qos.reload4j</groupId>
344+
</exclusion>
345+
<exclusion>
346+
<artifactId>slf4j-reload4j</artifactId>
347+
<groupId>org.slf4j</groupId>
348+
</exclusion>
335349
</exclusions>
336350
</dependency>
337351

@@ -353,6 +367,10 @@ limitations under the License.
353367
<artifactId>slf4j-log4j12</artifactId>
354368
<groupId>org.slf4j</groupId>
355369
</exclusion>
370+
<exclusion>
371+
<artifactId>reload4j</artifactId>
372+
<groupId>ch.qos.reload4j</groupId>
373+
</exclusion>
356374
</exclusions>
357375
</dependency>
358376

@@ -375,6 +393,10 @@ limitations under the License.
375393
<artifactId>slf4j-log4j12</artifactId>
376394
<groupId>org.slf4j</groupId>
377395
</exclusion>
396+
<exclusion>
397+
<artifactId>reload4j</artifactId>
398+
<groupId>ch.qos.reload4j</groupId>
399+
</exclusion>
378400
</exclusions>
379401
</dependency>
380402

@@ -397,6 +419,14 @@ limitations under the License.
397419
<artifactId>slf4j-log4j12</artifactId>
398420
<groupId>org.slf4j</groupId>
399421
</exclusion>
422+
<exclusion>
423+
<artifactId>reload4j</artifactId>
424+
<groupId>ch.qos.reload4j</groupId>
425+
</exclusion>
426+
<exclusion>
427+
<artifactId>slf4j-reload4j</artifactId>
428+
<groupId>org.slf4j</groupId>
429+
</exclusion>
400430
</exclusions>
401431
</dependency>
402432

@@ -448,6 +478,8 @@ limitations under the License.
448478
<systemPropertyVariables>
449479
<moduleDir>${project.basedir}</moduleDir>
450480
</systemPropertyVariables>
481+
<parallel>classes</parallel>
482+
<threadCount>2</threadCount>
451483
</configuration>
452484
</execution>
453485
<execution>

flink-cdc-e2e-tests/flink-cdc-pipeline-e2e-tests/src/test/java/org/apache/flink/cdc/pipeline/tests/utils/PipelineTestEnvironment.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
import org.testcontainers.containers.Network;
4646
import org.testcontainers.containers.output.FrameConsumerResultCallback;
4747
import org.testcontainers.containers.output.OutputFrame;
48-
import org.testcontainers.containers.output.Slf4jLogConsumer;
4948
import org.testcontainers.containers.output.ToStringConsumer;
5049
import org.testcontainers.images.builder.Transferable;
5150
import org.testcontainers.junit.jupiter.Container;
@@ -114,8 +113,7 @@ private int getParallelism() {
114113
.withUsername("flinkuser")
115114
.withPassword("flinkpw")
116115
.withNetwork(NETWORK)
117-
.withNetworkAliases(INTER_CONTAINER_MYSQL_ALIAS)
118-
.withLogConsumer(new Slf4jLogConsumer(LOG));
116+
.withNetworkAliases(INTER_CONTAINER_MYSQL_ALIAS);
119117

120118
// ------------------------------------------------------------------------------------------
121119
// Flink Variables

0 commit comments

Comments
 (0)