mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 01:51:26 +00:00
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>
34 lines
1016 B
Bash
Executable File
34 lines
1016 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ev
|
|
|
|
if [ "$DEB_PACKAGE" ]; then
|
|
# We're not using sparse for debian packages, tests are skipped and
|
|
# all extra dependencies tracked by mk-build-deps.
|
|
exit 0
|
|
fi
|
|
|
|
# Build and install sparse.
|
|
#
|
|
# Disabling sqlite support because sindex build fails and we don't
|
|
# really need this utility being installed.
|
|
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
|
|
# abort backtracking on build failures:
|
|
# https://github.com/pypa/pip/issues/10655
|
|
pip3 install --disable-pip-version-check --user wheel
|
|
pip3 install --disable-pip-version-check --user \
|
|
flake8 netaddr pyparsing sarif-tools==2.0.0 sphinx setuptools
|
|
|
|
# Install python test dependencies
|
|
pip3 install -r python/test_requirements.txt
|
|
|
|
# Make sure IPv6 is enabled to avoid skipping of IPv6 related tests.
|
|
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0
|