Bug#816395: autopkgtest: build fails in OBS due to adt-run tests needing apt-get
Bob Ham
rah+debianbts at settrans.net
Tue Mar 1 14:27:48 UTC 2016
Package: autopkgtest
Severity: serious
Justification: fails to build from source (but built successfully in the past)
Dear Maintainer,
There is a problem in the tests/adt-run python script which is run
while building the package in order to test adt-run. Some of the
tests require a working apt-get in order to install packages. This is
a problem under Open Build Service as the service builds within a
limited chroot in which apt-get does not function. This causes the
package build to fail.
* What led up to the situation?
Attempting to build autopkgtest using an Open Build Service instance.
* What exactly did you do (or not do) that was effective (or
ineffective)?
Kicked off an automated build of autopkgtest.
* What was the outcome of this action?
The build failed with the following:
======================================================================
FAIL: test_tmp_install (__main__.NullRunner)
temp dir unpack of test dependencies
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/adt-run", line 687, in test_tmp_install
self.assertEqual(code, 0, err)
AssertionError: 20 != 0 : adt-run [17:15:09]: version @version@
adt-run [17:15:09]: testbed dpkg architecture: armhf
adt-run [17:15:09]: @@@@@@@@@@@@@@@@@@@@ unbuilt-tree /tmp/test.adt-run.9abjazii/testpkg//
adt-run [17:15:09]: testing package testpkg version 1
adt-run [17:15:09]: build not needed
adt-run [17:15:09]: test t: preparing
adt-run: WARNING: The following dependencies cannot be handled in reduced "unpack to temporary directory" mode: a | b
E: Unable to locate package graphviz
E: Unable to locate package python3-gi
E: Unable to locate package gir1.2-json-1.0
E: Couldn't find any package by regex 'gir1.2-json-1.0'
adt-run [17:15:09]: ERROR: unexpected error: test dependencies are unsatisfiable
======================================================================
FAIL: test_tmp_install_no_such_version (__main__.NullRunner)
temp dir unpack of test dependency with unsatisfiable version
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/adt-run", line 736, in test_tmp_install_no_such_version
self.assertIn('test dependency graphviz (>= 4:999) is unsatisfiable: available version ', err)
AssertionError: 'test dependency graphviz (>= 4:999) is unsatisfiable: available version ' not found in 'adt-run [17:15:10]: version @version@\nadt-run [17:15:10]: testbed dpkg architecture: armhf\nadt-run [17:15:10]: @@@@@@@@@@@@@@@@@@@@ unbuilt-tree /tmp/test.adt-run.mnosid4a/testpkg//\nadt-run [17:15:10]: testing package testpkg version 1\nadt-run [17:15:10]: build not needed\nadt-run [17:15:10]: test t: preparing\nE: Unable to locate package graphviz\nadt-run [17:15:11]: ERROR: unexpected error: test dependencies are unsatisfiable\n'
----------------------------------------------------------------------
Ran 31 tests in 206.072s
FAILED (failures=2)
debian/rules:37: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 1
make[1]: Leaving directory '/usr/src/packages/BUILD/autopkgtest-3.6jessie1'
debian/rules:28: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
* What outcome did you expect instead?
Successful build.
-- System Information:
Debian Release: 8.2
APT prefers stable
APT policy: (990, 'stable'), (500, 'stable-updates'), (70, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.4.0-linux-latest-99 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)
More information about the autopkgtest-devel
mailing list