Your message dated Mon, 09 Nov 2026 22:34:45 +0000
with message-id <[email protected]>
and subject line Bug#1063533: fixed in autopkgtest 6.1
has caused the Debian Bug report #1063533,
regarding Performance with packages with large numbers of tests
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1063533: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063533
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: autopkgtest
Version: 5.32
Severity: wishlist
tl;dr:
autopkgtest is slower than it needs to be for packages with many
tests. I can see at least one easy opportunity for a potentially
substantial improvement, and have another more doubtful idea.
Background and factual information:
src:dgit has over a hundred autopkgtests (115 in all right now, but
some don't run in CI due to Restrictions; only 108 run in CI). This
is convenient for isolating failures. The tests are grouped into
(currently) 26 stanzas in debian/tests/control.
These tests usually take around 40 minutes to run in a formal run
under autopkgtest. Sometimes the time taken exceeds the default
1-hour timeout in salsa CI.
Some of the tests are very fast - one or two seconds. Some take much
longer.
(During a manual run outside autopkgtest, a complete run of the tests
takes about 8 minutes, but that's with CPU parallelism so isn't
comparable. I haven't done a non-parallel benchmark run.)
Proposal 1:
Observing the logs, I see that even for tests in the same stanza,
autopkgtest prpeares and installs an autopkgtest-satdep package,
between every test.
For short tests, this dominates the execution time. In the logs eg
https://salsa.debian.org/dgit-team/dgit/-/jobs/5270905
it seems to take about 6 seconds.
So I think skipping the testbed re-preparation for tests within the
same stanza would save about 6 seconds per such test, or 530-ish
seconds for each run. Ie, it might cut 20% off the total runtime for
this package.
I'm hoping that this would be relatively straightforward to implement.
Proposal 2:
*Re*installing packages involved with many of the tests seems quite
expensive. For src:dgit, most of the tests involve installing
dgit.deb. dgit and its dependencies seem to take about 20s to
install.
If the test stanzas could be sequenced into "chains" where each test
is has a monotonically longer dependency list, the intervening satdep
installation, to get from one test stanza in the chain, to the nest
stanza, wouldn't need to involve *reinstalling* anything.
I'm not sure how much time this would save. Also it's not clear to me
that this would always be 100% faithful. After dependency resolution
is not monotonic: an extra dependency might result in *deinstallation*
of packages.
So this proposal is more fanciful but I thought I would share it
anyway.
Regards,c
Ian.
--
Ian Jackson <[email protected]> These opinions are my own.
Pronouns: they/he. If I emailed you from @fyvzl.net or @evade.org.uk,
that is a private address which bypasses my fierce spamfilter.
--- End Message ---
--- Begin Message ---
Source: autopkgtest
Source-Version: 6.1
Done: Paride Legovini <[email protected]>
We believe that the bug you reported is fixed in the latest version of
autopkgtest, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Paride Legovini <[email protected]> (supplier of updated autopkgtest package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Mon, 09 Nov 2026 22:43:00 +0100
Source: autopkgtest
Architecture: source
Version: 6.1
Distribution: unstable
Urgency: medium
Maintainer: Debian CI team <[email protected]>
Changed-By: Paride Legovini <[email protected]>
Closes: 817079 909534 987046 1010437 1020699 1021497 1029414 1063533 1076343
1077620 1096110 1098743 1113955 1123760 1134551 1135606 1142949 1150273 1150850
1152781
Changes:
autopkgtest (6.1) unstable; urgency=medium
.
[ Paride Legovini ]
* New baseline testbed requirements:
- Update baseline testbed requirements (apt 1.2.35, python3.5.1)
- Drop fallback code and workarounds for deprecated testbeds
* Full refactor of code copying data to and from the testbed
* Document the rw-build-tree restriction as obsolete
* Treat all source trees the same way: trees containing debian/files
no longer default to --no-built-binaries
* await-boot: also wait for network to be ready before returning
* VirtSubproc: terminate processes before killing them (Closes: #987046)
* Update name of schroot virt server across project (Closes: #1096110)
* testdesc: always use python-debian architecture matching
* testdesc: reject invalid architecture syntax (Closes: #1113955)
* testdesc: follow deb822(5) rules for comments in d/t/control
(Closes: #1021497)
* autopkgtest.1: clarify override control path (Closes: #1135606)
* doc: register HTML documentation with doc-base (Closes: #1029414)
* a-virt-qemu changes:
- use host CPU passthrough for KVM (Closes: #1123760)
- bump reboot timeout from 60s to 900s (Closes: #1077620)
- warn about slowness when /dev/kvm is not available
- fix --baseimage (lacking a terminating newline) (Closes: #1134551)
- set baseimage serial as a device property for compatibility
with QEMU >= 3.0
- enable exit-with-parent on qemu 10.2 and later
* a-build-qemu: fix image build as non-root with proxy
* New cli option: --fail-fast to skip tests after the first failure
* a-build-lxc: remove broken eatmydata LD_PRELOAD (Closes: #1010437)
* a-virt-unshare changes:
- keep su out of PID 1 (workaround for su(1) bug)
- use create-normal-user instead of useradd
- fix cache path when XDG_CACHE_HOME is set.
Thanks to David Kalnischkies (Closes: #1150273)
- kill test processes when their caller exits
* Put testbed scratch directory under /var/tmp
* create-normal-user: create accounts without adduser or useradd
(Closes: #1098743)
* VirtSubproc: clean up when scratch allocation fails after open
* a-virt-lxd changes:
- auxverb: do not execute commands with --force-noninteractive.
Thanks to Colin Watson (Closes: #1142949)
- bring back --vm to force a VM over a container.
Thanks to Alessandro Astone
- stop using ephemeral LXD/Incus instances
- separate instance creation from startup
- keep output of lxc/incus start off the virt server protocol
* Restructure downtmp (= scratch directory) handling:
- Separate downtmp creation from capability handling
- Use mode 755 for non-shared testbed scratch directories
- Drop isolation-dependent artifact directory permissions
- Document security implications of host-shared scratch
- tests: verify that shared downtmp actually works
* a-build-lxd changes:
- replace lsb_release with /etc/os-release parsing
- resolve the default remote explicitly (Closes: #1152781)
- force release alignment when RELEASE is specified
- add --include option to add extra packages to image
* wrapper: run tests in their own session (Closes: #1150850)
* Document that tests run in their own process group
* VirtSubproc command(): avoid mutating results when adding "ok" status
* Create AUTOPKGTEST_TMP outside the scratch directory (Closes: #909534)
* Separate test dependency installation from testbed package setup
* Remove unused packages when installing test dependencies
* Drop support for multi-line --add-apt-sources
* Report skips for selected Test-Command tests
* Use testbed snapshots between package tests on LXD/Incus
- Reuse installed dependencies with testbed snapshots (Closes: #1063533)
- Group tests with identical dependencies to reuse snapshots
- Prefetch shared test dependencies
- Avoid full source tree transfers when the testbed can be reused
(Together with other changes Closes: #817079)
* Changes in the setup-testbed script:
- only install python3-minimal in QEMU testbed images
- add build-essential, apport to the list of packages to purge
- add support for configuring network via systemd-networkd
- do not uninstall xml-core (Closes: #1076343)
- avoid host network interface discovery inside chroots
* test optimizations (Closes: #1020699):
- move generic container coverage to UnshareRunner
- reuse built binaries in Provides checks
- read the unshare testbed APT version once per image
- tests: cache common package downloads in testbed images
* Changes in autopkgtest's own tests:
- d/tests: add incus test and run it in GitLab CI
- d/t/control: depend on crun for the podman tests
- d/t/installed: make mock source package valid
- d/t/unshare: fix invocation of sysctl(8)
- d/t/unshare: mark the preinstalled dpkg-dev as auto installed
- tests: sanitize paths reported by ldd(1) in the chroot harness
.
[ Benjamin Drung ]
* ruff: refactoring for increased readability
.
[ Christian Kastner ]
* Introduce timeout (25mins) for lack of forward progress
.
[ Pierre-Elliott Bécue ]
* virts: homogenise profile sourcing with incus by silencing also stdout
* adt_testbed: debug_fail runs now preserve lastsend
.
[ Simon Deziel ]
* Stop using lxd-installer, install the LXD snap directly
Checksums-Sha1:
12d5018d3be8f5c8569ec6a4fefe4608c3901e8b 2779 autopkgtest_6.1.dsc
9090b49b8027250f45ed80a01f04e780797c961a 264376 autopkgtest_6.1.tar.xz
dcb34894c18c56fba8e9157ac854a72cf3dbf654 473032 autopkgtest_6.1.git.tar.xz
a78d42df8fc3be4d41d71dd16b1f7715d913da82 17737 autopkgtest_6.1_source.buildinfo
Checksums-Sha256:
3fb671aa27d7d9f8de8e722d21d6034cf3a3090bea5b598a237e836d8ff4f3a6 2779
autopkgtest_6.1.dsc
79b8e5204cb784e5fbf65cf8c8f1acffe60f557ea827e74e10a1d5cdb80fb047 264376
autopkgtest_6.1.tar.xz
7b266e1dabab9bbb383ffa852e0811cd09e2a82e4068e534780668f3100f73fb 473032
autopkgtest_6.1.git.tar.xz
8603eaa6b2a5ed6601a24ad3064b577249feba09a108e151f753ccc89bf4230a 17737
autopkgtest_6.1_source.buildinfo
Files:
3e138a7659ab227850eccaf7b6a1f767 2779 devel optional autopkgtest_6.1.dsc
6dd187050249699ae3e985e7bbebc7b6 264376 devel optional autopkgtest_6.1.tar.xz
1daeae819ee35d4aeac3549787e77cbd 473032 devel None autopkgtest_6.1.git.tar.xz
4bfc1d664e011966e0e7fb14093c0e53 17737 devel optional
autopkgtest_6.1_source.buildinfo
Git-Tag-Info: tag=b417c65fa222de1de3ec6a8b69c6ece70e9a46eb
fp=561ad585eed766921ba8dd96d65861883e014db9
Git-Tag-Tagger: Paride Legovini <[email protected]>
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmryRTQACgkQYG0ITkaD
wHmM8g//aHUM1RMlK/Q+StNXvMmtdn5WBAvRZQDuXAJcRoWYEaxabAKdRqSBFLmb
Az85Wlnmmax83HIJghXOtue2i2PEU9IN48mBP+hzIw1cNi4BQPbiC1ZBNxtFVNtE
uavzy52KkO1KnDDF7feSSjL19EFGZ9/8ygX49n/pvFLKaNwMYZamF8DupNozWMyc
zbBY2np2KYzidqv9dnn8MOYTgGt61/H3RT1UwWME6roIC/ZmDvLO6buv2BCrm+YF
jnAdjOGbY7ht/HyYEcMvDqvTZy1n/yZd7shcNK+R0vPHvkK7NuD7Z45gOuCkXo0h
zTz3MBdu/eLCIwbBWTRcBNk9iDRYJlm2Ni4MaQPU4xVa7FEocbk1MpWXDtwSJHPh
IKKlB4z5DUg5KgC5QGAlfOkNR/Z7umnnVGjdq9HaNI/8MV308YRJck3+YbCIhNnO
D5sVa8QbvVndtui6u/wfhigs5pLIpxYsvhZ54/cy/Mnc3mOTn617c1MiUf7LKJYc
pwCROxzfTU3oJ54TEgPYPivUADbQqfeRiXC0/twYI20JNyReVF1evfUEguuv+YmS
c/q5WJ9a+CMrKYQpOyY17k2Gmo6EHhJi6drGu/oJOgdo8NA+cIcybcDf+b0RlwU2
VtvNXKgNJNMLd2EKifTi09SwKYhni8IBOwIW9zCjeSI9CuDRxao=
=kvJi
-----END PGP SIGNATURE-----
pgpSLON_ottLV.pgp
Description: PGP signature
--- End Message ---