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

Aias00 pushed a commit to branch fix/e2e-required-check-infra-unblock
in repository https://gitbox.apache.org/repos/asf/shenyu.git


The following commit(s) were added to 
refs/heads/fix/e2e-required-check-infra-unblock by this push:
     new fbfd1c8221 fix(e2e): retry storage compose up and extend wait-timeout 
(postgres)
fbfd1c8221 is described below

commit fbfd1c822143fd94d768b75ee28ca912c6076d8a
Author: aias00 <[email protected]>
AuthorDate: Thu Oct 15 19:22:56 2026 -0700

    fix(e2e): retry storage compose up and extend wait-timeout (postgres)
---
 .../compose/script/e2e-postgres-compose.sh                | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git 
a/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-storage/compose/script/e2e-postgres-compose.sh
 
b/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-storage/compose/script/e2e-postgres-compose.sh
index ea2825420f..f332b4f743 100644
--- 
a/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-storage/compose/script/e2e-postgres-compose.sh
+++ 
b/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-storage/compose/script/e2e-postgres-compose.sh
@@ -40,7 +40,20 @@ dump_logs() {
   echo "------------------"
   docker compose -f "$COMPOSE_FILE" logs shenyu-bootstrap || true
 }
-if ! docker compose -f "$COMPOSE_FILE" up -d --quiet-pull --wait 
--wait-timeout 300; then
+# Retry compose up to survive transient Docker Hub image pull limits / 
timeouts.
+wait_for_compose() {
+  local attempt
+  for attempt in 1 2 3; do
+    if docker compose -f "$COMPOSE_FILE" up -d --quiet-pull --wait 
--wait-timeout 600; then
+      return 0
+    fi
+    echo "docker compose up attempt ${attempt} failed, retrying in 15s..."
+    docker compose -f "$COMPOSE_FILE" down || true
+    sleep 15
+  done
+  return 1
+}
+if ! wait_for_compose; then
   dump_logs
   exit 1
 fi

Reply via email to