This is an automated email from the ASF dual-hosted git repository.

FrankChen021 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 4c1844a101b ci: resolve Apache parent POM before worker builds (#20459)
4c1844a101b is described below

commit 4c1844a101b4eee4c21ccae86de3d9f3b0ff39d8
Author: Edmond Abraham <[email protected]>
AuthorDate: Mon Oct 5 22:39:55 2026 -0400

    ci: resolve Apache parent POM before worker builds (#20459)
    
    * ci: resolve Apache parent POM before worker builds
    
    * ci: document parent POM preflight
---
 .github/workflows/worker.yml | 16 ++++++++++++++++
 pom.xml                      | 16 ++++++----------
 2 files changed, 22 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/worker.yml b/.github/workflows/worker.yml
index 1b08a3ceb75..93a6ceed0a2 100644
--- a/.github/workflows/worker.yml
+++ b/.github/workflows/worker.yml
@@ -72,6 +72,22 @@ jobs:
           java-version: ${{ inputs.jdk }}
           cache: 'maven'
 
+      # Keep parent-POM resolution separate and before the worker script so 
transient
+      # Maven Central failures are retried before job-specific build or test 
work starts.
+      - name: Resolve Apache parent POM
+        run: |
+          set -eu
+          for attempt in 1 2 3; do
+            if mvn -B -U -N validate -Pskip-static-checks 
-Dweb.console.skip=true; then
+              exit 0
+            fi
+            if [ "$attempt" -eq 3 ]; then
+              exit 1
+            fi
+            echo "::warning ::Maven parent resolution failed (attempt 
$attempt); retrying in 10s"
+            sleep 10
+          done
+
       - name: Download required artifacts
         if: ${{ inputs.artifacts_to_download != '' }}
         uses: actions/download-artifact@v8
diff --git a/pom.xml b/pom.xml
index 46cd05e6cd0..7f4d6ad8cf8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -171,10 +171,6 @@
             <!-- required for SIMD for druid.expressions.useVectorApi -->
             --add-modules=jdk.incubator.vector
         </jdk.strong.encapsulation.argLine>
-        <repoOrgId>maven.org</repoOrgId>
-        <repoOrgName>Maven Central Repository</repoOrgName>
-        <repoOrgUrl>https://repo.maven.apache.org/maven2/</repoOrgUrl>
-
         <!-- Allow the handful of flaky tests with transient failures to pass. 
-->
         <surefire.rerunFailingTestsCount>3</surefire.rerunFailingTestsCount>
         <surefire.trimStackTrace>false</surefire.trimStackTrace>
@@ -285,9 +281,9 @@
 
     <repositories>
         <repository>
-            <id>${repoOrgId}</id>
-            <name>${repoOrgName}</name>
-            <url>${repoOrgUrl}</url>
+            <id>maven.org</id>
+            <name>Maven Central Repository</name>
+            <url>https://repo.maven.apache.org/maven2/</url>
             <snapshots>
                <enabled>false</enabled>
             </snapshots>
@@ -304,9 +300,9 @@
 
     <pluginRepositories>
         <pluginRepository>
-            <id>${repoOrgId}</id>
-            <name>${repoOrgName}</name>
-            <url>${repoOrgUrl}</url>
+            <id>maven.org</id>
+            <name>Maven Central Repository</name>
+            <url>https://repo.maven.apache.org/maven2/</url>
             <snapshots>
                <enabled>false</enabled>
             </snapshots>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to