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

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


The following commit(s) were added to refs/heads/master by this push:
     new d3e6c130c6e Retry dead link checks on HTTP 503 (#40317)
d3e6c130c6e is described below

commit d3e6c130c6e723278bc73f69dd465f16aa8df631
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Oct 21 20:19:04 2026 +0800

    Retry dead link checks on HTTP 503 (#40317)
---
 .github/workflows/nightly-check.yml | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/nightly-check.yml 
b/.github/workflows/nightly-check.yml
index 38460d63340..8d5eae387cb 100644
--- a/.github/workflows/nightly-check.yml
+++ b/.github/workflows/nightly-check.yml
@@ -78,7 +78,21 @@ jobs:
             continue
           fi
           echo "Checking $file"
-          markdown-link-check -c 
.github/workflows/resources/linkcheck/markdown-link-check.json -q "$file" || 
result=1
+          for retry_delay in 0 10 30; do
+            if [[ $retry_delay -gt 0 ]]; then
+              echo "Retrying $file after ${retry_delay}s due to HTTP 503"
+              sleep "$retry_delay"
+            fi
+            if output=$(markdown-link-check -c 
.github/workflows/resources/linkcheck/markdown-link-check.json -q "$file" 
2>&1); then
+              printf '%s\n' "$output"
+              break
+            fi
+            printf '%s\n' "$output"
+            if [[ $retry_delay -eq 30 ]] || ! grep -q ' → Status: 503$' <<< 
"$output"; then
+              result=1
+              break
+            fi
+          done
           done
           exit "$result"
 

Reply via email to