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

linguini1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 275a08346 ci: retry git clone for nuttx-ntfc-testing
275a08346 is described below

commit 275a083464fd08209fd54e7372954977dfd45fbd
Author: raiden00pl <[email protected]>
AuthorDate: Tue May 12 09:22:51 2026 +0200

    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 <[email protected]>
---
 .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 05735c18d..4fe967a7e 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -197,7 +197,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
 

Reply via email to