Bug#757396: autopkgtest: crashes on spamassassin 3.4.0-2 with --built-tree, but not with --apt-source
Antonio Terceiro
terceiro at debian.org
Thu Aug 7 18:30:01 UTC 2014
Package: autopkgtest
Version: 3.3.2
Severity: normal
Let me show how I can currently reproduce this bug.
First, I download the source for spamassassin (I don't think it's
related to spamassassin tests per se, it just happens to be the package
I saw the problem with):
$ apt-get source spamassassin
[...]
Then I run the tests passing the source directory (equivalent to passing --built-tree):
----------------8<----------------8<----------------8<-----------------
$ adt-run --user debci spamassassin-3.4.0/ --- schroot debci-unstable-amd64
adt-run [15:08:48]: version 3.3.2
adt-run [15:08:49]: testbed dpkg architecture: amd64
adt-run [15:08:49]: @@@@@@@@@@@@@@@@@@@@ built-tree spamassassin-3.4.0/
adt-run [15:08:49]: testing package spamassassin version 3.4.0-2
adt-run [15:08:49]: test spamassassin.nospam: preparing
Selecting previously unselected package adt-satdep.
... snip installation of dependencies ...
adt-run [15:08:59]: test spamassassin.nospam: [-----------------------
/tmp/adt-run.FL2v8q/tree/debian/tests/spamassassin.nospam: line 7: python: command not found
ERROR: POINTS SHOULD BE ZERO
adt-run [15:09:00]: test spamassassin.nospam: -----------------------]
adt-run [15:09:00]: test spamassassin.nospam: - - - - - - - - - - results - - - - - - - - - -
spamassassin.nospam FAIL non-zero exit status 1
adt-run [15:09:00]: test spamassassin.spam: preparing
(Reading database ... 12244 files and directories currently installed.)
Preparing to unpack .../adt-run.FL2v8q/adt-satdep.deb ...
Unpacking adt-satdep (0) over (0) ...
Reading package lists...
Building dependency tree...
Reading state information...
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up adt-satdep (0) ...
Unexpected error:
Traceback (most recent call last):
File "/usr/share/autopkgtest/python/VirtSubproc.py", line 617, in mainloop
command()
File "/usr/share/autopkgtest/python/VirtSubproc.py", line 552, in command
r = f(c, ce)
File "/usr/share/autopkgtest/python/VirtSubproc.py", line 494, in cmd_copydown
copyupdown(c, ce, False)
File "/usr/share/autopkgtest/python/VirtSubproc.py", line 417, in copyupdown
copydown_shareddir(sd[0], sd[1], dirsp, downtmp_host)
File "/usr/share/autopkgtest/python/VirtSubproc.py", line 374, in copydown_shareddir
shutil.copytree(host, host_tmp, symlinks=True)
File "/usr/lib/python3.4/shutil.py", line 302, in copytree
os.makedirs(dst)
File "/usr/lib/python3.4/os.py", line 237, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/var/lib/schroot/mount/debci-unstable-amd64-06662192-e8ac-4c1a-aaf7-e36c434659c6/tmp/adt-run.FL2v8q/tree'
adt-run [15:09:02]: ERROR: testbed failed: cannot send to testbed: ['BrokenPipeError: [Errno 32] Broken pipe\n']
----------------8<----------------8<----------------8<-----------------
Then, if I run adt-run with the same arguments, but passing the package name
instead (equivalent to passing --apt-source).
----------------8<----------------8<----------------8<-----------------
$ adt-run --user debci spamassassin --- schroot debci-unstable-amd64
adt-run [15:09:09]: version 3.3.2
adt-run [15:09:09]: testbed dpkg architecture: amd64
adt-run [15:09:09]: @@@@@@@@@@@@@@@@@@@@ apt-source spamassassin
... snip installation of dependencies ...
adt-run [15:09:31]: test spamassassin.nospam: [-----------------------
/tmp/adt-run.zjnpdq/build.9hA/spamassassin-3.4.0/debian/tests/spamassassin.nospam: line 7: python: command not found
ERROR: POINTS SHOULD BE ZERO
adt-run [15:09:31]: test spamassassin.nospam: -----------------------]
adt-run [15:09:31]: test spamassassin.nospam: - - - - - - - - - - results - - - - - - - - - -
spamassassin.nospam FAIL non-zero exit status 1
adt-run [15:09:31]: test spamassassin.spam: preparing
(Reading database ... 13020 files and directories currently installed.)
Preparing to unpack .../adt-run.zjnpdq/adt-satdep.deb ...
Unpacking adt-satdep (0) over (0) ...
Reading package lists...
Building dependency tree...
Reading state information...
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up adt-satdep (0) ...
adt-run [15:09:35]: test spamassassin.spam: [-----------------------
/tmp/adt-run.zjnpdq/build.9hA/spamassassin-3.4.0/debian/tests/spamassassin.spam: line 7: python: command not found
ERROR: POINTS SHOULD BE HIGHER THAN ZERO
adt-run [15:09:35]: test spamassassin.spam: -----------------------]
adt-run [15:09:35]: test spamassassin.spam: - - - - - - - - - - results - - - - - - - - - -
spamassassin.spam FAIL non-zero exit status 1
adt-run [15:09:35]: test daemon: preparing
(Reading database ... 13020 files and directories currently installed.)
Preparing to unpack .../adt-run.zjnpdq/adt-satdep.deb ...
Unpacking adt-satdep (0) over (0) ...
Reading package lists...
Building dependency tree...
Reading state information...
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up adt-satdep (0) ...
adt-run [15:09:38]: test daemon: [-----------------------
adt-run [15:11:32]: test daemon: -----------------------]
adt-run [15:11:32]: test daemon: - - - - - - - - - - results - - - - - - - - - -
daemon FAIL non-zero exit status 143
----------------8<----------------8<----------------8<-----------------
So, with --apt-source, the tests fail (which is a separate issue) but adt-run
finishes fine. But with --built-tree, there is a crash when trying to run the
second test. I tried editing debian/tests/control and removing all tests but
the first, and in that case adt-run completes.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages autopkgtest depends on:
ii apt-utils 1.0.6
ii libdpkg-perl 1.17.10
ii python3 3.4.1-1
ii python3-debian 0.1.22
autopkgtest recommends no packages.
Versions of packages autopkgtest suggests:
ii lxc 1.1.0~alpha1-5
pn qemu-system <none>
ii qemu-utils 2.1+dfsg-2
ii schroot 1.6.10-1+b1
-- no debconf information
--
Antonio Terceiro <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20140807/6a832226/attachment.sig>
More information about the autopkgtest-devel
mailing list