Debian changelog in Git: autopkgtest (5.39) unstable; urgency=medium
[ Paride Legovini ]
* d/tests/lxd: drop racey workaround for the images: remote url,
depend on a new enough lxd instead (Closes: #1078216)
* d/control: bump Standards-Version to 4.7.0, no changes needed
* Drop --testname argument, deprecated in 2017
* a-v-unshare: create user with useradd --prefix instead of --root,
to avoid chrooting into an environment that does not yet have /dev
(Closes: #1077988)
* Stop skipping d/t/unshare on Ubuntu, no longer necessary with the
above a-v-unshare change
* d/t/unshare: run tests in an Ubuntu testbed when host system is Ubuntu
[ Ural Tunaboyu ]
* autopkgtest-buildvm-ubuntu-cloud: improve dependency checks
(LP: #2073938)
[ Simon McVittie ]
* virt-qemu: Work around #1072004 in 9pfs.
Thanks to Dominique Martinet (Closes: #1071456) (Mitigates: #1072004)
* build-podman: Don't assume that host is reachable as 10.0.2.2,
which is no longer true when podman uses passt (Closes: #1078076)
* qemu: Refactor to allow detection of dependencies
* qemu: Update lists of architectures (Helps: #1062026)
* build-*, virt-qemu, virt-docker/virt-podman, virt-lxc,
virt-lxd/virt-incus: Check for (most) dependencies
(Closes: #1021776, #1034351, #1039958, #1076739)
* build-docker/build-podman, build-qemu: Fix running from source tree
* tests: Skip tests involving mount points if we don't have
CAP_SYS_ADMIN, for example in rootless podman (Closes: #1078215)
* d/README.source: Mention the minimum Python version in testbeds (3.4)
* d/control, d/tests/control: /usr/bin/docker is now in docker-cli
(see also #1078269)
* d/tests/control: Install passt along with newer podman versions
* tests: Use a Debian mirror to test handling of persistent apt failures
[ Jochen Sprickerhof ]
* unshare: Make the chroot more minimal (mmdebstrap --variant=apt)
[ Luca Boccassi ]
* await-boot.sh: Make the check for systemd-sysv robust against tests
that install a different init system (Closes: #1078510)
[ Paul Gevers ]
* wrapper.sh: Convert test exit codes 254 and 255 to 253, preventing
misinterpretation as a testbed failure (Closes: #1078214)
[ Johannes Schauer Marin Rodrigues ]
* doc/README.package-tests.rst: Use a better example test name
* doc/README.package-tests.rst: A test name cannot contain commas
-- Simon McVittie <smcv@debian.org> Mon, 12 Aug 2024 12:11:05 +0100
Git log: commit 19b688c51cc61ddac9fd9f8272578358d298fcd5
Merge: 9918c4e c2cd52f
Author: Paride Legovini <paride@debian.org>
Date: Wed Sep 18 21:37:05 2024 +0000
Merge branch 'sanitize-apt-fnames' into 'master'
When adding APT preferences sanitize the preference file names
See merge request ci-team/autopkgtest!447
commit c2cd52f245828fedd6b2d9cb2ccf63ae78fd4cde
Author: Paride Legovini <paride@debian.org>
Date: Wed Sep 18 20:16:38 2024 +0200
When adding APT preferences sanitize the preference file names
APT only allows a-zA-Z0-9_.- in file names of preference files and data
sources lists (.list and .sources files), so sanitize the files we
create by replacing problematic chars with an '_'.
Also: add preference files with the .pref extension so we don't need to
worry about dots within file names.
commit 9918c4e7520b9055320f9350d06ca8088b948016
Merge: c586cca 5df119d
Author: Paride Legovini <paride@debian.org>
Date: Wed Sep 18 16:49:18 2024 +0000
Merge branch 'container-test-fix' into 'master'
debian/tests: enable lxd tests for all arches
See merge request ci-team/autopkgtest!446
commit 5df119d70a0ff30420681d9636b51853cb3a5200
Author: Ural Tunaboyu <ural.tunaboyu@canonical.com>
Date: Wed Sep 4 12:29:48 2024 -0700
tests/autopkgtest: fixed test_apt_source_arch_conflict
This test assumed the host arch is amd64 and that arm64 is a foreign
arch. Changed to use the host arch correctly and use s390 as the foreign
arch.
commit 1f001b2c0275bc0a96e683c344693010d33ec34b
Author: Ural Tunaboyu <ural.tunaboyu@canonical.com>
Date: Wed Sep 4 11:44:34 2024 -0700
debian/tests: enable lxd tests for all arches
Previously lxd tests only ran on amd64 and arm64. This enables lxd tests
for all arches for Ubuntu. For Debian, running lxd tests on non-{amd64,
arm64} arches will result in exit 77.
commit c586ccae982bb01312e620792c3a44a1e71bf359
Merge: 2f85995 26a4e02
Author: Paride Legovini <paride@debian.org>
Date: Tue Sep 17 20:16:52 2024 +0000
Merge branch 'apt-update' into 'master'
lib/adt_binaries.py: run 'apt update' before 'apt install'
See merge request ci-team/autopkgtest!308
commit 2f8599521c600df54a96f0834b22f230739511b5
Merge: 88189d5 d4ebb2a
Author: Paride Legovini <paride@debian.org>
Date: Tue Sep 17 14:33:00 2024 +0000
Merge branch 'always-setup-testbed' into 'master'
Always do the testbed setup after opening the testbed
See merge request ci-team/autopkgtest!445
commit 88189d50ea2a8f6c71d49da64983e076092426f9
Merge: 1c8cb06 543f29b
Author: Paride Legovini <paride@debian.org>
Date: Tue Sep 17 09:45:54 2024 +0000
Merge branch 'salsa-pipeline-ubuntu' into 'master'
CI: add Salsa CI pipeline recipe for Ubuntu
See merge request ci-team/autopkgtest!444
commit 543f29b514ea1dfdfcb5127dc2aeab44fbfee019
Author: Paride Legovini <paride@debian.org>
Date: Tue Sep 17 10:00:01 2024 +0200
CI: add Salsa CI pipeline recipe for Ubuntu
commit d4ebb2a8db398e010ef46472fda45af8366af591
Author: Paride Legovini <paride@debian.org>
Date: Mon Sep 16 17:11:32 2024 +0200
tests: add new test: test_offline_success
Test that a test run succeeds when the testbed APT mirrors can't be
reached.
commit 8b3c2d2cb9581b461fe548abceeaa84398f49b3e
Author: Paride Legovini <paride@debian.org>
Date: Mon Sep 16 16:14:36 2024 +0200
Always do the testbed setup after opening the testbed
Always do the testbed setup after opening the testbed, but take care of
running apt-get update if there is a new APT source to add, or if an
upgrade has been requested via --apt-upgrade.
commit 1c8cb060e209ac8693a5227547f7f88e1b5a1002
Merge: 5d009a0 2a0f692
Author: Paride Legovini <paride@debian.org>
Date: Mon Sep 16 13:43:10 2024 +0000
Merge branch 'early-get-release' into 'master'
Always get the testbed release when setting up the testbed
See merge request ci-team/autopkgtest!443
commit 2a0f69231cafee52ec640a1409b0a772cc637ee3
Author: Paride Legovini <paride@debian.org>
Date: Mon Sep 16 14:16:56 2024 +0200
Always get the testbed release when setting up the testbed
Always get the testbed release when setting up the testbed, instead of
getting it only if a pocket has to be added.
This simplifies the logic and will allow more unification of the code
that implements --add-apt-release and --apt-pocket.
The renames are meant to reduce confusion with code that deals with the
APT default release: apt_default_release, _set_default_release() and
similar.
commit 5d009a0ae71305c729f8be4a57159a404055e1a1
Merge: f051d1c 1f4b58f
Author: Paride Legovini <paride@debian.org>
Date: Thu Sep 12 14:15:08 2024 +0000
Merge branch 'add-apt-implies-update' into 'master'
Update testbed package index (apt-get update) using _run_apt_command()
See merge request ci-team/autopkgtest!441
commit 1f4b58fa5d1a70a754e6bc9f9aba37ad9e1ff872
Author: Paride Legovini <paride@debian.org>
Date: Wed Sep 11 14:27:32 2024 +0200
Update testbed package index (apt-get update) using _run_apt_command()
The old code only updated the added source (Dir::Etc::sourcelist). This
was done because the an update was triggered immediately each source
addition, potentially leading to several update operations. With the
approach implemented here we do a single update after all sources are
added, so we can update everything unconditionally.
In test_apt_upgrade_failure and test_persistent_apt_failure remove the
apt cache. Apparently older apt releases (trusty) need more breakage to
error out.
Adapt some ChrootRunner tests to the now more verbose output.
commit f051d1c890d5e8e3452aedaa33e960617e3aecc0
Merge: 967dd7e e221172
Author: Paride Legovini <paride@debian.org>
Date: Thu Sep 12 12:04:22 2024 +0000
Merge branch 'better-apt-upgrade' into 'master'
Handle --apt-upgrade via _run_apt_command()
See merge request ci-team/autopkgtest!440
commit 967dd7efd0277abdecce1211f568432f7cfcdcb6
Merge: cb48515 4fe1428
Author: Simon McVittie <smcv@debian.org>
Date: Wed Sep 11 12:24:49 2024 +0000
Merge branch 'wip/bug1081374' into 'master'
qemu: Fix boot of UEFI-only virtual machines
See merge request ci-team/autopkgtest!439
commit 4fe1428f436c4f58ab91007c842a11f7fa7fa25d
Author: Kai Oberbeckmann <kai.oberbeckmann@posteo.de>
Date: Wed Sep 11 08:13:41 2024 +0000
qemu: Fix boot of UEFI-only virtual machines
Pass through efi_code and efi_data from the QemuFactory to the
QemuSession.
Fixes: 23cd49b4 "qemu: Move bootloader selection and qemu options into QemuFactory"
Closes: #1081374
commit e221172c474d5e28c958929758c3538800ee943b
Author: Paride Legovini <paride@debian.org>
Date: Mon Sep 9 16:04:35 2024 +0200
Handle --apt-upgrade via _run_apt_command()
Instead of adding an inline script to setup_commands, leverage
_run_apt_command() to run the early update/upgrade/autopurge operations.
This is also a more flexible approach, as we can control whether the
testbed will be upgraded or not via single a bool variable.
Expand and fix related tests.
Closes: #1011204
commit 49255b4706a6ffb090ea940f2ebe7130cb4691a2
Author: Paride Legovini <paride@debian.org>
Date: Mon Sep 9 09:42:31 2024 +0200
Testbed __init__(): make all argument keyword-only
Gbp-Dch: ignore
commit cb48515c9a9e0e1ddb19efc0df32ef3c129bf25f
Merge: 77e503a 5b5dfc2
Author: Paride Legovini <paride@debian.org>
Date: Wed Sep 11 06:46:06 2024 +0000
Merge branch 'refactor-run-apt-install' into 'master'
Refactor _run_apt_install() and rename to _run_apt_command()
See merge request ci-team/autopkgtest!437
commit 5b5dfc2a09a08d5adc336bd4ae61cd0373b9cf6a
Author: Paride Legovini <paride@debian.org>
Date: Mon Sep 9 11:05:58 2024 +0200
Refactor _run_apt_install() and rename to _run_apt_command()
The new _run_apt_command() prevents shell expansion of parameters
passed to apt-get, so no extra quoting is necessary around potentially
problematic ones, e.g. what='foo | bar (>= 42)'. This is done by
leveraging "$@".
This also adds --quiet to the set of options passed to apt-get by
default. Per apt-get(8), a single --quiet "produces output suitable for
logging, omitting progress indicators".
This change will make it easier to use _run_apt_command() for actions
that do not require a "what", e.g. update, autoremove, check.
commit 77e503aadfdbde9f47239cdf5c943bb4cfaab238
Merge: a9f453c 1ca6998
Author: Paride Legovini <paride@debian.org>
Date: Sat Sep 7 18:54:33 2024 +0000
Merge branch 'tests-archite-explicit-config' into 'master'
tests: Archive: rename series to suite, require more explicit config
See merge request ci-team/autopkgtest!436
commit 1ca69980a9d71e0a22fb97417abac5b98caeaa39
Author: Paride Legovini <paride@debian.org>
Date: Sat Sep 7 16:36:12 2024 +0200
tests: Archive: rename series to suite, require more explicit config
Rename "series" (an Ubuntu concept) to "suite", which is a standard
Debian repository term [1].
When creating a test archive, require specifying both the release suite
and codename (or none of them). This makes it more difficult to create
test archives (and therefore tests) that are not realistic by mistake.
These changes do not modify the logic of any existing test.
[1] https://wiki.debian.org/DebianRepository/Format#Suite
commit a9f453c5790248d57eb3674877483310723a5a36
Merge: 8758cd5 951c0fe
Author: Paride Legovini <paride@debian.org>
Date: Sat Sep 7 17:00:34 2024 +0000
Merge branch 'simplify-add-pocket-2' into 'master'
Rework the package pinning logic and improve test coverage
See merge request ci-team/autopkgtest!425
commit 951c0febb4ca5ffb1debd058ee33ddb9550c881d
Author: Paride Legovini <paride@debian.org>
Date: Wed Aug 21 18:48:26 2024 +0200
tests: add test_debian_layout_* to test pinning on a Debian-like layout
These tests are similar to the test_apt_pocket_* ones, however they
resemble more closely the Debian scenario, and make it easier so reason
concretely in Debian terms.
commit 16a86830b52853e05455cddf6958a4555acfd9cb
Author: Paride Legovini <paride@debian.org>
Date: Fri Aug 23 09:38:20 2024 +0200
tests: pin tests: check for failure when not expecting success
Gbp-Dch: ignore
commit e3ff5d9960081149c5c671ccaf193a97c33a7547
Author: Paride Legovini <paride@debian.org>
Date: Thu Aug 22 10:20:38 2024 +0200
tests: Archive: add support for accessing dists via codename
This is useful in the Debian scenario, where we want "unstable" to also
via accessible as "sid".
commit 081ba6caabf1670239244661d5f835c192ac2c60
Author: Paride Legovini <paride@debian.org>
Date: Wed Aug 21 16:35:36 2024 +0200
tests: run the apt_pocket tests with NotAutomatic: yes in -proposed
commit 70c91ce7ed54adb0f79cee1b35bb5785f8a53a00
Author: Paride Legovini <paride@debian.org>
Date: Wed Aug 21 10:42:20 2024 +0200
tests: expand the pocket tests to cover --add-apt-release --pin-packages
This covers more of the Debian use case, where individual packages are
installed from unstable via --add-apt-release and --pin-packages.
commit bf3384bd5108c398c040994af5f622eb085e3e90
Author: Paride Legovini <paride@debian.org>
Date: Wed Aug 21 12:25:41 2024 +0200
man: clarify documentation on how pinning works
commit 6b6183ead2fcbe80b68bc99b1e5deda125b11cbf
Author: Paride Legovini <paride@debian.org>
Date: Wed Aug 14 21:32:20 2024 +0200
Rework and simplify the package pinning logic
* Pin packages without setting a default release. Instead: pin the
release/pocket as is if was NotAutomatic: yes, except for the
requested packages, which get a high priority.
* Only configure the default release if explicitly requested. Make it
effective before general-form pins, like APT::Default-Release.
* Drop Ubuntu specific workarounds (extra pinning of -updates).
* When adding releases/pockets, add "baseline" pin to neutralize
NotAutomatic: yes, if set.
* When preference files are removed due to the fallback mechanism,
construct the file names in the same way as when they are created.
* Adapt tests to the above points.
commit 8758cd5ecb0f3ae187bcfdd2873fdf02077d7390
Merge: 3db0898 81efa5b
Author: Paride Legovini <paride@debian.org>
Date: Fri Sep 6 16:55:22 2024 +0000
Merge branch 'testdec-use-lists-for-dep-sets' into 'master'
lib/testdec: use lists in dep set manipulation
See merge request ci-team/autopkgtest!434
commit 81efa5b5358ffa57a006648fec18817d029a6508
Author: Blair Noctis <n@sail.ng>
Date: Fri Sep 6 11:32:33 2024 +0000
tests/testdesc: test recommends from multiple packages, #1080981
commit bf1b5f330850455e4074d0b01638e7892e8c0465
Author: Blair Noctis <n@sail.ng>
Date: Fri Sep 6 10:07:03 2024 +0000
lib/testdec: use lists in dep set manipulation
Closes: #1080981
commit 3db08983f6b9820ecbe5be3e8397b9a09502c0ac
Merge: 15107b2 4095458
Author: Simon McVittie <smcv@debian.org>
Date: Fri Sep 6 13:12:49 2024 +0000
Merge branch 'wip/smcv/buildvm-ubuntu-cache' into 'master'
buildvm-ubuntu-cloud: Don't write directly into $XDG_CACHE_HOME
See merge request ci-team/autopkgtest!435
commit 4095458829f1da7d4c1b5fd925e8ac222b4e5ebb
Author: Simon McVittie <smcv@debian.org>
Date: Fri Sep 6 12:10:25 2024 +0100
buildvm-ubuntu-cloud: Don't write directly into $XDG_CACHE_HOME
The XDG Base Directory specification says that XDG_CACHE_HOME defaults
to ~/.cache. We should always use a suitable autopkgtest-specific
subdirectory of that base directory, not the base directory itself.
Fixes: 4234f941 "t/autopkgtest-buildvm-ubuntu-cloud: add image cache"
Signed-off-by: Simon McVittie <smcv@debian.org>
commit 15107b2ba46ad19734c52a751b12341eea07c6f6
Merge: 2f09f19 fb6370e
Author: Paride Legovini <paride@debian.org>
Date: Thu Sep 5 15:53:00 2024 +0000
Merge branch 'depend-on-distro-info' into 'master'
d/control: move python3-distro-info from Suggests to Depends
See merge request ci-team/autopkgtest!433
commit fb6370edfd456caf2ee5f89214974865485a2073
Author: Paride Legovini <paride@debian.org>
Date: Fri Aug 30 15:13:45 2024 +0200
d/control: move python3-distro-info from Suggests to Depends
Add dependency on python3-distro-info and remove fallback code from when
the module is not available.
commit 2f09f19cecda1118bc949e9f26868e8f586f1982
Merge: 832d2ff 3d0dcc3
Author: Paride Legovini <paride@debian.org>
Date: Wed Aug 28 17:46:29 2024 +0000
Merge branch 'package-dep-check' into 'master'
lib/autopkgtest_deps: add dependency for package
See merge request ci-team/autopkgtest!431
commit 3d0dcc3bbfdd71c874a1d03080a078f6556d8524
Author: Ural Tunaboyu <ural.tunaboyu@canonical.com>
Date: Mon Aug 26 15:21:43 2024 -0700
t/autopkgtest-buildvm-ubuntu-cloud: add dependency for python3-distro-info
commit 9e053d463af554832f5f31ff141139608ff26d7f
Author: Ural Tunaboyu <ural.tunaboyu@canonical.com>
Date: Mon Aug 26 15:21:04 2024 -0700
lib/autopkgtest_deps: add dependency for package
Add a dependency class for checking if a package is installed on the
system.
commit 832d2ff63ea65a44ad94feeaf1a45fa343c1814e
Merge: decf3ff 4234f94
Author: Paride Legovini <paride@debian.org>
Date: Tue Aug 27 12:26:02 2024 +0000
Merge branch 'buildvm-ubuntu-cloud-image-cache' into 'master'
t/autopkgtest-buildvm-ubuntu-cloud: add image cache
See merge request ci-team/autopkgtest!426
commit 4234f941e4331d9cf84677c14a1717b527201d93
Author: Ural Tunaboyu <ural.tunaboyu@canonical.com>
Date: Wed Aug 21 17:27:49 2024 -0700
t/autopkgtest-buildvm-ubuntu-cloud: add image cache
Adds a cache and associated option for downloaded images.
Also improve output directory handling.
The option is:
* --force-use-cached: Do not download the SHA256 sum of latest images to
verify cached image.
LP: #2073938
commit decf3ff560ed4debc8f86a14f1bf8affc98c26e8
Merge: a483935 e6c3907
Author: Simon McVittie <smcv@debian.org>
Date: Sat Aug 24 08:56:25 2024 +0000
Merge branch 'wip/smcv/docker-arch-prefix' into 'master'
build-docker: Tag images for default architecture with/without prefix
See merge request ci-team/autopkgtest!429
commit a483935e8ff8f76b1a716f76e7bbcdb91baee02f
Merge: d4a1476 24f13c9
Author: Paride Legovini <paride@debian.org>
Date: Sat Aug 24 07:53:59 2024 +0000
Merge branch 'fix-test-cap-sys-admin-check' into 'master'
tests: check if CAP_SYS_ADMIN is EFFECTIVE
See merge request ci-team/autopkgtest!428
commit d4a147624241f5ea2d05dec1b85433d3a41bb354
Merge: f619cb5 cbf54d7
Author: Paride Legovini <paride@debian.org>
Date: Sat Aug 24 07:00:40 2024 +0000
Merge branch 'wip/smcv/podman-auto-init' into 'master'
virt-podman: Try to enable --init automatically if it would work
See merge request ci-team/autopkgtest!417
commit 24f13c96f27e9336d3c3f4694cb90f738de797f9
Author: Paride Legovini <paride@debian.org>
Date: Fri Aug 23 17:45:12 2024 +0200
tests: check if CAP_SYS_ADMIN is EFFECTIVE
Closes: #1079216
commit e6c39071597cc2a5cd64773ff56fbf5e369bb414
Author: Simon McVittie <smcv@debian.org>
Date: Fri Aug 23 20:16:27 2024 +0100
build-docker: Tag images for default architecture with/without prefix
On an amd64 system, we would previously tag amd64 images as
autopkgtest/[systemd/]debian:sid or similar, but images of non-native
architectures as autopkgtest/[systemd/]i386/debian:sid or similar.
Instead of this asymmetry, make the --tag option
repeatable, and if no names are given, tag the image as both
autopkgtest/[systemd/]amd64/debian:sid (consistent with non-native
architectures' images, which is convenient for non-interactive use) and
autopkgtest/[systemd/]debian:sid (shorter to type, for interactive use).
Signed-off-by: Simon McVittie <smcv@debian.org>
commit cbf54d7cc662512f23ee87cd21c9dd55aac2a990
Author: Simon McVittie <smcv@debian.org>
Date: Tue Aug 13 10:02:07 2024 +0100
virt-podman: Try to enable --init automatically if it would work
If the image is labelled with ...init=systemd, ...init=sysv-rc or
...init=openrc, we can assume that we can launch it as a complete
system, similar to how virt-lxc and virt-lxd are used. If it's
labelled with ...init=none, we cannot.
If there is no label, pessimistically assume there is no init system,
so we will only try to boot an init system if specifically booted
with --init.
Add a --no-init option to bypass this automatic detection.
When running as virt-docker, we assume that the init system is not going
to work (because it requires special Docker configuration) unless
specifically told otherwise.
Signed-off-by: Simon McVittie <smcv@debian.org>
commit ea2e73f3f1cf1d00e39a1cc99da9bc2bb972abbd
Author: Simon McVittie <smcv@debian.org>
Date: Tue Aug 13 09:56:08 2024 +0100
build-docker: Label Docker/Podman images with some of their properties
Labelling these images with whether they have an init system will allow
virt-podman to choose whether to enable the --init option automatically.
For completeness, add some other basic facts about the image if we
know them.
Signed-off-by: Simon McVittie <smcv@debian.org>
commit f619cb58aabebb2823dbbe533166200a71b2351d
Merge: a4d7a4b ba0cb2d
Author: Paride Legovini <paride@debian.org>
Date: Fri Aug 23 17:00:54 2024 +0000
Merge branch 'arch-image-fix' into 'master'
t/autopkgtest-buildvm-ubuntu-cloud: fix image url for some arches
See merge request ci-team/autopkgtest!427
commit ba0cb2d3d4a54c52d838715f6b00a926aae178b5
Author: Ural Tunaboyu <ural.tunaboyu@canonical.com>
Date: Wed Aug 21 17:06:24 2024 -0700
t/autopkgtest-buildvm-ubuntu-cloud: fix image url for some arches
The image URL generated for ppc64el, s390x, and armhf is incorrect as
there are no minimal images for those arches. This switches them back to
downloading the full images instead.
LP: #2077552
commit a4d7a4b73f1f7eeddfd019949ff43612956bf202
Merge: e0dfb5c c06c45e
Author: Paride Legovini <paride@debian.org>
Date: Thu Aug 22 11:42:31 2024 +0000
Merge branch 'buildvm-ubuntu-cloud-disk-check' into 'master'
t/autopkgtest-buildvm-ubuntu-cloud: add check for required space
See merge request ci-team/autopkgtest!412
commit c06c45e093bb4856d3c8ccaae0a19ac1110950df
Author: Ural Tunaboyu <ural.tunaboyu@canonical.com>
Date: Thu Aug 22 11:42:30 2024 +0000
t/autopkgtest-buildvm-ubuntu-cloud: add check for required space
Take advantage of the new API in autopkgtest_deps to add a check for
required disk space before trying to size the image.
commit e0dfb5c3d155745fb36110320244cb148b6c4fd2
Merge: dda2e83 fb6a221
Author: Paride Legovini <paride@debian.org>
Date: Wed Aug 21 11:38:44 2024 +0000
Merge branch 'rely-on-find-src-v-to-download' into 'master'
Trust find_source_version_to_download even in presence of src: pins
See merge request ci-team/autopkgtest!424
commit fb6a2211409a16ebc5060a3a790739c9cd13d2af
Author: Paride Legovini <paride@debian.org>
Date: Wed Aug 21 11:40:21 2024 +0200
Trust find_source_version_to_download even in presence of src: pins
The special treatment given to --pin-packages=src:foo packages was
introduced in 38bd054b450e87dac60971986d2fa702e333c4c4 to handle buggy
package "reverse lookup" (from bin package to src package) in the case
of "disjoint binaries" (i.e., when the src package under test produces a
completely new set of binaries.
Now this lookup is done by find_source_version_to_download(), which is
able to handle this case natively, and should be trusted to provide the
right source package to download.
commit dda2e83b68b725f82c57908888e7647106dc12fa
Merge: 8a1ffc1 ef71009
Author: Paride Legovini <paride@debian.org>
Date: Wed Aug 21 10:00:19 2024 +0000
Merge branch 'add-apt-release-support-options' into 'master'
Handle sources.list [ options ] when doing --add-apt-release
See merge request ci-team/autopkgtest!423
commit ef71009dfd323872fefbc26d50ea45cb127fc625
Author: Paride Legovini <paride@debian.org>
Date: Wed Aug 21 10:43:52 2024 +0200
Handle sources.list [ options ] when doing --add-apt-release
commit 8a1ffc1a21eaa488f07703e550bfaa6da9500c68
Merge: e4f6714 af1788f
Author: Paride Legovini <paride@debian.org>
Date: Tue Aug 20 14:22:10 2024 +0000
Merge branch 'tests-archive-codename' into 'master'
tests: Archive: support specifying the release Codename
See merge request ci-team/autopkgtest!421
commit af1788fe725ad042e19502e7d87192e0a4f1fb06
Author: Paride Legovini <paride@debian.org>
Date: Tue Aug 20 15:15:51 2024 +0200
tests: test_apt_pocket_pkg_with_proposed_dep: use expect_success=True
The weird logic (expect_success=False to then check if the tests passed)
is a leftover from 085d820f97af12c07f5968bf241be9c826c6a567.
Gbp-Gch: ignore
commit 1abfdbcd5d9e253748c21beae9e9722a21d7953c
Author: Paride Legovini <paride@debian.org>
Date: Tue Aug 20 15:13:15 2024 +0200
tests: Archive: support specifying the release Codename
This makes the test archive more realistic and allows to leverage the
Corename field in the Release file in code (specifically: in pins) while
keeping tests happy.
commit e4f671469c15715ffceb0ad1967eb449d2563158
Merge: 84682fe 93df968
Author: Paride Legovini <paride@debian.org>
Date: Mon Aug 19 20:32:27 2024 +0000
Merge branch 'default-release-from-sources' into 'master'
Guess the default release from the APT data sources
See merge request ci-team/autopkgtest!411
commit 93df96825de75dd0944e3b6cb392f69777bcd1b3
Author: Paride Legovini <paride@debian.org>
Date: Mon Aug 12 14:50:06 2024 +0200
Guess the default release from the APT data sources
This amends work done in 9a8f77eca561d300babd43b9f2cd060888ba279c,
following realization that we can't reliably distinguish Debian
testing and unstable from /etc/os-release alone.
Also: fix the manpage about --apt-default-release, as autopkgtest
does *not* use APT::Default-Release for that, see 7130136a49a2c05
and #893754.
commit 84682fec273819fc8c482559b8d4bf4a43d57232
Merge: 4a63306 64e855c
Author: Paride Legovini <paride@debian.org>
Date: Fri Aug 16 14:35:18 2024 +0000
Merge branch 'nest-salsa-pipeline' into 'master'
CI: run salsa CI pipeline in a child pipeline
See merge request ci-team/autopkgtest!420
commit 64e855cbe564967c02fdd5c46889a3fa93ec91c7
Author: Paride Legovini <paride@debian.org>
Date: Fri Aug 16 15:19:40 2024 +0200
CI: run salsa CI pipeline in a child pipeline
Rationale:
* It makes it easier to tell which jobs are from the Salsa CI pipeline,
and which jobs are not.
* Namespacing: this will allow running the pipeline on older Debian
releases or on Ubuntu [1].
Gbp-Dch: ignore
[1] https://salsa.debian.org/salsa-ci-team/pipeline/-/merge_requests/518
commit 4a63306d7c3d9d3a2d426d50842bec06df8129ec
Merge: fbd7669 2332bcb
Author: Paride Legovini <paride@debian.org>
Date: Fri Aug 16 12:37:06 2024 +0000
Merge branch 'pre-commit-pygrep-rst' into 'master'
pre-commit: add rst-* hooks from pygrep-hooks
See merge request ci-team/autopkgtest!419
commit 2332bcb65ad117db3f0b74d600f6e2c08bcc8636
Author: Paride Legovini <paride@debian.org>
Date: Fri Aug 16 14:29:10 2024 +0200
doc/README.package-tests.rst: fix backticks (should be double in rst)
Gbp-Dch: Ignore
commit db9aa537402a01eb7fd9e40d83e18c28be78590b
Author: Paride Legovini <paride@debian.org>
Date: Fri Aug 16 14:27:29 2024 +0200
pre-commit: add rst-* hooks from pygrep-hooks
commit fbd7669bb3420bbeab9e04408200f8f82f9bc10b
Merge: cf1d9d9 7b02c95
Author: Paride Legovini <paride@debian.org>
Date: Fri Aug 16 09:01:07 2024 +0000
Merge branch 'master' into 'master'
Increase msize for 9p mount to 512KB (~30% read performance increase)
See merge request ci-team/autopkgtest!418
commit 7b02c95c6c3ffc787002a93b850435c094678da2
Author: Lee Garrett <lgarrett@rocketjump.eu>
Date: Thu Aug 15 21:44:21 2024 +0200
Increase msize for 9p mount to 512KB (~30% read performance increase)
I have verified that this changen actually works on my sid qemu VM and that
there is a measurable performance increase (124s -> 86s)
Prior to this change, the mount command would emit this warning on autopkgtest
runs:
qemu-system-x86_64: warning: 9p: degraded performance: a reasonable high msize
should be chosen on client/guest side (chosen msize is <= 8192). See
https://wiki.qemu.org/Documentation/9psetup#msize for details.
512KB is currently the kernel limit, though the intention is to remove that. See
https://lists.gnu.org/archive/html/qemu-devel/2021-03/msg00989.html
for discussion about the values, and
https://lists.gnu.org/archive/html/qemu-devel/2021-02/msg07258.html
for the discussion about removing the max value.
I have verified that it actually improves performance within the VM with a 10GB
file "foo":
root@sid:~# mount -t 9p
autopkgtest on /run/autopkgtest/shared type 9p (rw,relatime,access=any,trans=virtio)
root@sid:~# time cat /run/autopkgtest/shared/foo > /dev/null
real 2m4.218s
user 0m0.142s
sys 0m16.212s
root@sid:~# umount /run/autopkgtest/shared/
root@sid:~# mount -t 9p -o trans=virtio,access=any,msize=512000 autopkgtest /run/autopkgtest/shared
root@sid:~# mount -t 9p
autopkgtest on /run/autopkgtest/shared type 9p (rw,relatime,access=any,msize=512000,trans=virtio)
root@sid:~# time cat /run/autopkgtest/shared/foo > /dev/null
real 1m26.010s
user 0m0.048s
sys 0m11.038s
commit cf1d9d949cdb3c1db94ae5e613d77163b1237949
Merge: dc6d377 9372ee6
Author: Simon McVittie <smcv@debian.org>
Date: Thu Aug 15 17:38:12 2024 +0000
Merge branch 'wip/bug1078760' into 'master'
build-qemu: Turn off ‘orphan_file’ for older target suites
See merge request ci-team/autopkgtest!416
commit 9372ee6b6c969ec67956a3fcb6f2dc211ad0303b
Author: Guilhem Moulin <guilhem@debian.org>
Date: Thu Aug 15 17:42:58 2024 +0200
build-qemu: Turn off ‘orphan_file’ for older target suites
That feature was added to linux v5.15, so trying to use such an ext4 FS
from an older kernel fails with:
/dev/vda1 has unsupported feature(s): FEATURE_C12
Closes: #1078760
commit dc6d3770b06bcfe671c44314323d045641dbeb6b
Merge: 7f2bea2 1d57d75
Author: Simon McVittie <smcv@debian.org>
Date: Thu Aug 15 09:44:53 2024 +0000
Merge branch 'default-path' into 'master'
incus/lxd: Set a default value for PATH
See merge request ci-team/autopkgtest!415
commit 7f2bea28a4e0076e13da2555fbe8e83716a82bd6
Merge: d657d08 e3c3cd4
Author: Simon McVittie <smcv@debian.org>
Date: Thu Aug 15 08:38:41 2024 +0000
Merge branch 'wip/smcv/pythonize-tools' into 'master'
build-lxc, build-lxd: Convert command-line parsing to Python
See merge request ci-team/autopkgtest!409
commit 1d57d75e661e12bd03f66ea762fc49bc289e2b7f
Author: Stefano Rivera <stefanor@debian.org>
Date: Thu Aug 15 10:37:24 2024 +0200
incus/lxd: Set a default value for PATH
sbuild runs autopkgtest in a very sanitized environment, when called
using the --run-autopkgtest option. It probably should be specifying a
PATH value, but it doesn't. autopkgtest used to handle this correctly,
but e315988e7c42f8bc3aa1b7d56ed2e0c025c93653 assumed that PATH was set.
Don't assume.
commit d657d081ea400d2152ee902822f63dc74ede3ed5
Merge: 069de48 f3f4c3d
Author: Paride Legovini <paride@debian.org>
Date: Wed Aug 14 21:04:04 2024 +0000
Merge branch 'refactor-get-prio-from-policy-2' into 'master'
get_priority_from_policy(): no need to check apt_version
See merge request ci-team/autopkgtest!414
commit f3f4c3d02b19da5f6522b9d97481d134ba13996e
Author: Paride Legovini <paride@debian.org>
Date: Wed Aug 14 21:26:36 2024 +0200
get_priority_from_policy(): no need to check apt_version
Gbp-Dch: ignore
commit 069de487204cf6f6dbb38b07b3b7c53a8ff4cb8b
Merge: cdb3f98 7b7e1b4
Author: Paride Legovini <paride@debian.org>
Date: Wed Aug 14 15:29:28 2024 +0000
Merge branch 'refactor-get-prio-from-policy' into 'master'
Refactor and improve "get priority from policy" logic
See merge request ci-team/autopkgtest!413
commit 7b7e1b4a1debea3f2f5292216a5ac58eddfe2add
Author: Paride Legovini <paride@debian.org>
Date: Wed Aug 14 15:14:20 2024 +0200
Refactor and improve "get priority from policy" logic
With apt (<< 1.1~exp9) we assumed that the priority for a version was
the max(version-priority-and-all-file-priorities). This is not true: the
version priority can be _lower_ than all the file priorities. We should
return max(all-file-priorities) iif the version priority is 0 (i.e. not
explicitly set).
We didn't hit this bug in practice because in autopkgtest when we
single-out packages with pins, that is to set a high priority, so the
buggy max() mentioned above worked just fine.
This change also renames the get_max_priority_from_policy() function to
get_priority_from_policy(), as we don't always return the "max" priority
(version pins win over file pins!), and improves the function structure
and comments.
commit e3c3cd43eeeea7e8f912bba43b7272008dccec10
Author: Simon McVittie <smcv@debian.org>
Date: Mon Aug 12 09:58:18 2024 +0100
build-lxc: Check presence of lxc-templates
Now that we're checking the dependencies in Python code, we can reuse
FileDependency without having to reinvent it in shell.
Signed-off-by: Simon McVittie <smcv@debian.org>
commit 23e4989be6937e6073f3ce0ae4f92b163992b774
Author: Simon McVittie <smcv@debian.org>
Date: Mon Aug 12 09:44:24 2024 +0100
build-lxc, build-lxd: Convert command-line parsing to Python
This allows us to use the same shared code as build-docker and
build-qemu for the dependency checks, which in turn will allow
checking for the presence of lxc-templates.
For the moment, the actual functionality of the tools is still a shell
script (now located in lib/), but lxc/lxd users are encouraged to convert
it into a language with fewer sharp edges as a separate change.
Signed-off-by: Simon McVittie <smcv@debian.org>
commit 18fe0fb190c81caa947781e73e731966a2366f70
Author: Simon McVittie <smcv@debian.org>
Date: Mon Aug 12 09:42:51 2024 +0100
build-qemu(1): Separate recommended and deprecated invocation
Signed-off-by: Simon McVittie <smcv@debian.org>
commit cdb3f98b9780565e963dac1b6119da4d8e643c19
Author: Simon McVittie <smcv@debian.org>
Date: Mon Aug 12 12:11:21 2024 +0100
Prepare v5.39
Signed-off-by: Simon McVittie <smcv@debian.org>
commit a0cd18fb04a18d1fee3ab9031b86231fec6fcb6c
Author: Simon McVittie <smcv@debian.org>
Date: Mon Aug 12 12:10:51 2024 +0100
Update changelog
Signed-off-by: Simon McVittie <smcv@debian.org>
commit e2b6546294f41723be32d267a62436abcefe10cb
Author: Simon McVittie <smcv@debian.org>
Date: Mon Aug 12 12:08:24 2024 +0100
Revert "build-docker/build-podman: Declare all ARGs in a single directive"
ENV accepts this syntax, but ARG does not.
This reverts commit f4502631710462a0ea283f89315fa51f9732419e.
Signed-off-by: Simon McVittie <smcv@debian.org>
commit 6c2a4218b39adfbb96088a27514141fb69e30184
Author: Simon McVittie <smcv@debian.org>
Date: Mon Aug 12 08:49:36 2024 +0100
Update changelog
Signed-off-by: Simon McVittie <smcv@debian.org>
commit 0e01185c569a40307bf555b161f87e42e36ff607
Author: Simon McVittie <smcv@debian.org>
Date: Sun Aug 11 17:55:41 2024 +0100
build-lxc: Also check for debootstrap
The Debian template in lxc-templates is based on running debootstrap,
and the same is presumably true for others.
Signed-off-by: Simon McVittie <smcv@debian.org>
commit e8c1a5dc0333ce5ea748ba1522fe6e21221b64b6
Merge: e2a1019 e315988
Author: Simon McVittie <smcv@debian.org>
Date: Mon Aug 12 07:37:23 2024 +0000
Merge branch 'wip/smcv/tool-dependencies' into 'master'
Improve tool dependency checking
See merge request ci-team/autopkgtest!403
commit e2a1019cafc55b16107b66d05a5d58f9fcf4e11c
Merge: 31db54f e835eac
Author: Simon McVittie <smcv@debian.org>
Date: Mon Aug 12 07:37:00 2024 +0000
Merge branch 'test-name-example' into 'master'
some improvements to the test-name docs
See merge request ci-team/autopkgtest!408
commit e835eaca4f407074a4901da322fc0cf4a847edfa
Author: Johannes Schauer Marin Rodrigues <josch@mister-muffin.de>
Date: Mon Aug 12 07:49:53 2024 +0200
doc/README.package-tests.rst: mono-space the test-name example
commit b656cc9f4e77c5d76e6c6bbb31a88d4bb10cba95
Author: Johannes Schauer Marin Rodrigues <josch@mister-muffin.de>
Date: Mon Aug 12 07:48:49 2024 +0200
doc/README.package-tests.rst: also point out that a test name cannot contain commas
Features are separated by comma or space
commit 7a2db02ab1a2d1f2a7d56d3643c2fa2943b6a3aa
Author: Johannes Schauer Marin Rodrigues <josch@mister-muffin.de>
Date: Mon Aug 12 07:46:46 2024 +0200
doc/README.package-tests.rst: use minus instead of underscores in the example test name
Lintian will emit the warning illegal-runtime-test-name if underscores
are used because the test name "should" only contain characters that are
valid in package names (even though more are valid in practice).
commit 31db54f89e746a0bf9c1a006d0bddceb0e15f34d
Merge: a9e86ba ee7e5dd
Author: Simon McVittie <smcv@debian.org>
Date: Sun Aug 11 21:22:19 2024 +0000
Merge branch 'wip/smcv/podman-proxy' into 'master'
build-podman: Don't assume that host is reachable as 10.0.2.2
See merge request ci-team/autopkgtest!404
commit a9e86ba32263b6286ea5c0116544c4a802b8c4ae
Merge: 459c780 4d5a1d2
Author: Paride Legovini <paride@debian.org>
Date: Sun Aug 11 20:14:52 2024 +0000
Merge branch 'avoid-exit-254-and-255' into 'master'
wrapper.sh: downcast exit code 254 and 255 to 253
See merge request ci-team/autopkgtest!407
commit ee7e5ddd5705a94a5b222854d0a3eb63e263dce8
Author: Simon McVittie <smcv@debian.org>
Date: Sun Aug 11 17:19:09 2024 +0100
build-podman: Don't assume that host is reachable as 10.0.2.2
This was true with slirp4netns in its default configuration, but is
no longer true when using passt. If the auto-detected proxy is
localhost or 127.0.0.x, ask the user to set a suitable proxy via
--apt-proxy instead.
Closes: #1078076
Signed-off-by: Simon McVittie <smcv@debian.org>
commit 459c780fcd9ff58a0c976d6777bd0e094524e468
Merge: e3cfdb2 06080d3
Author: Paul Gevers <elbrus@debian.org>
Date: Sun Aug 11 19:25:49 2024 +0000
Merge branch 'fix_sd_version_check' into 'master'
await-boot.sh: fix check for systemd-sysv
See merge request ci-team/autopkgtest!406
commit 4d5a1d26cca070a47bd86150d4a9b2b7688fce7e
Author: Paul Gevers <elbrus@debian.org>
Date: Sun Aug 11 19:56:19 2024 +0200
wrapper.sh: downcast exit code 254 and 255 to 253
exit code 254 and 255 are interpreted as auxverb failure by adt_testbed.py
so a test should not exit with either.
Closes: #1078214
commit 06080d3feeb0ff1d52d3c0f55e85b61ad060aa26
Author: Luca Boccassi <bluca@debian.org>
Date: Sun Aug 11 19:25:51 2024 +0100
await-boot.sh: fix check for systemd-sysv
If the package is removed it will still be in the dpkg database,
so explicitly check that it is in the installed state
Closes: #1078510
commit e3cfdb25b159a39818e63a8e027cec1e02a1dba7
Merge: 35b791f f450263
Author: Simon McVittie <smcv@debian.org>
Date: Sun Aug 11 17:52:58 2024 +0000
Merge branch 'wip/smcv/docker-layers' into 'master'
build-docker/build-podman: Declare all ARGs in a single directive
See merge request ci-team/autopkgtest!405