Skip to content

Commit

Permalink
CI: use autopkgtest 5.37
Browse files Browse the repository at this point in the history
  • Loading branch information
slyon committed Aug 14, 2024
1 parent ffe39e8 commit d08817b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/autopkgtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
- name: Install dependencies
run: |
echo "APT::Get::Always-Include-Phased-Updates \"true\";" | sudo tee /etc/apt/apt.conf.d/90phased-updates
sudo add-apt-repository -y -n -s ppa:slyon/netplan-ci
sudo apt update
sudo apt install autopkgtest ubuntu-dev-tools devscripts openvswitch-switch linux-modules-extra-$(uname -r)
# work around LP: #1878225 as fallback
Expand All @@ -47,11 +48,12 @@ jobs:
cp -r netplan.io-*/debian .
rm -r debian/patches/ # clear any distro patches
sed -i 's| python3-gi,| python3-gi, python3-packaging,|' debian/tests/control # needed for the 'routing' test (nm_version)
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"
dch -v "$VER" "Autopkgtest CI testing (Noble)"
- name: Run autopkgtest (incl. build)
run: |
autopkgtest . \
-U --env=DPKG_GENSYMBOLS_CHECK_LEVEL=0 --env=DEB_BUILD_OPTIONS=nocheck -- lxd autopkgtest/ubuntu/noble/amd64
-U --env=DPKG_GENSYMBOLS_CHECK_LEVEL=0 -- lxd autopkgtest/ubuntu/noble/amd64
2 changes: 1 addition & 1 deletion .github/workflows/debci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
# it's needed (will be auto-loaded) by routing.test_vrf_basic
- name: Install dependencies
run: |
sudo add-apt-repository -y -n -u -s ppa:slyon/netplan-ci
sudo add-apt-repository -y -n -s ppa:slyon/netplan-ci
sudo apt update
sudo apt install debci lxc lxc-templates debian-archive-keyring autopkgtest ubuntu-dev-tools devscripts linux-modules-extra-$(uname -r) #openvswitch-switch
# See: https://discourse.ubuntu.com/t/containers-lxc/11526 (Apparmor section)
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/network-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
# it's needed (will be auto-loaded) by routing.test_vrf_basic
- name: Install dependencies
run: |
sudo add-apt-repository -y -n -s ppa:slyon/netplan-ci
sudo apt update
sudo apt install autopkgtest ubuntu-dev-tools devscripts openvswitch-switch linux-modules-extra-$(uname -r)
- name: Prepare test
Expand All @@ -41,6 +42,7 @@ 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 @@ -66,6 +68,5 @@ jobs:
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)

0 comments on commit d08817b

Please sign in to comment.