You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2022/06/15 10:41:46 UTC

[flink] branch master updated (f2e25d797e7 -> 6b71e44ff92)

This is an automated email from the ASF dual-hosted git repository.

chesnay pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git


    from f2e25d797e7 [FLINK-28005][tests] Reduce network memory in UnalignedCheckpointTestBase
     new eb3bc381967 [hotfix][build] Introduce property for common surefire arg line
     new 6b71e44ff92 [FLINK-28006][tests] Run prod architecture tests in 1 JVM

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../flink-architecture-tests-production/pom.xml            | 14 ++++++++++++++
 pom.xml                                                    |  8 ++++++--
 2 files changed, 20 insertions(+), 2 deletions(-)


[flink] 02/02: [FLINK-28006][tests] Run prod architecture tests in 1 JVM

Posted by ch...@apache.org.
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 <ch...@apache.org>
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


[flink] 01/02: [hotfix][build] Introduce property for common surefire arg line

Posted by ch...@apache.org.
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 eb3bc3819675fdf8985b690e01dd201a3842965a
Author: Chesnay Schepler <ch...@apache.org>
AuthorDate: Fri Jun 10 15:27:31 2022 +0200

    [hotfix][build] Introduce property for common surefire arg line
---
 pom.xml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index bcfcad205a3..baa7cbe4d69 100644
--- a/pom.xml
+++ b/pom.xml
@@ -118,6 +118,7 @@ under the License.
 		<flink.forkCountITCase>2</flink.forkCountITCase>
 		<flink.forkCountUnitTest>4</flink.forkCountUnitTest>
 		<flink.reuseForks>true</flink.reuseForks>
+		<flink.surefire.baseArgLine>-XX:+UseG1GC -Xms256m</flink.surefire.baseArgLine>
 		<flink.shaded.version>15.0</flink.shaded.version>
 		<flink.shaded.jackson.version>2.12.4</flink.shaded.jackson.version>
 		<target.java.version>1.8</target.java.version>
@@ -1651,7 +1652,7 @@ under the License.
 								<include>${test.unit.pattern}</include>
 							</includes>
 							<forkCount>${flink.forkCountUnitTest}</forkCount>
-							<argLine>-Xms256m -Xmx${flink.XmxUnitTest} -XX:+UseG1GC</argLine>
+							<argLine>${flink.surefire.baseArgLine} -Xmx${flink.XmxUnitTest}</argLine>
 						</configuration>
 					</execution>
 					<!--execute all the integration tests-->
@@ -1672,7 +1673,7 @@ under the License.
 								<exclude>**/*$*</exclude>
 							</excludes>
 							<forkCount>${flink.forkCountITCase}</forkCount>
-							<argLine>-Xms256m -Xmx${flink.XmxITCase} -XX:+UseG1GC</argLine>
+							<argLine>${flink.surefire.baseArgLine} -Xmx${flink.XmxITCase}</argLine>
 							<reuseForks>false</reuseForks>
 						</configuration>
 					</execution>