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. 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). Signed-off-by: Ilya Maximets <i.maxim...@ovn.org> --- .ci/linux-prepare.sh | 9 +++++---- .github/workflows/build-and-test.yml | 7 +++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.ci/linux-prepare.sh b/.ci/linux-prepare.sh index 5f8a1db6a..51e5a7e7d 100755 --- a/.ci/linux-prepare.sh +++ b/.ci/linux-prepare.sh @@ -12,10 +12,11 @@ fi # # Disabling sqlite support because sindex build fails and we don't # really need this utility being installed. -git clone git://git.kernel.org/pub/scm/devel/sparse/sparse.git -cd sparse -make -j4 HAVE_SQLITE= install -cd .. +if test -d sparse; then + pushd sparse + make -j4 HAVE_SQLITE= install + popd +fi # Installing wheel separately because it may be needed to build some # of the packages during dependency backtracking and pip >= 22.0 will diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index d90b9273a..cea15fbb5 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -306,6 +306,13 @@ jobs: if: matrix.m32 != '' run: sudo apt install -y gcc-multilib + - name: checkout sparse + uses: actions/checkout@v4 + # Official mirror of the git.kernel.org/pub/scm/devel/sparse/sparse.git. + with: + repository: lucvoo/sparse + path: sparse + - name: prepare run: ./.ci/linux-prepare.sh -- 2.47.0 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev