[2019-07-13 08:28] Dmitry Bogatov <kact...@debian.org> > [2019-07-09 15:11] Lorenz <lorenzo.r...@gmail.com> > > Il giorno mar 9 lug 2019 alle ore 01:52 Colin Watson <cjwat...@debian.org> > > ha scritto: > > >Is this just another instance of problems with your virtual machine not > > >having enough entropy (#912616 etc.)? > > > > It looks you are right, thanks for the tip! > > > > Dmitry, I can pass the test that include openssh-server with a command like > > (see #912087 message 118) > > > > $ autopkgtest ./runit-init_2.1.2-32_all.deb ./runit_2.1.2-32_amd64.deb > > ./runit \ > > -- qemu --qemu-options='-object rng-random,filename=/dev/urandom,id=rng0 > > -device virtio-rng-pci,rng=rng0' \ > > ./debian-unstable.img > > Confirmed. Your solution works. > [...]
> > This rely on the host having enough entropy and i'm not sure how to pass > > those options to salsa CI > > Is it possible to run Qemu on Salsa at all? It seems there no. I tried to reach DSA, Salsa admins and admins of ci.debian.org, and got nothing. So best I have is following patch, that wrap all these complicated qemu option behind `make -f debian/autopkgtest`. It is still to be run manually on someone's laptop. Any better ideas? From 8477e1de56e5ccd1d4be78704e9298d075a166f9 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov <kact...@debian.org> Date: Wed, 14 Aug 2019 04:47:37 +0000 Subject: [PATCH] Add manual rule to run autopkgtest Currently, Debian does not provide infrastructure to run autopkgtests with {isolation-machine} restriction. Additionally, {switch-init} autopkgtest requires significant entropy level in virtual machine, so virtual machine must be started with very specific options. This change adds new rules into {debian/rules}, intended to be run manually. These rules create virtual machine image and run autopkgtests with required virtual image options. Closes: #931658 --- debian/rules | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/debian/rules b/debian/rules index 0e287cf..682a580 100755 --- a/debian/rules +++ b/debian/rules @@ -43,3 +43,25 @@ override_dh_installchangelogs: override_dh_clean: rm -rf debian/auto dh_clean + +autopkgtest-image: + autopkgtest-build-qemu unstable ../autopkgtest.img + +autopkgtest: + $(info Running autopkgtest with options to avoid entropy starvation) + $(info For more information see #931658) +ifeq ($(wildcard ../autopkgtest.img),) + $(error Qemu image ../autopkgtest.img not found. Run autopkgtest-image rule) +endif +ifeq ($(wildcard ../runit_$(DEB_VERSION)_$(DEB_BUILD_ARCH).deb),) + $(error No binary packages in parent directory. Build package) +endif + autopkgtest \ + ../runit-init_$(DEB_VERSION)_all.deb \ + ../runit_$(DEB_VERSION)_$(DEB_BUILD_ARCH).deb \ + . \ + -- qemu \ + --qemu-options='-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0' \ + ../autopkgtest.img + +PHONY: autopkgtest autopkgtest-image -- Note, that I send and fetch email in batch, once in a few days. Please, mention in body of your reply when you add or remove recepients.