Skip to content

Commit 1de9138

Browse files
authored
github: ell: clone from Google servers and retry (#328)
Recently, we had two jobs in a row that failed to clone ELL repo. Probably because of the restrictions in place at git.kernel.org, and the fact two clone are being done in parallel, likely from the same IP range. Switching to googlesource.com, which should be more tolerant, and retry max 30 times with a 30 seconds sleep in between. If it is really not possible to clone the repo, the 'ell' dir will not be created. Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
1 parent e1e3978 commit 1de9138

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/ell-master.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ jobs:
2323
run: sudo apt-get -y install autoconf-archive git clang
2424
- name: build and install ELL
2525
run: |
26-
git clone git://git.kernel.org/pub/scm/libs/ell/ell.git
26+
for i in $(seq 30); do
27+
git clone https://kernel.googlesource.com/pub/scm/libs/ell/ell && break
28+
echo "Attempt $i failed, retrying in 30 seconds..."
29+
sleep 30
30+
done
2731
cd ell
2832
git log -1 --oneline --no-decorate
2933
./bootstrap

.github/workflows/ell-min.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ jobs:
2121
run: sudo apt-get -y install autoconf-archive git clang
2222
- name: build and install ELL
2323
run: |
24-
git clone git://git.kernel.org/pub/scm/libs/ell/ell.git
24+
for i in $(seq 30); do
25+
git clone https://kernel.googlesource.com/pub/scm/libs/ell/ell && break
26+
echo "Attempt $i failed, retrying in 30 seconds..."
27+
sleep 30
28+
done
2529
cd ell
2630
git checkout 0.30
2731
./bootstrap

0 commit comments

Comments
 (0)