(spark) branch master updated: [SPARK-45651][BUILD][FOLLOWUP] Reduce mvn -Xmx option to 2g in publish_snapshot workflow
This is an automated email from the ASF dual-hosted git repository. yangjie01 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/spark.git The following commit(s) were added to refs/heads/master by this push: new 7e5ee50d3d5 [SPARK-45651][BUILD][FOLLOWUP] Reduce mvn -Xmx option to 2g in publish_snapshot workflow 7e5ee50d3d5 is described below commit 7e5ee50d3d5220047c8141ff1f3e7fb595193b85 Author: Enrico Minack AuthorDate: Fri Oct 27 17:43:01 2023 +0800 [SPARK-45651][BUILD][FOLLOWUP] Reduce mvn -Xmx option to 2g in publish_snapshot workflow ### What changes were proposed in this pull request? This re-does #43538, which has [falsely been reverted](https://github.com/apache/spark/pull/43538#issuecomment-1782568332). Limit max memory for `mvn clean deploy` to `2g` when run in `publish_snapshot` Github workflow. ### Why are the changes needed? The host that runs the workflow has only 7G of memory, while the `release-build.sh` script sets the limit to 12g, causing the process to be killed (for branch `master`). ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Not tested ### Was this patch authored or co-authored using generative AI tooling? No Closes #43555 from EnricoMi/publish-snapshot-mvn-xmx-2. Authored-by: Enrico Minack Signed-off-by: yangjie01 --- .github/workflows/publish_snapshot.yml | 1 + dev/create-release/release-build.sh| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_snapshot.yml b/.github/workflows/publish_snapshot.yml index 6d55f1afed0..c78b633a980 100644 --- a/.github/workflows/publish_snapshot.yml +++ b/.github/workflows/publish_snapshot.yml @@ -70,4 +70,5 @@ jobs: GPG_KEY: "not_used" GPG_PASSPHRASE: "not_used" GIT_REF: ${{ matrix.branch }} +MAVEN_MXM_OPT: 2g run: ./dev/create-release/release-build.sh publish-snapshot diff --git a/dev/create-release/release-build.sh b/dev/create-release/release-build.sh index f3571c4e48c..69494dc5107 100755 --- a/dev/create-release/release-build.sh +++ b/dev/create-release/release-build.sh @@ -227,7 +227,7 @@ git clean -d -f -x rm -f .gitignore cd .. -export MAVEN_OPTS="-Xss128m -Xmx12g -XX:ReservedCodeCacheSize=1g" +export MAVEN_OPTS="-Xss128m -Xmx${MAVEN_MXM_OPT:-12g} -XX:ReservedCodeCacheSize=1g" if [[ "$1" == "package" ]]; then # Source and binary tarballs - To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org
[spark] branch master updated: [SPARK-45651][BUILD][FOLLOWUP] Reduce mvn -Xmx option to 2g in publish_snapshot workflow
This is an automated email from the ASF dual-hosted git repository. gurwls223 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/spark.git The following commit(s) were added to refs/heads/master by this push: new 00c638cd4d9 [SPARK-45651][BUILD][FOLLOWUP] Reduce mvn -Xmx option to 2g in publish_snapshot workflow 00c638cd4d9 is described below commit 00c638cd4d91d90ed7d8d711b9937622bd308c4c Author: Enrico Minack AuthorDate: Fri Oct 27 09:10:13 2023 +0900 [SPARK-45651][BUILD][FOLLOWUP] Reduce mvn -Xmx option to 2g in publish_snapshot workflow ### What changes were proposed in this pull request? Limit max memory for `mvn clean deploy` to `2g` when run in `publish_snapshot` Github workflow. ### Why are the changes needed? The host that runs the workflow has only 7G of memory, while the `release-build.sh` script sets the limit to 12g, causing the process to be killed (for branch `master`). ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Not tested ### Was this patch authored or co-authored using generative AI tooling? No Closes #43538 from EnricoMi/publish-snapshot-mvn-xmx. Authored-by: Enrico Minack Signed-off-by: Hyukjin Kwon --- .github/workflows/publish_snapshot.yml | 1 + dev/create-release/release-build.sh| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_snapshot.yml b/.github/workflows/publish_snapshot.yml index 3354ab88a39..28737bdefc6 100644 --- a/.github/workflows/publish_snapshot.yml +++ b/.github/workflows/publish_snapshot.yml @@ -70,6 +70,7 @@ jobs: GPG_KEY: "not_used" GPG_PASSPHRASE: "not_used" GIT_REF: ${{ matrix.branch }} +MAVEN_MXM_OPT: 2g run: | while true do diff --git a/dev/create-release/release-build.sh b/dev/create-release/release-build.sh index f3571c4e48c..69494dc5107 100755 --- a/dev/create-release/release-build.sh +++ b/dev/create-release/release-build.sh @@ -227,7 +227,7 @@ git clean -d -f -x rm -f .gitignore cd .. -export MAVEN_OPTS="-Xss128m -Xmx12g -XX:ReservedCodeCacheSize=1g" +export MAVEN_OPTS="-Xss128m -Xmx${MAVEN_MXM_OPT:-12g} -XX:ReservedCodeCacheSize=1g" if [[ "$1" == "package" ]]; then # Source and binary tarballs - To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org