[Bug 2000015] Re: autopkgtest unshare-qemuwrapper doesn't build chroot with sbuild from lunar-proposed
Mauricio Faria de Oliveira
2000015 at bugs.launchpad.net
Sun Dec 18 23:17:32 UTC 2022
For documentation purposes, the autopkgtests pattern observed
on packages w/ the sbuild versions in lunar-release/proposed:
With sbuild 0.83.1ubuntu1:
(dpkg, courier, postfix, sendmail, bcron, mmdebstrap, python-psutil, [gnupg2, perl])
autopkgtest [HH:MM:SS]: @@@@@@@@@@@@@@@@@@@@ summary
build-procenv PASS
unshare-qemuwrapper SKIP installation fails and skip-not-installable set
unshare FAIL non-zero exit status 1
With sbuild 0.84.1ubuntu2:
(sbuild, qemu)
autopkgtest [HH:MM:SS]: @@@@@@@@@@@@@@@@@@@@ summary
build-procenv PASS
unshare-qemuwrapper FAIL non-zero exit status 1
unshare PASS
With sbuild 0.84.1ubuntu3:
(hopefully all PASS.)
Details/Links:
---
- courier
autopkgtest for sbuild/0.83.1ubuntu1: amd64: Regression
https://autopkgtest.ubuntu.com/results/autopkgtest-lunar/lunar/amd64/s/sbuild/20221216_003801_82076@/log.gz
- gnupg2
autopkgtest for sbuild/0.83.1ubuntu1: amd64: Test in progress
- postfix
autopkgtest for sbuild/0.83.1ubuntu1: amd64: Regression
https://autopkgtest.ubuntu.com/results/autopkgtest-lunar/lunar/amd64/s/sbuild/20221216_005356_136d6@/log.gz
- sendmail
autopkgtest for sbuild/0.83.1ubuntu1: amd64: Regression
https://autopkgtest.ubuntu.com/results/autopkgtest-lunar/lunar/amd64/s/sbuild/20221216_010940_3cf86@/log.gz
- bcron
autopkgtest for sbuild/0.83.1ubuntu1: amd64: Regression
https://autopkgtest.ubuntu.com/results/autopkgtest-lunar/lunar/amd64/s/sbuild/20221213_201446_a5b99@/log.gz
- mmdebstrap
autopkgtest for sbuild/0.83.1ubuntu1: amd64: Regression
https://autopkgtest.ubuntu.com/results/autopkgtest-lunar/lunar/amd64/s/sbuild/20221214_045604_b9159@/log.gz
- perl
autopkgtest for sbuild/0.83.1ubuntu1: amd64: Test in progress
- python-psutil
autopkgtest for sbuild/0.83.1ubuntu1: amd64: Regression
https://autopkgtest.ubuntu.com/results/autopkgtest-lunar/lunar/amd64/s/sbuild/20221211_174327_0611c@/log.gz
- dpkg
autopkgtest for sbuild/0.83.1ubuntu1: amd64: Regression
https://autopkgtest.ubuntu.com/results/autopkgtest-lunar/lunar/amd64/s/sbuild/20221218_024128_8ae8a@/log.gz
...
- sbuild
autopkgtest for sbuild/0.84.1ubuntu2: amd64: Regression
https://autopkgtest.ubuntu.com/results/autopkgtest-lunar/lunar/amd64/s/sbuild/20221215_210532_59f06@/log.gz
- qemu
autopkgtest for sbuild/0.84.1ubuntu2: amd64: Regression
https://autopkgtest.ubuntu.com/results/autopkgtest-lunar/lunar/amd64/s/sbuild/20221215_210532_59f06@/log.gz
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sbuild in Ubuntu.
https://bugs.launchpad.net/bugs/2000015
Title:
autopkgtest unshare-qemuwrapper doesn't build chroot with sbuild from
lunar-proposed
Status in sbuild package in Ubuntu:
In Progress
Bug description:
The autopkgtest `d/t/unshare` uses `sbuild`, which fails on lunar
(sbuild 0.83.1ubuntu1) as the chroot setup cannot find `adduser`
(not in the chroot as it's now an alternative dependency in `apt`).
This is fixed in lunar-proposed (sbuild 0.84.1ubuntu2; commit [1])
since it no longer depends on `adduser` in the chroot.
[1]
https://salsa.debian.org/debian/sbuild/-/commit/0d35fa019a5c6d51e0928987a87849766b0f35e6
However, `d/t/unshare-qemuwrapper` runs `d/t/unshare` in a qemu vm,
but its image still does _not_ ship `sbuild` from lunar-proposed,
thus `unshare` fails anyway (and its parent `unshare-qemuwrapper`).
The reason is, even though the apt _sources_ are used to build the
vm disk image thus `lunar-proposed` is _available_, it is not used
because apt _preferences_ (`autopkgtest --apt-pocket=proposed=src:...`)
are not copied in.
This is now required as lunar has -proposed pocket w/ NotAutomatic.
Just checking for/copying the apt preferences file/dir address it:
+ mmdebstrap ... --setup-hook=sync-in /etc/apt/preferences.d/ ...
Tests:
=====
$ autopkgtest-buildvm-ubuntu-cloud -a amd64 -r lunar
Before:
$ autopkgtest sbuild \
-B -U --apt-pocket=proposed=src:sbuild -- qemu autopkgtest-lunar-amd64.img
...
autopkgtest [15:24:09]: test unshare-qemuwrapper: [-----------------------
...
+ mmdebstrap --variant=apt --mode=root --verbose --setup-hook=/tmp/autopkgtest.NnTISR/autopkgtest_tmp/setup.sh --include=...
...
Setting up sbuild (0.83.1ubuntu1) ...
...
After:
$ autopkgtest ./sbuild_0.84.1ubuntu3.dsc \
-B -U --apt-pocket=proposed=src:sbuild -- qemu autopkgtest-lunar-amd64.img
...
autopkgtest [15:39:50]: test unshare-qemuwrapper: [-----------------------
...
+ [ -e /etc/apt/preferences.d/autopkgtest-lunar-proposed ]
+ cat /etc/apt/preferences.d/autopkgtest-lunar-proposed
Package: *
Pin: release a=lunar
Pin-Priority: 990
Package: buildd libsbuild-perl sbuild sbuild-debian-developer-setup sbuild-qemu
Pin: release a=lunar-proposed
Pin-Priority: 995
Package: *
Pin: release a=lunar-updates
Pin-Priority: 990
...
+ mmdebstrap --variant=apt --mode=root --verbose --setup-hook=/tmp/autopkgtest.4gz0dQ/autopkgtest_tmp/setup.sh --setup-hook=sync-in /etc/apt/preferences.d/ /etc/apt/preferences.d/ --include=...
...
Setting up sbuild (0.84.1ubuntu2) ...
...
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sbuild/+bug/2000015/+subscriptions
More information about the foundations-bugs
mailing list