feat: ci timeout optimize (#606)
* ci timeout optimize
* change memory size
* translate english
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a4bfd75..fd78fbf 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -7,7 +7,7 @@
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 ea96947..09f8ba7 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 7c2276d..8427f2c 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>