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

espino pushed a commit to branch ci-fix
in repository https://gitbox.apache.org/repos/asf/cloudberry.git

commit 7310c9053752befa3c6d594aa1381197c6fd4dfa
Author: Ed Espino <[email protected]>
AuthorDate: Mon Oct 6 08:41:32 2025 -0700

    Fix Rocky Linux mirror instability in CI
    
    Add repository metadata refresh and retry logic to handle transient
    mirror failures during RPM installation. This addresses frequent 404
    errors from Rocky Linux mirrors that cause CI failures.
    
    Changes:
    - Run 'dnf clean all' and 'dnf makecache --refresh' before installation
    - Add '--setopt=retries=10' to dnf install command
    - Apply fix to both rpm-install-test and test jobs
    
    This improves CI reliability without changing functionality.
---
 .github/workflows/build-cloudberry.yml | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/build-cloudberry.yml 
b/.github/workflows/build-cloudberry.yml
index fecd44a9637..c1d900d9715 100644
--- a/.github/workflows/build-cloudberry.yml
+++ b/.github/workflows/build-cloudberry.yml
@@ -814,12 +814,17 @@ jobs:
             echo "Version: ${RPM_VERSION}"
             echo "Release: ${RPM_RELEASE}"
 
+            # Refresh repository metadata to avoid mirror issues
+            echo "Refreshing repository metadata..."
+            dnf clean all
+            dnf makecache --refresh || dnf makecache
+
             # Clean install location
             rm -rf /usr/local/cloudberry-db
 
-            # Install RPM
+            # Install RPM with retry logic for mirror issues
             echo "Starting installation..."
-            if ! time dnf install -y "${RPM_FILE}"; then
+            if ! time dnf install -y --setopt=retries=10 "${RPM_FILE}"; then
               echo "::error::RPM installation failed"
               exit 1
             fi
@@ -1186,12 +1191,17 @@ jobs:
             echo "Version: ${RPM_VERSION}"
             echo "Release: ${RPM_RELEASE}"
 
+            # Refresh repository metadata to avoid mirror issues
+            echo "Refreshing repository metadata..."
+            dnf clean all
+            dnf makecache --refresh || dnf makecache
+
             # Clean install location
             rm -rf /usr/local/cloudberry-db
 
-            # Install RPM
+            # Install RPM with retry logic for mirror issues
             echo "Starting installation..."
-            if ! time dnf install -y "${RPM_FILE}"; then
+            if ! time dnf install -y --setopt=retries=10 "${RPM_FILE}"; then
               echo "::error::RPM installation failed"
               exit 1
             fi


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

Reply via email to