From 0714cae31d3e811810db3d5e4ca3c0e1ea09a943 Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Mon, 25 Mar 2024 21:57:43 -0700 Subject: [PATCH] Limit maven memory on CI Maven process spawns sub processes, including tests processes, so it's important that the maven process uses limited memory, as the whole node's memory isn't unbounded. This restores maven memory settings as of before commit f133a42e4e1df7c7dc8777edf45df71b3fa0d1b6. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 058895c2b77d..00af587e199e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,8 +19,8 @@ env: CONTINUOUS_INTEGRATION: true # allow overriding Maven command MAVEN: ./mvnw - MAVEN_OPTS: "" - MAVEN_INSTALL_OPTS: "" + MAVEN_OPTS: "-Xmx512M -XX:+ExitOnOutOfMemoryError" + MAVEN_INSTALL_OPTS: "-Xmx3G -XX:+ExitOnOutOfMemoryError" MAVEN_FAST_INSTALL: "-B -V --quiet -T 1C -DskipTests -Dmaven.source.skip=true -Dair.check.skip-all" MAVEN_COMPILE_COMMITS: "-B --quiet -T 1C -DskipTests -Dmaven.source.skip=true -Dair.check.skip-all=true -Dmaven.javadoc.skip=true --no-snapshot-updates --no-transfer-progress -pl '!:trino-server-rpm'" MAVEN_GIB: "-P gib -Dgib.referenceBranch=refs/remotes/origin/${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.event.repository.default_branch }}"