From 12cc5bd6302f82570a4f048e9079a51ba0949aa1 Mon Sep 17 00:00:00 2001 From: fogelito Date: Tue, 30 Jun 2026 14:09:22 +0300 Subject: [PATCH 1/4] Update start_period --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 71457cc82e..258608eb00 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1326,7 +1326,7 @@ services: interval: 10s timeout: 10s retries: 10 - start_period: 30s + start_period: 60s postgresql: image: appwrite/postgres:0.1.0 container_name: appwrite-postgresql From 7739b827878a7dd125ec934911b50e1a3cd9cc47 Mon Sep 17 00:00:00 2001 From: fogelito Date: Tue, 30 Jun 2026 14:28:49 +0300 Subject: [PATCH 2/4] ci: retry docker compose pull to survive transient registry timeouts The "Load and Start Appwrite" step ran `docker compose pull` as a plain step with no retry, so a single transient Docker Hub timeout (e.g. a traefik manifest fetch timing out) failed the whole job. Wrap the pull in a 3-attempt retry loop across all test-gating jobs. `up --wait` stays single-shot so genuine container health failures still surface immediately rather than being masked by retries. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/ci.yml | 55 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 50 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e3883e1838..219270d06e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -306,7 +306,16 @@ jobs: - name: Load and Start Appwrite timeout-minutes: 5 run: | - docker compose pull --quiet --ignore-buildable + # Docker Hub registry timeouts are a common transient CI failure + # (e.g. a traefik manifest fetch timing out). Retry the image pull; + # keep `up` single-shot so genuine container health failures still surface. + for attempt in 1 2 3; do + if docker compose pull --quiet --ignore-buildable; then + break + fi + echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s" + sleep 15 + done docker compose up -d --quiet-pull --wait - name: Environment Variables @@ -353,7 +362,16 @@ jobs: - name: Load and Start Appwrite timeout-minutes: 5 run: | - docker compose pull --quiet --ignore-buildable + # Docker Hub registry timeouts are a common transient CI failure + # (e.g. a traefik manifest fetch timing out). Retry the image pull; + # keep `up` single-shot so genuine container health failures still surface. + for attempt in 1 2 3; do + if docker compose pull --quiet --ignore-buildable; then + break + fi + echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s" + sleep 15 + done docker compose up -d --quiet-pull --wait - name: Wait for Open Runtimes @@ -443,7 +461,16 @@ jobs: _APP_DATABASE_DOCUMENTSDB_SHARED_TABLES: ${{ matrix.mode != 'dedicated' && 'documentsdb_db_main' || '' }} _APP_DATABASE_VECTORSDB_SHARED_TABLES: ${{ matrix.mode != 'dedicated' && 'vectorsdb_db_main' || '' }} run: | - docker compose pull --quiet --ignore-buildable + # Docker Hub registry timeouts are a common transient CI failure + # (e.g. a traefik manifest fetch timing out). Retry the image pull; + # keep `up` single-shot so genuine container health failures still surface. + for attempt in 1 2 3; do + if docker compose pull --quiet --ignore-buildable; then + break + fi + echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s" + sleep 15 + done docker compose up -d --quiet-pull --wait - name: Wait for Open Runtimes @@ -526,7 +553,16 @@ jobs: _APP_DATABASE_DOCUMENTSDB_SHARED_TABLES: ${{ matrix.mode != 'dedicated' && 'documentsdb_db_main' || '' }} _APP_DATABASE_VECTORSDB_SHARED_TABLES: ${{ matrix.mode != 'dedicated' && 'vectorsdb_db_main' || '' }} run: | - docker compose pull --quiet --ignore-buildable + # Docker Hub registry timeouts are a common transient CI failure + # (e.g. a traefik manifest fetch timing out). Retry the image pull; + # keep `up` single-shot so genuine container health failures still surface. + for attempt in 1 2 3; do + if docker compose pull --quiet --ignore-buildable; then + break + fi + echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s" + sleep 15 + done docker compose up -d --quiet-pull --wait - name: Run tests @@ -584,7 +620,16 @@ jobs: _APP_DATABASE_DOCUMENTSDB_SHARED_TABLES: ${{ matrix.mode != 'dedicated' && 'documentsdb_db_main' || '' }} _APP_DATABASE_VECTORSDB_SHARED_TABLES: ${{ matrix.mode != 'dedicated' && 'vectorsdb_db_main' || '' }} run: | - docker compose pull --quiet --ignore-buildable + # Docker Hub registry timeouts are a common transient CI failure + # (e.g. a traefik manifest fetch timing out). Retry the image pull; + # keep `up` single-shot so genuine container health failures still surface. + for attempt in 1 2 3; do + if docker compose pull --quiet --ignore-buildable; then + break + fi + echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s" + sleep 15 + done docker compose up -d --quiet-pull --wait - name: Wait for Open Runtimes From ea125e8eb2a98e7cd5793b5031b4eb22657e1667 Mon Sep 17 00:00:00 2001 From: Shmuel Fogel Date: Tue, 30 Jun 2026 14:35:03 +0300 Subject: [PATCH 3/4] Update .github/workflows/ci.yml Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 219270d06e..e37d842d49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -312,6 +312,9 @@ jobs: for attempt in 1 2 3; do if docker compose pull --quiet --ignore-buildable; then break + elif [ "$attempt" -eq 3 ]; then + echo "::error::docker compose pull failed after 3 attempts; aborting" + exit 1 fi echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s" sleep 15 From f69653bd865a40dcf937a8f74ef1de007dc3e7c9 Mon Sep 17 00:00:00 2001 From: fogelito Date: Tue, 30 Jun 2026 14:38:59 +0300 Subject: [PATCH 4/4] add else if --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e37d842d49..e52f108de6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -371,6 +371,9 @@ jobs: for attempt in 1 2 3; do if docker compose pull --quiet --ignore-buildable; then break + elif [ "$attempt" -eq 3 ]; then + echo "::error::docker compose pull failed after 3 attempts; aborting" + exit 1 fi echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s" sleep 15 @@ -470,6 +473,9 @@ jobs: for attempt in 1 2 3; do if docker compose pull --quiet --ignore-buildable; then break + elif [ "$attempt" -eq 3 ]; then + echo "::error::docker compose pull failed after 3 attempts; aborting" + exit 1 fi echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s" sleep 15 @@ -562,6 +568,9 @@ jobs: for attempt in 1 2 3; do if docker compose pull --quiet --ignore-buildable; then break + elif [ "$attempt" -eq 3 ]; then + echo "::error::docker compose pull failed after 3 attempts; aborting" + exit 1 fi echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s" sleep 15 @@ -629,6 +638,9 @@ jobs: for attempt in 1 2 3; do if docker compose pull --quiet --ignore-buildable; then break + elif [ "$attempt" -eq 3 ]; then + echo "::error::docker compose pull failed after 3 attempts; aborting" + exit 1 fi echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s" sleep 15