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
Processed: Re: Bug#871585: python-apt: FTBFS: Test failure
Processing control commands: > severity -1 normal Bug #871585 [src:python-apt] python-apt: FTBFS: Test failure Severity set to 'normal' from 'serious' > tags -1 - unreproducible Bug #871585 [src:python-apt] python-apt: FTBFS: Test failure Removed tag(s) unreproducible. > tag -1 confirmed Bug #871585 [src:python-apt] python-apt: FTBFS: Test failure Added tag(s) confirmed. -- 871585: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871585 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
Bug#871585: python-apt: FTBFS: Test failure
Control: tag -1 unreproducible moreinfo On Wed, 9 Aug 2017 08:48:19 -0700 Daniel Schepler wrote: >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 Was this a one-time failure or is it reproducible? I cannot reproduce it because the tests are skipped in my setup as well as they are skipped on the buildds: because there is no /etc/apt/sources.list in my pbuilders - only /etc/apt/sources.list.d/*.list. The buildds seem to use a similar chroot setup without /etc/apt/sources.list So the bigger underlying problem is "tests require /etc/apt/sources.list to be run". And thereafter perhaps "tests require network access". Andreas
Bug#871585: python-apt: FTBFS: Test failure
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' -- Ran 97 tests in 21.771s FAILED (errors=1, skipped=2) debian/rules:50: recipe for target 'override_dh_auto_test' failed make[1]: *** [override_dh_auto_test] Error 1 make[1]: Leaving directory '/build/python-apt-1.4.0~beta3' debian/rules:16: recipe for target 'build' failed make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 -- Daniel Schepler