vcswatch reports that
this package seems to have new commits in its VCS but has
not yet updated debian/changelog. You should consider updating
the Debian changelog and uploading this new version into the archive.
Here are the relevant commit logs:
commit b291ac1a95b5573734e86ebe76e1face7414b359
Merge: 3384f23 88200a4
Author: Paride Legovini <paride@debian.org>
Date: Mon Sep 30 18:00:06 2024 +0000
Merge branch 'subprocess-devnull' into 'master'
Drop fallback to os.devnull when subprocess.DEVNULL is not available
See merge request ci-team/autopkgtest!458
commit 88200a4f59912cea326841cfd5638fa13ed27b92
Author: Paride Legovini <paride@debian.org>
Date: Mon Sep 30 17:50:19 2024 +0200
Drop fallback to os.devnull when subprocess.DEVNULL is not available
subprocess.DEVNULL was introduced in Python 3.3, we can safely assume it
is available.
Gbp-Dch: Ignore
commit 3384f2374e1923dc7b049bbdbfe1a7a861f4ad55
Merge: 42f3057 d306980
Author: Paride Legovini <paride@debian.org>
Date: Mon Sep 30 14:45:28 2024 +0000
Merge branch 'lxc-no-tmpfs' into 'master'
Revert "lxc: define /tmp mount via lxc-start"
See merge request ci-team/autopkgtest!455
commit d306980e59fb8bf8385280dcf024fd14f6d65bb9
Author: Paride Legovini <paride@debian.org>
Date: Thu Sep 26 14:09:48 2024 +0200
Revert "lxc: define /tmp mount via lxc-start"
This reverts commit c6592419b908fccd0c7599de425392b689c7d46d.
In setup-testbed we prevent systemd from creating a tmpfs mount for
/tmp, see 5c0be5c30c3c028f7481899b394080ed8bdb2801 for the change itself
and rationale. We also need to drop the code that makes the lxc virt
server create its own tmpfs mount for /tmp.
commit 42f3057b49c609819cd8333f29e0dd045692b257
Merge: bbdfd79 7382e77
Author: Paride Legovini <paride@debian.org>
Date: Thu Sep 26 11:54:43 2024 +0000
Merge branch 'sh-ec-fixups' into 'master'
Fixups on some command executions via sh -ec
See merge request ci-team/autopkgtest!453
commit bbdfd797980a41cda87c99c02160a262042930c6
Merge: 8437f4d 5e06795
Author: Paride Legovini <paride@debian.org>
Date: Thu Sep 26 11:14:17 2024 +0000
Merge branch 'factor-out-add-apt-pref' into 'master'
Testbed: factor out "add apt preference" functionality
See merge request ci-team/autopkgtest!454
commit 7382e77f0534fe1fe6c049b2b190c8822a3076c7
Author: Paride Legovini <paride@debian.org>
Date: Thu Sep 26 11:26:17 2024 +0200
Fixups on some command executions via sh -ec
* When using the `sh -ec command_string [command name [argument ...]]`
syntax, we can't use a -- separator: that simply becomes the
command_name. Let's use a proper command name instead.
* There was an unescaped \ in a printf call, which still worked but not
in the intended way. Rework that `sh -ec` call to use "$@" instead,
which is the safe way, not breaking even if "source" contains quotes.
Gbp-Dch: Ignore
commit 5e0679513668750cb00a355117365b0478d605ad
Author: Paride Legovini <paride@debian.org>
Date: Tue Sep 24 15:29:59 2024 +0200
Testbed: factor out "add apt preference" functionality
This is similar to what we do with _add_apt_source().
Also: create /etc/apt/preferences.d once for all instead of attempting
to (re)create it every time there is a preference to add. Adapt tests
accordingly: we now want the directory to exist and be empty when no
preference is expected. One objection to this is: we may want to spot
test failures due to packages assuming that preferences.d exists.
However there is a counter-argument: we don't want this hypothetical
test to pass when running on testing + pinned packages from unstable
(which implies creating preferences.d), allow the package to migrate,
but then fail when running on testing alone. It is preferable to always
run tests in a consistent environment.
This change will help fixing #1052119.
Gbp-Dch: Ignore
commit 8437f4d451ebf14bfe354674da8a13e77ff3ff57
Merge: 40e27bd 11bfa7f
Author: Paride Legovini <paride@debian.org>
Date: Thu Sep 26 07:52:08 2024 +0000
Merge branch 'ensure-variable-initialized' into 'master'
VirSubproc.py: prevent UnboundLocalError on timeout
See merge request ci-team/autopkgtest!451
commit 11bfa7f548d9c58c6ce85383e08f22a111ad99ae
Author: Paul Gevers <elbrus@debian.org>
Date: Wed Sep 25 21:14:16 2024 +0200
VirSubproc.py: prevent UnboundLocalError on timeout
Fix this this stack strace
File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 833, in mainloop
command()
File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 762, in command
r = f(c, ce)
^^^^^^^^
File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 351, in cmd_open
caller.hook_open()
File "/usr/bin/autopkgtest-virt-lxc", line 237, in hook_open
wait_booted(lxc_container_name)
File "/usr/bin/autopkgtest-virt-lxc", line 136, in wait_booted
VirtSubproc.wait_booted(sudoify(['lxc-attach', *lxcpath_opt, '--name', lxc_name, '--']),
File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 246, in wait_booted
if rc == 0:
^^
UnboundLocalError: cannot access local variable 'rc' where it is not associated with a value
commit 40e27bdf34a21c4e165f5f33628c1339cb94b6cd
Merge: 75673ee e95a3bd
Author: Paride Legovini <paride@debian.org>
Date: Tue Sep 24 11:04:53 2024 +0000
Merge branch 'unify-add-pockets-add-releases' into 'master'
Refactor how APT releases and pockets are added
See merge request ci-team/autopkgtest!448
commit e95a3bd4ff3182afe0f398775c83e277ae20165b
Author: Paride Legovini <paride@debian.org>
Date: Thu Sep 19 10:55:45 2024 +0200
Update manpage after refactor of APT source addition
Clarify, make terminology more uniform and remove duplication.
This change calls Debian backports a "pocket". That's an Ubuntism, but
one that covers a concept in Debian-style repository layouts that
otherwise lacks an established name [1].
[1] https://wiki.debian.org/Glossary#P.
commit 8c1f497c89dd50b9cbca2389cfaca47d5d365a02
Author: Paride Legovini <paride@debian.org>
Date: Tue Sep 17 18:41:33 2024 +0200
Refactor how APT releases and pockets are added
This change refactors how APT sources are added to the testbed so that
the code for --add-apt-release leverages the code for --add-apt-source,
and the code for --apt-pocket leverages --add-apt-release.
In particular:
* --add-apt-source code deals directly with adding an APT source to
/etc/apt/sources.list.d/, supporting both deb822 and one-line-style.
* --add-apt-release=RELEASE uses --add-apt-source code to add RELEASE to
the configured APT sources.
* --apt-pocket=POCKET=PACKAGELIST is the same of specifying
--add-apt-release=BASE-POCKET --pin-packages=BASE-POCKET=PACKAGELIST,
where BASE is the first configured APT release.
User-facing changes:
* When using --apt-pocket, both "deb" and "deb-src" entries are added
for the pocked, even if the "base" release only has a "deb" source.
This is desirable and now consistent with --add-apt-release.
* deb822 souces can no longer be added via --add-apt-source. This has
always been undocumented, and never used in practice to be best of my
knowledge. A cli option is not the right place there to specify
multi-line input. If needed we should let --add-apt-source read from
file, similar to what --setup-command does.
* Exit 20 when a --add-apt-source is passed a malformed source.
Other changes:
* Adjusted tests (newlines)
* Removal of duplicate releases or pockets to add.
* Fixed handling of one-line-style sources.list [ options ].
* Stricter validation of --add-apt-source input.
* Added test_add_apt_*_multi tests, testing adding multiple releases.
* Added type hinting on relevant code.
commit 75673ee6fad548b33c4681d19cb8acd2d70377e6
Merge: 19b688c 4719adc
Author: Paride Legovini <paride@debian.org>
Date: Fri Sep 20 19:38:27 2024 +0000
Merge branch 'grub-reboot' into 'master'
reboot-required: Also monitor /boot/{grub,efi}
See merge request ci-team/autopkgtest!449
commit 4719adcd0c44b6eaa1b18d4ad2470179074f7599
Author: Christian Kastner <ckk@debian.org>
Date: Fri Sep 20 18:01:14 2024 +0200
reboot-required: Also monitor /boot/{grub,efi}
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 26a4e02025df859664386eaa5b597d7ed4a8f5e8
Author: Johannes Schauer Marin Rodrigues <josch@debian.org>
Date: Wed Mar 27 22:04:36 2024 +0100
lib/adt_binaries.py: run 'apt update' before 'apt install'
This adds support for running on a chroot with an empty apt cache.
commit 56aec594989ebe204728c5eb892c769d18bd5305
Merge: f632ae0 9497292
Author: Antonio Terceiro <terceiro@debian.org>
Date: Mon Mar 25 19:33:20 2024 +0000
Merge branch 'lxcpath' into 'master'
autopkgtest-virt-lxc: add option to choose container location
See merge request ci-team/autopkgtest!306