autopkgtest unshare-qemuwrapper doesn't build chroot with sbuild from lunar-proposed

Bug #2000015 reported by Mauricio Faria de Oliveira
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sbuild (Ubuntu)
Fix Released
Medium
Mauricio Faria de Oliveira

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) ...
...

Tags: patch
Changed in sbuild (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Mauricio Faria de Oliveira (mfo)
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

debdiff including the changes in lunar-proposed (0.84.1ubuntu2).

summary: - autopkgtest unshare-qemuwrapper doesn't build chroot with sbuild/lunar-
- proposed
+ autopkgtest unshare-qemuwrapper doesn't build chroot with sbuild from
+ lunar-proposed
description: updated
description: updated
tags: added: patch
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

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

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sbuild - 0.84.1ubuntu3

---------------
sbuild (0.84.1ubuntu3) lunar; urgency=medium

  * Fix autopkgtest `unshare-qemuwrapper` on lunar-proposed (LP: #2000015)
    - d/t/unshare-qemuwrapper: copy apt preferences into the vm's chroot.
    - d/t/unshare: use mmdebstrap --verbose to aid debugging.

 -- Mauricio Faria de Oliveira <email address hidden> Fri, 16 Dec 2022 14:20:13 -0300

Changed in sbuild (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.