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 <[email protected]>
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 <[email protected]>
Signed-off-by: yangjie01 <[email protected]>
---
.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: [email protected]
For additional commands, e-mail: [email protected]