This is an automated email from the ASF dual-hosted git repository. zhanglistar pushed a commit to branch codex/flink-parallel-build in repository https://gitbox.apache.org/repos/asf/gluten.git
commit c2fa82584e363aae4d01e954d06cacf368eebf1f Author: zhangzhibiao <[email protected]> AuthorDate: Thu Jun 25 17:52:28 2026 +0800 [MINOR][FLINK] Enable parallel Maven builds (-T 1C) in Flink CI Use all available CPU cores for Maven module compilation by adding -T 1C (one thread per core) to all mvn invocations. Also bump MAVEN_OPTS heap from 2g to 4g to accommodate the higher memory pressure from concurrent module builds. --- .github/workflows/flink.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/flink.yml b/.github/workflows/flink.yml index 9479947420..96d54a910b 100644 --- a/.github/workflows/flink.yml +++ b/.github/workflows/flink.yml @@ -24,7 +24,7 @@ on: env: MAVEN_OPTS: >- - -Xmx2g + -Xmx4g --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED --add-opens=java.base/sun.nio.ch=org.apache.arrow.memory.core,ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED @@ -84,12 +84,12 @@ jobs: git clone -b gluten-0530 https://github.com/bigo-sg/velox4j.git cd velox4j && git reset --hard 115edf79d265a61c30d45dfcc6ce932ad92378ca git apply $GITHUB_WORKSPACE/gluten-flink/patches/fix-velox4j.patch - $GITHUB_WORKSPACE/build/mvn clean install -DskipTests -Dgpg.skip -Dspotless.skip=true + $GITHUB_WORKSPACE/build/mvn clean install -T 1C -DskipTests -Dgpg.skip -Dspotless.skip=true cd .. ccache -s git clone https://github.com/nexmark/nexmark.git cd nexmark - $GITHUB_WORKSPACE/build/mvn clean install -DskipTests + $GITHUB_WORKSPACE/build/mvn clean install -T 1C -DskipTests - name: Save ccache if: always() uses: actions/cache/save@v4 @@ -99,7 +99,7 @@ jobs: - name: Build Gluten Flink run: | cd $GITHUB_WORKSPACE/gluten-flink - $GITHUB_WORKSPACE/build/mvn clean package -Dmaven.test.skip=true + $GITHUB_WORKSPACE/build/mvn clean package -T 1C -Dmaven.test.skip=true - name: Run Unit Tests run: | cd $GITHUB_WORKSPACE/gluten-flink --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
