You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2026/06/15 18:29:35 UTC

(superset) branch ci/docker-build-retry created (now 7a1ded7c29e)

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

rusackas pushed a change to branch ci/docker-build-retry
in repository https://gitbox.apache.org/repos/asf/superset.git


      at 7a1ded7c29e ci(docker): retry image build to absorb transient Docker Hub registry errors

This branch includes the following new commits:

     new 7a1ded7c29e ci(docker): retry image build to absorb transient Docker Hub registry errors

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(superset) 01/01: ci(docker): retry image build to absorb transient Docker Hub registry errors

Posted by ru...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch ci/docker-build-retry
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 7a1ded7c29e36a9eb21bf6ec5f71e3866db33510
Author: Claude Code <no...@anthropic.com>
AuthorDate: Mon Jun 15 11:29:10 2026 -0700

    ci(docker): retry image build to absorb transient Docker Hub registry errors
    
    A large share of "Build & publish docker images" failures on master are
    transient Docker Hub registry errors during the supersetbot build/push:
    base-image pull timeouts (registry-1.docker.io ... Client.Timeout), 504/401
    on push (auth.docker.io), and ECONNRESET. These are infra flakiness, not
    build breaks, yet they fail the whole job.
    
    Wrap the supersetbot build invocation in a 3-attempt retry loop (30s backoff),
    mirroring the existing retry on the subsequent "Docker pull" step. buildx
    reuses the buildkit layer cache from the failed attempt, so retries are cheap.
    
    Co-Authored-By: Claude Fable 5 <no...@anthropic.com>
---
 .github/workflows/docker.yml | 28 +++++++++++++++++++++-------
 1 file changed, 21 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index c305fab4c13..924e40d4318 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -101,13 +101,27 @@ jobs:
             PUSH_OR_LOAD="--load"
           fi
 
-          supersetbot docker \
-            $PUSH_OR_LOAD \
-            --preset "$BUILD_PRESET" \
-            --context "$EVENT" \
-            --context-ref "$RELEASE" $FORCE_LATEST \
-            --extra-flags "--build-arg INCLUDE_CHROMIUM=false --tag $IMAGE_TAG" \
-            $PLATFORM_ARG
+          # Retry to absorb transient Docker Hub registry errors (base-image
+          # pull timeouts, 504/401 on push, ECONNRESET) that otherwise fail
+          # the whole job. buildx reuses the buildkit layer cache from the
+          # failed attempt, so a retry mostly re-does just the failed push.
+          for attempt in 1 2 3; do
+            if supersetbot docker \
+              $PUSH_OR_LOAD \
+              --preset "$BUILD_PRESET" \
+              --context "$EVENT" \
+              --context-ref "$RELEASE" $FORCE_LATEST \
+              --extra-flags "--build-arg INCLUDE_CHROMIUM=false --tag $IMAGE_TAG" \
+              $PLATFORM_ARG; then
+              break
+            fi
+            if [ "$attempt" -eq 3 ]; then
+              echo "::error::supersetbot docker build failed after 3 attempts"
+              exit 1
+            fi
+            echo "::warning::Build attempt ${attempt} failed; retrying in 30s..."
+            sleep 30
+          done
 
       # in the context of push (using multi-platform build), we need to pull the image locally
       - name: Docker pull