Skip to content

Commit dca13c9

Browse files
committed
github: Get sparse from the official GitHub mirror.
We had a few issues lately with GitHub Actions being unable to checkout sparse from the git.kernel.org: git clone git://git.kernel.org/pub/scm/devel/sparse/sparse.git Cloning into 'sparse'... fatal: unable to connect to git.kernel.org: git.kernel.org[0: 172.105.4.254]: errno=Connection timed out git.kernel.org[1: 2600:3c04::f03c:95ff:fe5e:7468]: errno=Network is unreachable Let's try and use the official mirror of the project hosted on GitHub itself. This mirror is maintained by the main maintainer of the project and mentioned in the documentation as one of the ways of getting sparse: https://sparse.docs.kernel.org/en/latest/#getting-sparse It may also be better to not create extra load on kernel.org servers, they should not be used for CI purposes. Note: we only need to get sparse for one type of jobs. All other jobs that call linux-prepare.sh do not actually use sparse (clang jobs and the debian job are not using sparse). Acked-by: Mike Pattrick <mkp@redhat.com> Acked-by: Kevin Traynor <ktraynor@redhat.com> Reviewed-by: David Marchand <david.marchand@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
1 parent c35ff51 commit dca13c9

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.ci/linux-prepare.sh

+5-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ fi
1212
#
1313
# Disabling sqlite support because sindex build fails and we don't
1414
# really need this utility being installed.
15-
git clone git://git.kernel.org/pub/scm/devel/sparse/sparse.git
16-
cd sparse
17-
make -j4 HAVE_SQLITE= install
18-
cd ..
15+
if test -d sparse; then
16+
pushd sparse
17+
make -j4 HAVE_SQLITE= install
18+
popd
19+
fi
1920

2021
# Installing wheel separately because it may be needed to build some
2122
# of the packages during dependency backtracking and pip >= 22.0 will

.github/workflows/build-and-test.yml

+7
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,13 @@ jobs:
204204
if: matrix.m32 != ''
205205
run: sudo apt install -y gcc-multilib
206206

207+
- name: checkout sparse
208+
uses: actions/checkout@v4
209+
# Official mirror of the git.kernel.org/pub/scm/devel/sparse/sparse.git.
210+
with:
211+
repository: lucvoo/sparse
212+
path: sparse
213+
207214
- name: prepare
208215
run: ./.ci/linux-prepare.sh
209216

0 commit comments

Comments
 (0)