Debian Bug report logs - #814115
autopkgtest: $ADTTMP does not survive until --shell-fail/-s

version graph

Package: autopkgtest; Maintainer for autopkgtest is Autopkgtest team <autopkgtest-devel@lists.alioth.debian.org>; Source for autopkgtest is src:autopkgtest (PTS, buildd, popcon).

Reported by: Barry Warsaw <barry@debian.org>

Date: Mon, 8 Feb 2016 15:54:30 UTC

Severity: normal

Found in version autopkgtest/3.19.2

Fixed in version autopkgtest/3.20

Done: Martin Pitt <mpitt@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, barry@ubuntu.com, Autopkgtest team <autopkgtest-devel@lists.alioth.debian.org>:
Bug#814115; Package autopkgtest. (Mon, 08 Feb 2016 15:54:34 GMT) (full text, mbox, link).


Acknowledgement sent to Barry Warsaw <barry@debian.org>:
New Bug report received and forwarded. Copy sent to barry@ubuntu.com, Autopkgtest team <autopkgtest-devel@lists.alioth.debian.org>. (Mon, 08 Feb 2016 15:54:34 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Barry Warsaw <barry@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: autopkgtest: $ADTTMP does not survive until --shell-fail/-s
Date: Mon, 08 Feb 2016 10:52:05 -0500
Package: autopkgtest
Version: 3.19.2
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Dear Maintainer,

My DEP-8 tests create some temporary directories, and they use $ADTTMP
to calculate the paths to create.  However, if the tests fail and
you're using --shell-fail/-s, you get dropped into the chroot but
neither the $ADTTMP environment variable, nor the directory (as seen
from the output log) survives in this shell, which makes debugging
test failures quite difficult.

I'm guessing there's a good technical reason why $ADTTMP isn't
available in the fail shell, but here's a formal request to keep it if
possible.


- -- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.3.0-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages autopkgtest depends on:
ii  apt-utils       1.2.2
ii  libdpkg-perl    1.18.4
ii  procps          2:3.3.11-3
ii  python3         3.5.1-1
ii  python3-debian  0.1.27

Versions of packages autopkgtest recommends:
ii  autodep8  0.3

Versions of packages autopkgtest suggests:
pn  lxc          <none>
pn  lxd-client   <none>
pn  qemu-system  <none>
pn  qemu-utils   <none>
ii  schroot      1.6.10-2

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJWuLmjAAoJEBJutWOnSwa/0t4QALJZv5eWtIZUvkmDDc3k5zXg
IyskJtve7R59ZaGh2pd2UXrVizGFyeZJO3rfvbHu2UlaBASaK+jOMLUlFg7CG1pb
Vn3H8eZd12jsoTXDZccz8JpzNFPGnTqDL6gLlw19Bfusjj6fGo0FSz0548l4Bbd1
AhJN59PS58k/fFAb0g08YDtkGHaF7rPficf8BYN7QwWvD4PM6hF9iRq5m41qH2nK
8VmEZsD82bBm5yWWx95gQR/X2Ks+awiC1uWmBvjzSbvBnnM7GO4oBmuMUOAX4M3j
stT4OhOpJS5MkFnMfD9c94VjFNvJDgmbWr7uU3QzDkLev/DSLmXY7H7uxtdDcmn4
+pyArJlKNHDN67Nm5GGqQmAtHLRQlCkwjZP6+ermx/rOfgvTKrhPL+KA3vTPklJ6
mlzQBkFKRR2SPPSnfz/3sU28WbhsTltuja3yHcR8Ofx2hrVJlZNyVZMSsregnh8P
Y1w6Dk7y1MM3H367ubBFckDgLYMbKyk91Rezn5jOeSpzCFcBsSQp2hJe2ifUyCWU
tUGVoXkkiybPKCOVCrsrcZ9nIpmg19HRj6tvD3XTG6VPY1dzyoGZjPzHFnHCwtdU
z+rvh6OO5x9dfU6aeJmuPA72nFLtgqzTTCzT4Guv9KvTBcc61TpXbftSjP5aF7bj
L89b5t4kqWhG+29HaX82
=f5iV
-----END PGP SIGNATURE-----



Information forwarded to debian-bugs-dist@lists.debian.org, Autopkgtest team <autopkgtest-devel@lists.alioth.debian.org>:
Bug#814115; Package autopkgtest. (Fri, 04 Mar 2016 18:54:12 GMT) (full text, mbox, link).


Acknowledgement sent to Martin Pitt <mpitt@debian.org>:
Extra info received and forwarded to list. Copy sent to Autopkgtest team <autopkgtest-devel@lists.alioth.debian.org>. (Fri, 04 Mar 2016 18:54:13 GMT) (full text, mbox, link).


Message #10 received at 814115@bugs.debian.org (full text, mbox, reply):

From: Martin Pitt <mpitt@debian.org>
To: Barry Warsaw <barry@debian.org>, 814115@bugs.debian.org
Subject: Re: Bug#814115: autopkgtest: $ADTTMP does not survive until --shell-fail/-s
Date: Fri, 4 Mar 2016 16:14:55 +0100
Hey Barry,

Barry Warsaw [2016-02-08 10:52 -0500]:
> I'm guessing there's a good technical reason why $ADTTMP isn't
> available in the fail shell, but here's a formal request to keep it if
> possible.

Not a principal design reason indeed, it's just the way how it's
currently implemented. But I'll see to shuffling this around a bit.

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)



