[Pkg-bazaar-maint] Bug#723894: FTBFS: test suite failures in TestNetrcCS
Adam Borowski
kilobyte at angband.pl
Sat Sep 21 01:21:31 UTC 2013
Package: bzr
Version: 2.6.0-2
Severity: serious
Justification: fails to build from source (but built successfully in the past)
I'm afraid that bzr fails a number of tests, all under
bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS
It was first seen on the x32 buildd:
http://buildd.debian-ports.org/status/fetch.php?pkg=bzr&arch=x32&ver=2.6.0-2&stamp=1379197991
but reproduces for me on amd64 as well, both on a real system and in
pbuilder.
That buildd runs with just one thread, so I'm attaching the output from my
system.
There is no ~/.netrc file on any account.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (150, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.11.1-x32 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
...ib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_default_passwordERROR 6ms
Empty attachments:
log
Traceback (most recent call last):
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 66, in test_default_password
cs = self._get_netrc_cs()
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 53, in _get_netrc_cs
return config.credential_store_registry.get_credential_store('netrc')
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 2037, in get_credential_store
cs = cs()
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/__init__.py", line 44, in __init__
self._netrc = netrc.netrc()
File "/usr/lib/python2.7/netrc.py", line 33, in __init__
self._parse(file, fp, default_netrc)
File "/usr/lib/python2.7/netrc.py", line 111, in _parse
" the owner", file, lexer.lineno)
NetrcParseError: ~/.netrc access too permissive: access permissions must restrict access to only the owner (/tmp/testbzr-a9S0aZ.tmp/bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_default_password/home/.netrc, line 2)
======================================================================
ERROR: bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_not_matching_user
----------------------------------------------------------------------
_StringException: Empty attachments:
log
Traceback (most recent call last):
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 56, in test_not_matching_user
cs = self._get_netrc_cs()
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 53, in _get_netrc_cs
return config.credential_store_registry.get_credential_store('netrc')
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 2037, in get_credential_store
cs = cs()
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/__init__.py", line 44, in __init__
self._netrc = netrc.netrc()
File "/usr/lib/python2.7/netrc.py", line 33, in __init__
self._parse(file, fp, default_netrc)
File "/usr/lib/python2.7/netrc.py", line 111, in _parse
" the owner", file, lexer.lineno)
NetrcParseError: ~/.netrc access too permissive: access permissions must restrict access to only the owner (/tmp/testbzr-aHPGTK.tmp/bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_not_matching_user/home/.netrc, line 2)
======================================================================
ERROR: bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_default_password_without_user
----------------------------------------------------------------------
_StringException: Empty attachments:
log
Traceback (most recent call last):
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 71, in test_default_password_without_user
cs = self._get_netrc_cs()
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 53, in _get_netrc_cs
return config.credential_store_registry.get_credential_store('netrc')
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 2037, in get_credential_store
cs = cs()
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/__init__.py", line 44, in __init__
self._netrc = netrc.netrc()
File "/usr/lib/python2.7/netrc.py", line 33, in __init__
self._parse(file, fp, default_netrc)
File "/usr/lib/python2.7/netrc.py", line 111, in _parse
" the owner", file, lexer.lineno)
NetrcParseError: ~/.netrc access too permissive: access permissions must restrict access to only the owner (/tmp/testbzr-ciOcOo.tmp/bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_default_password_without_user/home/.netrc, line 2)
======================================================================
ERROR: bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_matching_user
----------------------------------------------------------------------
_StringException: Empty attachments:
log
Traceback (most recent call last):
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 61, in test_matching_user
cs = self._get_netrc_cs()
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 53, in _get_netrc_cs
return config.credential_store_registry.get_credential_store('netrc')
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 2037, in get_credential_store
cs = cs()
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/__init__.py", line 44, in __init__
self._netrc = netrc.netrc()
File "/usr/lib/python2.7/netrc.py", line 33, in __init__
self._parse(file, fp, default_netrc)
File "/usr/lib/python2.7/netrc.py", line 111, in _parse
" the owner", file, lexer.lineno)
NetrcParseError: ~/.netrc access too permissive: access permissions must restrict access to only the owner (/tmp/testbzr-5gXUPU.tmp/bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_matching_user/home/.netrc, line 2)
======================================================================
ERROR: bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_get_netrc_credentials_via_auth_config
----------------------------------------------------------------------
_StringException: Empty attachments:
log
Traceback (most recent call last):
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 84, in test_get_netrc_credentials_via_auth_config
credentials = conf.get_credentials('scheme', 'host', user='joe')
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 1867, in get_credentials
auth_def.get('password_encoding', None))
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 2012, in decode_password
cs = credential_store_registry.get_credential_store(encoding)
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 2037, in get_credential_store
cs = cs()
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/__init__.py", line 44, in __init__
self._netrc = netrc.netrc()
File "/usr/lib/python2.7/netrc.py", line 33, in __init__
self._parse(file, fp, default_netrc)
File "/usr/lib/python2.7/netrc.py", line 111, in _parse
" the owner", file, lexer.lineno)
NetrcParseError: ~/.netrc access too permissive: access permissions must restrict access to only the owner (/tmp/testbzr-qzR7SL.tmp/bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_get_netrc_credentials_via_auth_config/home/.netrc, line 2)
======================================================================
ERROR: bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_default_password
----------------------------------------------------------------------
_StringException: Empty attachments:
log
Traceback (most recent call last):
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 66, in test_default_password
cs = self._get_netrc_cs()
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 53, in _get_netrc_cs
return config.credential_store_registry.get_credential_store('netrc')
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 2037, in get_credential_store
cs = cs()
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/__init__.py", line 44, in __init__
self._netrc = netrc.netrc()
File "/usr/lib/python2.7/netrc.py", line 33, in __init__
self._parse(file, fp, default_netrc)
File "/usr/lib/python2.7/netrc.py", line 111, in _parse
" the owner", file, lexer.lineno)
NetrcParseError: ~/.netrc access too permissive: access permissions must restrict access to only the owner (/tmp/testbzr-a9S0aZ.tmp/bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_default_password/home/.netrc, line 2)
======================================================================
FAIL: bzrlib.tests.blackbox.test_selftest.TestOptions.test_list_only
----------------------------------------------------------------------
_StringException: log: {{{
44.275 run bzr: ['selftest', '--list-only']
44.276 bazaar version: 2.6.0
44.276 bzr arguments: [u'selftest', u'--list-only']
WARNING Permission denied while trying to load configuration store file:///root/.bazaar/bazaar.conf.
WARNING Permission denied while trying to load configuration store file:///root/.bazaar/bazaar.conf.
44.279 encoding stdout as sys.stdout encoding 'utf-8'
44.279 errors:
'Permission denied while trying to load configuration store file:///root/.bazaar/bazaar.conf.\nPermission denied while trying to load configuration store file:///root/.bazaar/bazaar.conf.\n'
}}}
Traceback (most recent call last):
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/tests/blackbox/test_selftest.py", line 144, in test_list_only
outputs_nothing('selftest --list-only')
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/tests/blackbox/test_selftest.py", line 136, in outputs_nothing
self.assertEqual('', err)
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/tests/__init__.py", line 1360, in assertEqual
pprint.pformat(a), pprint.pformat(b)))
AssertionError: not equal:
a = ''
b = 'Permission denied while trying to load configuration store file:///root/.bazaar/bazaar.conf.\nPermission denied while trying to load configuration store file:///root/.bazaar/bazaar.conf.\n'
======================================================================
FAIL: bzrlib.tests.test_options.OptionTests.test_option_arg_help
----------------------------------------------------------------------
_StringException: log: {{{
369.597 run bzr: ['help', 'commit']
369.597 bazaar version: 2.6.0
369.597 bzr arguments: [u'help', u'commit']
WARNING Permission denied while trying to load configuration store file:///root/.bazaar/bazaar.conf.
WARNING Permission denied while trying to load configuration store file:///root/.bazaar/bazaar.conf.
369.601 encoding stdout as sys.stdout encoding 'utf-8'
WARNING Permission denied while trying to load configuration store file:///root/.bazaar/bazaar.conf.
369.602 encoding stdout as sys.stdout encoding 'utf-8'
369.610 output:
'Purpose: Commit changes into a new revision.\nUsage: bzr commit [SELECTED...]\n\nOptions:\n -v, --verbose Display more information.\n --author=ARG Set the author\'s name, if it\'s different from the\n committer.\n --commit-time=ARG Manually set a commit time using commit date format,\n e.g. \'2009-10-10 08:00:00 +0100\'.\n --unchanged Commit even if nothing has changed.\n --fixes=ARG Mark a bug as being fixed by this revision (see "bzr\n help bugs").\n -q, --quiet Only display errors and warnings.\n -p, --show-diff When no message is supplied, show the diff along with\n the status summary in the message editor.\n --strict Refuse to commit if there are unknown files in the\n working tree.\n --lossy When committing to a foreign version control system do\n not push data that can not be natively represented.\n -F MSGFILE, --file=MSGFILE\n Take commit message from this file.\n --usage Show usage message and options.\n -x ARG, --exclude=ARG\n Do not consider changes made to a given path.\n -m ARG, --message=ARG\n Description of the new revision.\n --local Perform a local commit in a bound branch. Local\n commits are not pushed to the master branch until a\n normal commit is performed.\n -h, --help Show help message.\n\nDescription:\n An explanatory message needs to be given for each commit. This is\n often done by using the --message option (getting the message from the\n command line) or by using the --file option (getting the message from\n a file). If neither of these options is given, an editor is opened for\n the user to enter the message. To see the changed files in the\n boilerplate text loaded into the editor, use the --show-diff option.\n \n By default, the entire tree is committed and the person doing the\n commit is assumed to be the author. These defaults can be overridden\n as explained below.\n\nSelective commits:\n If selected files are specified, only changes to those files are\n committed. If a directory is specified then the directory and\n everything within it is committed.\n\n When excludes are given, they take precedence over selected files.\n For example, to commit only changes within foo, but not changes\n within foo/bar:\n\n bzr commit foo -x foo/bar\n\n A selective commit after a merge is not yet supported.\n\nCustom authors:\n If the author of the change is not the same person as the committer,\n you can specify the author\'s name using the --author option. The\n name should be in the same format as a committer-id, e.g.\n "John Doe <jdoe at example.com>". If there is more than one author of\n the change you can specify the option multiple times, once for each\n author.\n\nChecks:\n A common mistake is to forget to add a new file or directory before\n running the commit command. The --strict option checks for unknown\n files and aborts the commit if any are found. More advanced pre-commit\n checks can be implemented by defining hooks. See ``bzr help hooks``\n for details.\n\nThings to note:\n If you accidentially commit the wrong changes or make a spelling\n mistake in the commit message say, you can use the uncommit command\n to undo it. See ``bzr help uncommit`` for details.\n\n Hooks can also be configured to run after a commit. This allows you\n to trigger updates to external systems like bug trackers. The --fixes\n option can be used to record the association between a revision and\n one or more bugs. See ``bzr help bugs`` for details.\n\nAliases: ci, checkin\nSee also: add, bugs, hooks, uncommit\n'
369.610 errors:
'Permission denied while trying to load configuration store file:///root/.bazaar/bazaar.conf.\nPermission denied while trying to load configuration store file:///root/.bazaar/bazaar.conf.\nPermission denied while trying to load configuration store file:///root/.bazaar/bazaar.conf.\n'
}}}
Traceback (most recent call last):
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/tests/test_options.py", line 79, in test_option_arg_help
self.assertEqual(err, '')
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/tests/__init__.py", line 1360, in assertEqual
pprint.pformat(a), pprint.pformat(b)))
AssertionError: not equal:
a = 'Permission denied while trying to load configuration store file:///root/.bazaar/bazaar.conf.\nPermission denied while trying to load configuration store file:///root/.bazaar/bazaar.conf.\nPermission denied while trying to load configuration store file:///root/.bazaar/bazaar.conf.\n'
b = ''
======================================================================
FAIL: bzrlib.tests.test_smart_transport.TestSmartTCPServer.test_graceful_shutdown_waits_for_clients_to_stop
----------------------------------------------------------------------
_StringException: log: {{{
INFO Requested to stop gracefully
377.385 Stopping SmartServerSocketStreamMedium(client=('127.0.0.1', 41428))
INFO Requested to stop gracefully
}}}
Traceback (most recent call last):
File "?BUILD?/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/tests/test_smart_transport.py", line 1458, in test_graceful_shutdown_waits_for_clients_to_stop
self.assertFalse(server._fully_stopped.isSet())
File "/usr/lib/python2.7/unittest/case.py", line 418, in assertFalse
raise self.failureException(msg)
AssertionError: True is not false
----------------------------------------------------------------------
Ran 28613 tests in 533.332s
FAILED (failures=3, errors=5, known_failure_count=59)
2649 tests skipped
make[1]: *** [override_dh_auto_test] Error 1
make[1]: Leaving directory `?BUILD?/bzr-2.6.0'
make: *** [binary] Error 2
debuild: fatal error at line 1343:
couldn't exec fakeroot debian/rules:
More information about the Pkg-bazaar-maint
mailing list