Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: cleanup after v1.1 release #510

Merged
merged 2 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/autopkgtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ jobs:
cp -r netplan.io-*/debian .
rm -r debian/patches/ # clear any distro patches
sed -i 's|iproute2,|iproute2, ethtool,|' debian/control # add ethtool as a dependency of netplan.io temporarily
sed -i 's| python3-gi,| python3-gi, python3-packaging,|' debian/tests/control # needed for the 'routing' test (nm_version)
slyon marked this conversation as resolved.
Show resolved Hide resolved
sed -i 's|bytecompile=-1|bytecompile=-1 -Dtesting=false|' debian/rules # drop after v1.1
TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) # find latest (stable) tag
REV=$(git rev-parse --short HEAD) # get current git revision
VER="$TAG+git~$REV"
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/network-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
cp -r netplan.io-*/debian .
rm -r debian/patches/ # clear any distro patches
echo "3.0 (native)" > debian/source/format # force native build
sed -i 's|bytecompile=-1|bytecompile=-1 -Dtesting=false|' debian/rules # drop after v1.1
TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) # find latest (stable) tag
REV=$(git rev-parse --short HEAD) # get current git revision
VER="$TAG+git~$REV"
Expand All @@ -63,10 +62,9 @@ jobs:
MIRROR=http://archive.ubuntu.com/ubuntu autopkgtest-build-lxd ubuntu-daily:noble # LP: #2052639
- name: Run autopkgtest
run: |
# using --setup-commands temporarily to install:
# cmocka/pytest/rich/ethtool until they become proper test-deps
pull-lp-source network-manager noble
sudo autopkgtest -U \
--copy=debian/artifacts:/root/ --setup-commands='dpkg -i /root/*.deb' \
--env=DEB_BUILD_OPTIONS=nocheck \
--apt-pocket=proposed=src:network-manager \
network-manager_*.dsc -- lxd autopkgtest/ubuntu/noble/amd64 || test $? -eq 2 # allow for skipped tests (exit code = 2)
5 changes: 3 additions & 2 deletions tests/integration/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,10 @@ def test_link_route_v4(self):

def test_vrf_basic(self):
try:
subprocess.check_call(['modprobe', 'vrf'])
subprocess.check_call(['ip', 'link', 'add', 'dev', 'modprobe-check', 'type', 'vrf', 'table', '666'])
subprocess.check_call(['ip', 'link', 'del', 'modprobe-check'])
except Exception:
raise unittest.SkipTest("vrf module is unavailable, can't test")
raise unittest.SkipTest('vrf module is unavailable, can\'t test')

self.setup_eth('slaac')
self.addCleanup(subprocess.call, ['ip', 'link', 'delete', 'vrf0'], stderr=subprocess.DEVNULL)
Expand Down
5 changes: 3 additions & 2 deletions tests/integration/tunnels.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ def test_tunnel_ipip_without_local_address(self):

def test_tunnel_wireguard(self):
try:
subprocess.check_call(['modprobe', 'wireguard'])
subprocess.check_call(['ip', 'link', 'add', 'dev', 'modprobe-check', 'type', 'wireguard'])
subprocess.check_call(['ip', 'link', 'del', 'modprobe-check'])
except Exception:
raise unittest.SkipTest("wireguard module is unavailable, can't test")
raise unittest.SkipTest('wireguard module is unavailable, can\'t test')

self.addCleanup(subprocess.call, ['ip', 'link', 'delete', 'wg0'], stderr=subprocess.DEVNULL)
self.addCleanup(subprocess.call, ['ip', 'link', 'delete', 'wg1'], stderr=subprocess.DEVNULL)
Expand Down
Loading