Added tag(s) pending. Request was from Martin Pitt <martin.pitt@ubuntu.com> to control@bugs.debian.org. (Fri, 04 Mar 2016 19:12:39 GMT) (full text, mbox, link).


Reply sent to Martin Pitt <mpitt@debian.org>:
You have taken responsibility. (Fri, 11 Mar 2016 09:54:26 GMT) (full text, mbox, link).


Notification sent to Barry Warsaw <barry@debian.org>:
Bug acknowledged by developer. (Fri, 11 Mar 2016 09:54:27 GMT) (full text, mbox, link).


Message #17 received at 814115-close@bugs.debian.org (full text, mbox, reply):

From: Martin Pitt <mpitt@debian.org>
To: 814115-close@bugs.debian.org
Subject: Bug#814115: fixed in autopkgtest 3.20
Date: Fri, 11 Mar 2016 09:50:00 +0000
Source: autopkgtest
Source-Version: 3.20

We believe that the bug you reported is fixed in the latest version of
autopkgtest, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 814115@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Martin Pitt <mpitt@debian.org> (supplier of updated autopkgtest package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 11 Mar 2016 10:05:08 +0100
Source: autopkgtest
Binary: autopkgtest
Architecture: source all
Version: 3.20
Distribution: unstable
Urgency: medium
Maintainer: Autopkgtest team <autopkgtest-devel@lists.alioth.debian.org>
Changed-By: Martin Pitt <mpitt@debian.org>
Description:
 autopkgtest - automatic as-installed testing for Debian packages
Closes: 800845 814115 817190
Changes:
 autopkgtest (3.20) unstable; urgency=medium
 .
   New features/behaviour changes:
 .
   [Martin Pitt]
   * adt-virt-lxd: Launch containers in ephemeral mode.
   * adt-virt-lxc: Use the new lxc-copy if available, as lxc-clone and
     lxc-start-ephemeral got deprecated by that. This now supports reboots in
     ephemeral mode.
   * adt-virt-lxc: Add --name option. This allows CI systems to use a more
     expressive name than the autogenerated adt-virt-lxc-XXXXXX, to make it
     easier to map a container to a running test.
   * Add CPU information to testinfo.json: "nproc" (#cpus), "cpu_model", and
     "cpu_flags". (LP: #1552129)
   * Add autopkgtest for adt-build-lxd and the lxd runner.
 .
   [ Christian Seiler ]
   * Support nested KVM by default by emulating a CPU with VMX/SVM support on
     x86_64. (Closes: #800845, part 1)
   * adt-virt-qemu: Provide read-only version of the VM image to the test as
     /dev/baseimage, for tests that want to run nested QEMU. (Closes: #800845)
 .
   Bug fixes:
 .
   [ Martin Pitt ]
   * setup-commands/setup-testbed: Ensure that removing cruft does not remove
     cloud-init. (LP: #1539126)
   * setup-commands/setup-testbed: Purge lxd and lxc.
   * adt-virt-lxc: Don't fail on deprecation warnings of lxc-clone and
     lxc-start-ephemeral. (LP: #1549995)
   * Run external commands with /dev/null as stdin. This has always been
     intended, but has not actually been done for a while.
   * Drop support for hook_forked_inchild() in virt-runners. This has never
     been used.
   * ssh-setup/nova: Try and prefer novaclient.v2 API first, and fall back to
     v1_1. (LP: #1552730)
   * Correctly ignore positive and negative build profiles with too old
     libdpkg-perl that does not support them yet.
   * tests/run-parallel: Don't run NullRunner and SchrootRunner tests in
     parallel, as they collide with a bind-mounted /tmp.
   * test_reboot_prepare testcase: Don't compare the host and guest kernel
     versions in the QemuRunner.
   * Keep and export $ADTTMP and $ADT_ARTIFACTS in debug shells.
     (Closes: #814115)
   * setup-commands/*: Add shebang headers to quiesce lintian.
   * Bump Standards-Version to 3.9.7 (no changes necessary).
   * Add debian/source/format (3.0 native).
   * debian/control: Use https Vcs-* links.
   * Bump debhelper compat level to 9.
   * adt-virt-qemu: Don't assert result of "runlevel" for connection test. This
     is a race condition under systemd as getty starts before default.target
     is fully finished.
   * tests/adt-run SchrootClickRunner: Ensure that the "click" system user
     exists in the schroot, so that it doesn't need to exist on the host.
   * Adjust SchrootRunner.test_apt_pocket_pkg_with_proposed_dep test case for
     apt 1.1.
   * Latest LXD now adds an "images" remote for images.linuxcontainers.org by
     default. Adjust adt-build-lxd.1 and adt-virt-lxd.1 accordingly.
   * Respect $TMPDIR when creating the downtmp and some other directory/files.
     (Closes: #817190)
   * tests/adt-run: Symlink real ~/.config/lxc into the temporary $HOME, to
     avoid regenerating the LXD client certificate for each test.
 .
   [ Christian Seiler ]
   * setup-testbed: reduce grub timeout on images that don't already configure
     this in /etc/default/grub.d (like vmdeboostrap).
   * adt-virt-qemu: Use correct qemu-system-i386 command on i[3456]86 systems.
   * Fix spelling errors in manpages.
Checksums-Sha1:
 fa6d1dcdc784fbc0a66564089380bcb7b8c761b7 1777 autopkgtest_3.20.dsc
 8dbf967a8ba76b3e686e441d961e10d73b46fc49 157504 autopkgtest_3.20.tar.xz
 d9613e2d68663c7a59304636eef9c49ff42d3408 167712 autopkgtest_3.20_all.deb
Checksums-Sha256:
 37cd91c1ce9a75b5b7faab4dfc034bd8e9a6cf6105c520b39c86d213b7badc1b 1777 autopkgtest_3.20.dsc
 42103b3e135e9b7aae1951b2d6c9fe70e4aaae97ca1fde07d590d03797c6209d 157504 autopkgtest_3.20.tar.xz
 67eebd80466f1051b5cc219231ed2fa696e3b797458e23da142269963d369a8b 167712 autopkgtest_3.20_all.deb
Files:
 86974c2283a909da2bedf6340b76dd0a 1777 devel optional autopkgtest_3.20.dsc
 85a7a80ef6ab8e83cf2acffd57250800 157504 devel optional autopkgtest_3.20.tar.xz
 1fdfc6f83281f825e9552b3f77c69a36 167712 devel optional autopkgtest_3.20_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJW4ouWAAoJENFO8V2v4RNHKwEQAKpNKdm8pRGnuzsE/S9QTkWJ
4alA5n7e1Kt/8bufCpjQ0X/6GgHCq3AkBu7vtBwgL9QBAbV/EAYGRCPNTAzYva7D
M4diZtMOdUWXi9+tBCF9MCE1JrL3mI7u794wroqW1u1jlQJNFc0G+2l0FuSk+hZK
xGT6Zf6QbiQmfi0dq6kVx7cwUCKLXy5JVjbOYxdP+m2RAMHTZ6SFgZePFB/YW0Q0
nBWeoI4sOa668oS74LDOQdp2fGOn1ABvQWtiJjPk/yExfDuAWMJAoKQoYnG6CuDh
BFqznveE5ksd+MHqBRxtrQwNLm5gOgW5papSstSJOQ2V7EZOkQj9Il8de2jkvyVP
UGh+Xv6ZWsw4rDJURIo2FrlAQlKP8KdFVFtzPrEqOL4xqd7Duwl4FbTz2jM/sGQl
Kh0bLDJDOCvViIzHPsXsJ/28/37jyX24OoWIVW0CpPTjbA2v45kLmGNRHN4g+5rd
tYD7gy9Ju1cf1ZKbr8jLDMWsluLMSudYQa5RS/n3DK9zrGu+wwbb9KvK0dVo59EY
akIFbkKWi8qOWP8Pq44K8TzjlLWOuFKjJ/HTGUdDVeHT+5cTJhSE0NEfX+hWDFNU
xCl3LMq0UEg+Cc7wdgK3l8hSp+RILIDjxboprQBpVqxLcEV1z1Lq4mWAdUABIDpF
PX2Id2wAx5spcb7gpWnp
=kdAB
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 09 Apr 2016 07:26:26 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jan 7 00:41:16 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.