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 fe3ef20d6418 [SPARK-48193][INFRA] Make `maven-deploy-plugin` retry 3 
times
fe3ef20d6418 is described below

commit fe3ef20d6418c4ed8965b2d61bf1d32b551e7b53
Author: panbingkun <panbing...@baidu.com>
AuthorDate: Wed May 8 19:14:46 2024 +0900

    [SPARK-48193][INFRA] Make `maven-deploy-plugin` retry 3 times
    
    ### What changes were proposed in this pull request?
    The pr aims to make maven plugin `maven-deploy-plugin` retry `3` times.
    
    ### Why are the changes needed?
    I found that our `the daily scheduled publish snapshot` workflow of GA 
often failed.
    https://github.com/apache/spark/actions/workflows/publish_snapshot.yml
    <img width="1031" alt="image" 
src="https://github.com/apache/spark/assets/15246973/2a759bf4-85de-4bc2-aff7-a226bd475321";>
    I tried to make it as successful as possible by changing the time of 
retries from `1`(default) to `3`.
    
https://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html#retryFailedDeploymentCount
    
https://maven.apache.org/plugins/maven-deploy-plugin/examples/deploy-network-issues.html#configuring-multiple-tries
    
    ### Does this PR introduce _any_ user-facing change?
    No.
    
    ### How was this patch tested?
    Keep observing `the daily scheduled publish snapshot` workflow of GA.
    https://github.com/apache/spark/actions/workflows/publish_snapshot.yml
    
    ### Was this patch authored or co-authored using generative AI tooling?
    No.
    
    Closes #46471 from panbingkun/SPARK-48193.
    
    Authored-by: panbingkun <panbing...@baidu.com>
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
---
 pom.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pom.xml b/pom.xml
index f6f11d94cce3..c72482fd6a41 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3384,6 +3384,9 @@
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-deploy-plugin</artifactId>
           <version>3.1.2</version>
+          <configuration>
+            <retryFailedDeploymentCount>3</retryFailedDeploymentCount>
+          </configuration>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to