From d9f6216f30bf03cf6d7e6ca67d785c51a2209e51 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Tue, 12 May 2026 09:19:24 +0200 Subject: [PATCH] ci: retry git clone for nuttx-ntfc-testing github infra is not stable so even "git clone" from github repos can fail with error: 500. With this commit we try to clone repo few more times. Signed-off-by: raiden00pl --- .github/workflows/build.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e4b84b50c6..db8903a8f06 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -206,7 +206,18 @@ jobs: cd /github/workspace/nuttx-ntfc # get NTFC test cases cd external - git clone -b release-0.0.1 https://github.com/apache/nuttx-ntfc-testing + for i in 1 2 3 4 5; do + git clone -b release-0.0.1 https://github.com/apache/nuttx-ntfc-testing && break + if [ "$i" -eq 5 ]; then + echo "Failed to clone nuttx-ntfc-testing after $i attempts" + exit 1 + fi + + delay=$((i * 10)) + echo "Clone attempt $i failed; retrying in ${delay}s..." + rm -rf nuttx-ntfc-testing + sleep "$delay" + done mv nuttx-ntfc-testing nuttx-testing export NTFCDIR=/github/workspace/nuttx-ntfc