This is an automated email from the ASF dual-hosted git repository. chesnay pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink.git
commit 6b71e44ff929ae8af89234b105f15aeb33029a8e Author: Chesnay Schepler <[email protected]> AuthorDate: Fri Jun 10 15:28:06 2022 +0200 [FLINK-28006][tests] Run prod architecture tests in 1 JVM --- .../flink-architecture-tests-production/pom.xml | 14 ++++++++++++++ pom.xml | 3 +++ 2 files changed, 17 insertions(+) diff --git a/flink-architecture-tests/flink-architecture-tests-production/pom.xml b/flink-architecture-tests/flink-architecture-tests-production/pom.xml index 7031ced73e8..75138a412b5 100644 --- a/flink-architecture-tests/flink-architecture-tests-production/pom.xml +++ b/flink-architecture-tests/flink-architecture-tests-production/pom.xml @@ -222,6 +222,20 @@ under the License. </execution> </executions> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <executions> + <execution> + <id>default-test</id> + <configuration> + <!-- Run everything in 1 JVM because we load a lot of classes into memory --> + <forkCount>1</forkCount> + <argLine>${flink.surefire.baseArgLine} -Xmx${flink.XmxMax}</argLine> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </project> diff --git a/pom.xml b/pom.xml index baa7cbe4d69..fda2acda80e 100644 --- a/pom.xml +++ b/pom.xml @@ -108,7 +108,10 @@ under the License. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <hadoop.version>2.8.5</hadoop.version> + <flink.XmxMax>4096m</flink.XmxMax> + <!-- XmxMax / forkCountITCase --> <flink.XmxITCase>2048m</flink.XmxITCase> + <!-- XmxMax / forkCountUnitTest --> <flink.XmxUnitTest>1024m</flink.XmxUnitTest> <!-- Need to use a user property here because the surefire forkCount is not exposed as a property. With this we can set
