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 <git...@enrico.minack.dev>
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 <git...@enrico.minack.dev>
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
---
 .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

Reply via email to