Thread View: linux.debian.bugs.dist
5 messages
5 total messages
Started by Patrik Dufresne
Sun, 29 Nov 2026 18:10
Bug#1155835: autopkgtest: allow local binaries with null backend in disposable environments
Author: Patrik Dufresne
Date: Sun, 29 Nov 2026 18:10
Date: Sun, 29 Nov 2026 18:10
66 lines
3613 bytes
3613 bytes
This is a multi-part message in MIME format.
--------------EPGtLQOwo6OJ0b4Ow53LQ9p9
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Package: autopkgtest
Version: 6.6
Severity: normal
Dear Maintainer,
autopkgtest 6.6 now refuses to test locally supplied or freshly built
binary packages on a testbed without revert capability (per the NEWS
entry). With the null backend this fails with:
autopkgtest [..]: ERROR: testbed failure: testing local binaries
requires a testbed with revert capability
In context where autopkgtest is already running within a disposable
context. e.g.: in docker / or CICD pipeline. There is not point to
create yet another isolated environment to run the test. This is a waste
of time and resources.
So I'm kindly asking an option `--i-know--what-am-doing` run the test
regardless.
Thanks,
Patrik
--------------EPGtLQOwo6OJ0b4Ow53LQ9p9
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Package: autopkgtest<br>
Version: 6.6<br>
Severity: normal<br>
<br>
Dear Maintainer,<br>
<br>
autopkgtest 6.6 now refuses to test locally supplied or freshly
built binary packages on a testbed without revert capability (per
the NEWS entry). With the null backend this fails with:<br>
<br>
autopkgtest [..]: ERROR: testbed failure: testing local binaries
requires a testbed with revert capability<br>
<br>
In context where autopkgtest is already running within a disposable
context. e.g.: in docker / or CICD pipeline. There is not point to
create yet another isolated environment to run the test. This is a
waste of time and resources.<br>
<br>
So I'm kindly asking an option `--i-know--what-am-doing` run the
test regardless.<br>
<br>
Thanks,<br>
Patrik
</body>
</html>
--------------EPGtLQOwo6OJ0b4Ow53LQ9p9--
Bug#1155835: autopkgtest: allow local binaries with null backend in disposable environments
Author: Paride Legovini
Date: Sun, 29 Nov 2026 18:30
Date: Sun, 29 Nov 2026 18:30
25 lines
2746 bytes
2746 bytes
On 2026-11-29 19.06, Patrik Dufresne wrote: > autopkgtest 6.6 now refuses to test locally supplied or freshly built > binary packages on a testbed without revert capability (per the NEWS > entry). With the null backend this fails with: > > autopkgtest [..]: ERROR: testbed failure: testing local binaries > requires a testbed with revert capability > > In context where autopkgtest is already running within a disposable > context. e.g.: in docker / or CICD pipeline. There is not point to > create yet another isolated environment to run the test. This is a waste > of time and resources. > > So I'm kindly asking an option `--i-know--what-am-doing` run the test > regardless. Hello Patrik, please try with: autopkgtest ... -- null --fake-capability revert That may do it. However, keep it mind that when running multiple tests, tests after the first one may get a dirty or broken testbed. This was (mostly) the case even before. Paride
Bug#1155835: autopkgtest: allow local binaries with null backend in disposable environments
Author: Christoph Berg
Date: Mon, 30 Nov 2026 21:20
Date: Mon, 30 Nov 2026 21:20
34 lines
2884 bytes
2884 bytes
Re: Paride Legovini > > autopkgtest [..]: ERROR: testbed failure: testing local binaries > > requires a testbed with revert capability Hi, this breaks building packages on apt.postgresql.org where the tests are already running inside a disposable container, so this protection is not required. > Hello Patrik, please try with: > > autopkgtest ... -- null --fake-capability revert Re: Paride Legovini > a-virt-null: implement hook_revert() > > When --fake-capability revert is passed to autopkgtest-virt-null, > VirtSubproc.cmd_revert() invokes caller.hook_revert(), which failed with > AttributeError because the hook was not defined. > > Implement hook_revert() by calling hook_cleanup() and hook_open(), > matching the other virt backends. This cleans and recreates the scratch > directory while leaving the rest of the host unchanged. > > Closes: #1155835 Does that mean we still have to pass `--fake-capability revert` even when this fix is landing? (Does autopkgtest in oldstable/jammy support --fake-capability revert?) Thanks, Christoph
Bug#1155835: autopkgtest: allow local binaries with null backend in disposable environments
Author: Christoph Berg
Date: Mon, 30 Nov 2026 21:30
Date: Mon, 30 Nov 2026 21:30
14 lines
2520 bytes
2520 bytes
Re: Paride Legovini > autopkgtest ... -- null --fake-capability revert Thinking about this some more... is there anything that autopkgtest could do with the "null" backend that doesn't require that capability? If the answer is "nothing", wouldn't it make sense to go back to the old state of "-- null" just doing what the user just asked for? Everyone using the null backend should be aware that the test is going to leave traces behind, so it shouldn't be necessary to spell "-- null" as "-- null --yes-I-know-null-is-null-aka-fake-capability revert". Thanks, Christoph
Bug#1155835: autopkgtest: allow local binaries with null backend in disposable environments
Author: Paride Legovini
Date: Tue, 01 Dec 2026 11:40
Date: Tue, 01 Dec 2026 11:40
33 lines
3245 bytes
3245 bytes
On 2026-11-30 22.17, Christoph Berg wrote: > Re: Paride Legovini >>> autopkgtest [..]: ERROR: testbed failure: testing local binaries >>> requires a testbed with revert capability > > Hi, > > this breaks building packages on apt.postgresql.org where the tests > are already running inside a disposable container, so this protection > is not required. Hi, the thing is that this is not only a protection: testing with null that way breaks assumptions autopkgtest makes on the testbed (on configured sources, installed packages, ...). Testing will be of low quality. This said, I understand the use case, and that it's best effort testing which is useful in practice, even if not perfect. I'll try to think of something. Making autopkgtest stricter was not for the sake of it: it allowed fixing #1086701, which required modifying the testbed in some ways that are not obvious to revert. Still, I'll see what I can do. > Does that mean we still have to pass `--fake-capability revert` even > when this fix is landing? > > (Does autopkgtest in oldstable/jammy support --fake-capability revert?) Probably? But that older autopkgtest will not require revert for testing binaries. -- Paride
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads