This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new d9f6216f30b ci: retry git clone for nuttx-ntfc-testing
d9f6216f30b is described below
commit d9f6216f30bf03cf6d7e6ca67d785c51a2209e51
Author: raiden00pl <[email protected]>
AuthorDate: Tue May 12 09:19:24 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 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