[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#871585: python-apt: FTBFS: Test failure



Control: severity -1 normal
Control: tags -1 - unreproducible
Control: tag -1 confirmed

On Wed, Aug 09, 2017 at 08:48:19AM -0700, Daniel Schepler wrote:
> Source: python-apt
> Version: 1.4.0~beta3
> Severity: serious
> 
> From my pbuilder build log:
> 
> ...
>    debian/rules override_dh_auto_test
> make[1]: Entering directory '/build/python-apt-1.4.0~beta3'
> set -e; for python in python2.7 python3.6 python3.5 ; do \
>        $python tests/test_all.py -q || [ "linux" = "hurd" ]; \
> done;
> [tests] Running on 2.7.13+ (default, Jul 19 2017, 18:15:03) [GCC 6.4.0 20170704]
> Using library_dir:
> '/build/python-apt-1.4.0~beta3/build/lib.linux-x86_64-2.7'WARNING:
> Failed to read mirror file
> WARNING: Failed to read mirror file
> WARNING: Failed to read mirror file
> WARNING: Failed to read mirror file
> WARNING: Failed to read mirror file
> WARNING: Failed to read mirror file
> WARNING: Failed to read mirror file
> WARNING: Failed to read mirror file
> ======================================================================
> ERROR: testAddKeyFromServer (test_auth.TestAuthKeys)
> Install a GnuPG key from a remote server.
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/build/python-apt-1.4.0~beta3/tests/test_auth.py", line 239, in
> testAddKeyFromServer
>    "hkp://localhost:%d" % self.keyserver_port)
>  File "/build/python-apt-1.4.0~beta3/build/lib.linux-x86_64-2.7/apt/auth.py",
> line 137, in add_key_from_keyserver
>    shutil.rmtree(tmp_keyring_dir)
>  File "/usr/lib/python2.7/shutil.py", line 266, in rmtree
>    onerror(os.remove, fullname, sys.exc_info())
>  File "/usr/lib/python2.7/shutil.py", line 264, in rmtree
>    os.remove(fullname)
> OSError: [Errno 2] No such file or directory: '/tmp/tmpVdpO4x/S.gpg-agent.extra'
> 
> ----------------------------------------------------------------------

There is a race condition when removing the temporary directory used for
running gpg. gpg has gpg-agent sockets and friends in there, and might
stop (and remove the sockets) while we are removing the tree. Python
unhelpfully throws an exception when deleting a dir and a file that was
in there no longer is.

This only happens sometimes, though.

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en


Reply to: