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

loogn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/geaflow.git


The following commit(s) were added to refs/heads/master by this push:
     new 66930c4d feat: ci timeout optimize (#606)
66930c4d is described below

commit 66930c4d00c040794e158c80d87f3aa166cc3ab1
Author: kitalkuyo-gita <[email protected]>
AuthorDate: Tue Sep 9 21:00:11 2025 +0800

    feat: ci timeout optimize (#606)
    
    * ci timeout optimize
    
    * change memory size
    
    * translate english
---
 .github/workflows/ci.yml                        |  2 +-
 geaflow/geaflow-dsl/geaflow-dsl-runtime/pom.xml | 61 +++++++++++++++++++++++++
 pom.xml                                         | 13 +++++-
 3 files changed, 73 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a4bfd754..fd78fbf6 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -7,7 +7,7 @@ on:
     branches: [ "master" ]
 
 env:
-  JAVA_TOOL_OPTIONS: -Xmx3g
+  JAVA_TOOL_OPTIONS: -Xmx4g
 
 jobs:
   build:
diff --git a/geaflow/geaflow-dsl/geaflow-dsl-runtime/pom.xml 
b/geaflow/geaflow-dsl/geaflow-dsl-runtime/pom.xml
index ea969478..09f8ba71 100644
--- a/geaflow/geaflow-dsl/geaflow-dsl-runtime/pom.xml
+++ b/geaflow/geaflow-dsl/geaflow-dsl-runtime/pom.xml
@@ -148,4 +148,65 @@
             <artifactId>geaflow-view-meta</artifactId>
         </dependency>
     </dependencies>
+
+    <build>  
+        <plugins>  
+            <plugin>  
+                <groupId>org.apache.maven.plugins</groupId>  
+                <artifactId>maven-surefire-plugin</artifactId>  
+                <version>3.0.0-M3</version>  
+                <configuration>  
+                    <!-- Optimize memory usage -->  
+                    <argLine>-Xmx512m -XX:MaxMetaspaceSize=256m -XX:+UseG1GC 
-XX:MaxGCPauseMillis=200 -Djava.awt.headless=true</argLine>  
+                      
+                    <!-- Moderate parallel configuration -->  
+                    <forkCount>1</forkCount>  
+                    <reuseForks>false</reuseForks>  
+                    <parallel>classes</parallel>  
+                    <threadCount>2</threadCount>  
+                    <perCoreThreadCount>false</perCoreThreadCount>  
+                      
+                    <!-- Timeout and failure handling -->  
+                    
<forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds>  
+                    <testFailureIgnore>false</testFailureIgnore>  
+                    <skipAfterFailureCount>1</skipAfterFailureCount>  
+                      
+                    <!-- System properties -->  
+                    <systemPropertyVariables>  
+                        <java.awt.headless>true</java.awt.headless>  
+                        <file.encoding>UTF-8</file.encoding>  
+                        <user.timezone>UTC</user.timezone>  
+                    </systemPropertyVariables>  
+                </configuration>  
+            </plugin>  
+        </plugins>  
+    </build>  
+      
+    <profiles>  
+        <profile>  
+            <id>integration-tests</id>  
+            <build>  
+                <plugins>  
+                    <plugin>  
+                        <groupId>org.apache.maven.plugins</groupId>  
+                        <artifactId>maven-surefire-plugin</artifactId>  
+                        <version>3.0.0-M3</version>  
+                        <configuration>  
+                            <argLine>-Xmx1024m -XX:MaxMetaspaceSize=512m 
-XX:+UseG1GC</argLine>  
+                            <forkCount>1</forkCount>  
+                            <reuseForks>false</reuseForks>  
+                            <parallel>none</parallel>  
+                            <includes>  
+                                <include>**/GQLInsertTest.java</include>  
+                            </includes>  
+                            <excludes>  
+                                <exclude>none</exclude>  
+                            </excludes>  
+                            
<forkedProcessTimeoutInSeconds>900</forkedProcessTimeoutInSeconds>  
+                        </configuration>  
+                    </plugin>  
+                </plugins>  
+            </build>  
+        </profile>  
+    </profiles>
 </project>
diff --git a/pom.xml b/pom.xml
index 7c2276dc..8427f2ca 100644
--- a/pom.xml
+++ b/pom.xml
@@ -119,7 +119,7 @@
                     </execution>
                 </executions>
             </plugin>
-            <!--增加jacoco 配置 -->
+            <!-- Add jacoco configuration -->
             <plugin>
                 <groupId>org.jacoco</groupId>
                 <artifactId>jacoco-maven-plugin</artifactId>
@@ -130,9 +130,18 @@
                         <goals>
                             <goal>prepare-agent</goal>
                         </goals>
-                        <configuration>
+                        <configuration>  
                             <propertyName>coverageAgent</propertyName>
                             <destFile>${jacoco.path}</destFile>
+                            <!-- Allocate 400MB for each test process, reserve 
system overhead -->  
+                            <argLine>${coverageAgent} -Xmx400m 
-XX:MaxMetaspaceSize=128m -XX:+UseG1GC</argLine>  
+      
+                            <!-- Maximum 2 parallel processes -->  
+                            <forkCount>2</forkCount>  
+                            <reuseForks>false</reuseForks>  
+                            <parallel>classes</parallel>  
+                            <threadCount>2</threadCount>  
+                            <perCoreThreadCount>false</perCoreThreadCount>  
                         </configuration>
                     </execution>
                     <execution>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to