Event Timeline
Comment Actions
with a5ab9358de023c4bd0ecab62d0c8ce3b1d1f15fc applied, less errors:
python3 -m nose -sv --with-doctest ./swh/vault/tests
createdb: database creation failed: ERROR: database "softwareheritage-test-vault" already exists
Time: 2.905 ms
Time: 0.314 ms
Time: 0.356 ms
Time: 0.261 ms
Time: 0.512 ms
Time: 0.086 ms
Time: 0.220 ms
Time: 0.149 ms
Time: 2.253 ms
Time: 0.737 ms
Time: 0.406 ms
Time: 1.807 ms
Time: 0.393 ms
Time: 0.418 ms
Time: 0.855 ms
Time: 0.841 ms
Time: 0.417 ms
createdb: database creation failed: ERROR: database "softwareheritage-test-storage" already exists
test_available (test_backend.TestBackend) ... ok
test_cache_expire_oldest (test_backend.TestBackend) ... ok
test_cache_expire_until (test_backend.TestBackend) ... ok
test_cook_email_pending_done (test_backend.TestBackend) ... ok
test_cook_request_idempotent (test_backend.TestBackend) ... ok
test_create_fail_duplicate_task (test_backend.TestBackend) ... ok
test_create_fail_nonexisting_object (test_backend.TestBackend) ... ok
test_create_set_progress (test_backend.TestBackend) ... ok
test_create_set_status (test_backend.TestBackend) ... ok
test_create_task_simple (test_backend.TestBackend) ... ok
test_create_update_access_ts (test_backend.TestBackend) ... ok
test_fail_cook_simple (test_backend.TestBackend) ... ok
test_fetch (test_backend.TestBackend) ... ok
test_retry_failed_bundle (test_backend.TestBackend) ... ok
test_send_all_emails (test_backend.TestBackend) ... ok
test_send_failure_email (test_backend.TestBackend) ... Time: 3.880 ms
Time: 0.321 ms
Time: 0.411 ms
Time: 0.196 ms
Time: 0.502 ms
Time: 0.085 ms
Time: 0.265 ms
Time: 0.079 ms
Time: 2.284 ms
Time: 0.664 ms
Time: 0.420 ms
Time: 2.043 ms
Time: 0.381 ms
Time: 0.395 ms
Time: 0.878 ms
Time: 0.923 ms
Time: 0.528 ms
ok
test_different_id_same_type (test_cache.TestVaultCache) ... ok
test_different_type_same_content (test_cache.TestVaultCache) ... ok
test_different_type_same_id (test_cache.TestVaultCache) ... ok
test_internal_id (test_cache.TestVaultCache) ... ok
test_simple_add_get (test_cache.TestVaultCache) ... dropdb: database removal failed: ERROR: database "softwareheritage-test-vault" is being accessed by other users
DETAIL: There is 1 other session using the database.
createdb: database creation failed: ERROR: database "softwareheritage-test-vault" already exists
dropdb: database removal failed: ERROR: database "softwareheritage-test-vault" is being accessed by other users
DETAIL: There is 1 other session using the database.
createdb: database creation failed: ERROR: database "softwareheritage-test-vault" already exists
dropdb: database removal failed: ERROR: database "softwareheritage-test-vault" is being accessed by other users
DETAIL: There is 1 other session using the database.
ERROR
ERROR
ERROR
ERROR
test_code_exception_cook (test_cookers_base.TestBaseVaultCooker) ... ok
test_policy_exception_cook (test_cookers_base.TestBaseVaultCooker) ... ok
test_simple_cook (test_cookers_base.TestBaseVaultCooker) ... ok
======================================================================
ERROR: test_simple_add_get (test_cache.TestVaultCache)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_cache.py", line 28, in setUp
super().setUp()
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/vault_testing.py", line 55, in setUp
self.vault_backend = VaultBackend(self.vault_config)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 111, in __init__
self.smtp_server = smtplib.SMTP('localhost', 25)
File "/usr/lib/python3.6/smtplib.py", line 254, in __init__
raise SMTPConnectError(code, msg)
smtplib.SMTPConnectError: (421, b'Too many concurrent SMTP connections; please try again later.')
======================================================================
ERROR: test suite for <class 'test_cache.TestVaultCache'>
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/suite.py", line 228, in run
self.tearDown()
File "/usr/lib/python3/dist-packages/nose/suite.py", line 351, in tearDown
self.teardownContext(ancestor)
File "/usr/lib/python3/dist-packages/nose/suite.py", line 367, in teardownContext
try_run(context, names)
File "/usr/lib/python3/dist-packages/nose/util.py", line 471, in try_run
return func()
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/tests/db_testing.py", line 187, in tearDownClass
context.__exit__()
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/tests/db_testing.py", line 115, in __exit__
db_destroy(self.dbname)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/tests/db_testing.py", line 60, in db_destroy
pg_dropdb(dbname)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/tests/db_testing.py", line 31, in pg_dropdb
subprocess.check_call(['dropdb', dbname])
File "/usr/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['dropdb', 'softwareheritage-test-vault']' returned non-zero exit status 1.
======================================================================
ERROR: test suite for <class 'test_cookers.TestDirectoryCooker'>
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/tests/db_testing.py", line 45, in db_create
pg_createdb(dbname)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/tests/db_testing.py", line 35, in pg_createdb
subprocess.check_call(['createdb', dbname])
File "/usr/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['createdb', 'softwareheritage-test-vault']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/suite.py", line 209, in run
self.setUp()
File "/usr/lib/python3/dist-packages/nose/suite.py", line 292, in setUp
self.setupContext(ancestor)
File "/usr/lib/python3/dist-packages/nose/suite.py", line 315, in setupContext
try_run(context, names)
File "/usr/lib/python3/dist-packages/nose/util.py", line 471, in try_run
return func()
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/vault_testing.py", line 37, in setUpClass
super().setUpClass()
File "/home/tony/work/inria/repo/swh/swh-environment/swh-storage/swh/storage/tests/storage_testing.py", line 35, in setUpClass
super().setUpClass()
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/tests/db_testing.py", line 180, in setUpClass
cls._DB_LIST[name].__enter__()
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/tests/db_testing.py", line 111, in __enter__
dumptype=self.dump_type)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/tests/db_testing.py", line 47, in db_create
pg_dropdb(dbname) # the db already existed
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/tests/db_testing.py", line 31, in pg_dropdb
subprocess.check_call(['dropdb', dbname])
File "/usr/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['dropdb', 'softwareheritage-test-vault']' returned non-zero exit status 1.
======================================================================
ERROR: test suite for <class 'test_cookers.TestRevisionGitfastCooker'>
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/tests/db_testing.py", line 45, in db_create
pg_createdb(dbname)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/tests/db_testing.py", line 35, in pg_createdb
subprocess.check_call(['createdb', dbname])
File "/usr/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['createdb', 'softwareheritage-test-vault']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/suite.py", line 209, in run
self.setUp()
File "/usr/lib/python3/dist-packages/nose/suite.py", line 292, in setUp
self.setupContext(ancestor)
File "/usr/lib/python3/dist-packages/nose/suite.py", line 315, in setupContext
try_run(context, names)
File "/usr/lib/python3/dist-packages/nose/util.py", line 471, in try_run
return func()
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/vault_testing.py", line 37, in setUpClass
super().setUpClass()
File "/home/tony/work/inria/repo/swh/swh-environment/swh-storage/swh/storage/tests/storage_testing.py", line 35, in setUpClass
super().setUpClass()
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/tests/db_testing.py", line 180, in setUpClass
cls._DB_LIST[name].__enter__()
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/tests/db_testing.py", line 111, in __enter__
dumptype=self.dump_type)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/tests/db_testing.py", line 47, in db_create
pg_dropdb(dbname) # the db already existed
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/tests/db_testing.py", line 31, in pg_dropdb
subprocess.check_call(['dropdb', dbname])
File "/usr/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['dropdb', 'softwareheritage-test-vault']' returned non-zero exit status 1.
----------------------------------------------------------------------
Ran 24 tests in 20.535s
FAILED (errors=4)
../Makefile.python:22: recipe for target 'test' failed
make: *** [test] Error 1Comment Actions
with D308 applied:
Both case MTA on/off, output is as follows:
python3 -m nose -sv --with-doctest ./swh/vault/tests
test_available (test_backend.TestBackend) ... ok
test_cache_expire_oldest (test_backend.TestBackend) ... ok
test_cache_expire_until (test_backend.TestBackend) ... ok
test_cook_email_pending_done (test_backend.TestBackend) ... ok
test_cook_request_idempotent (test_backend.TestBackend) ... ok
test_create_fail_duplicate_task (test_backend.TestBackend) ... ok
test_create_fail_nonexisting_object (test_backend.TestBackend) ... ok
test_create_set_progress (test_backend.TestBackend) ... ok
test_create_set_status (test_backend.TestBackend) ... ok
test_create_task_simple (test_backend.TestBackend) ... ok
test_create_update_access_ts (test_backend.TestBackend) ... ok
test_fail_cook_simple (test_backend.TestBackend) ... ok
test_fetch (test_backend.TestBackend) ... ok
test_retry_failed_bundle (test_backend.TestBackend) ... ok
test_send_all_emails (test_backend.TestBackend) ... ok
test_send_failure_email (test_backend.TestBackend) ... ok
test_different_id_same_type (test_cache.TestVaultCache) ... ok
test_different_type_same_content (test_cache.TestVaultCache) ... ok
test_different_type_same_id (test_cache.TestVaultCache) ... ok
test_internal_id (test_cache.TestVaultCache) ... ok
test_simple_add_get (test_cache.TestVaultCache) ... ok
test_directory_bogus_perms (test_cookers.TestDirectoryCooker) ... ok
test_directory_filtered_objects (test_cookers.TestDirectoryCooker) ... ok
test_directory_revision_data (test_cookers.TestDirectoryCooker) ... ok
test_directory_simple (test_cookers.TestDirectoryCooker) ... ok
test_revision_bogus_perms (test_cookers.TestRevisionGitfastCooker) ... ok
test_revision_filtered_objects (test_cookers.TestRevisionGitfastCooker) ... ok
test_revision_null_fields (test_cookers.TestRevisionGitfastCooker) ... ok
test_revision_revision_data (test_cookers.TestRevisionGitfastCooker) ... ok
test_revision_simple (test_cookers.TestRevisionGitfastCooker) ... ok
test_revision_triple_merge (test_cookers.TestRevisionGitfastCooker) ... FAIL
test_revision_two_double_fork_merge (test_cookers.TestRevisionGitfastCooker) ... FAIL
test_revision_two_roots (test_cookers.TestRevisionGitfastCooker) ... FAIL
test_code_exception_cook (test_cookers_base.TestBaseVaultCooker) ... ok
test_policy_exception_cook (test_cookers_base.TestBaseVaultCooker) ... ok
test_simple_cook (test_cookers_base.TestBaseVaultCooker) ... ok
======================================================================
FAIL: test_revision_triple_merge (test_cookers.TestRevisionGitfastCooker)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_cookers.py", line 360, in test_revision_triple_merge
self.assertEqual(ert.repo.refs[b'HEAD'].decode(), obj_id_hex)
AssertionError: 'bb1495ded240a5dd2b5491550f41c36755d916a6' != 'b9292c2fd16c72ac24e1f192015ca93a4cef2a94'
- bb1495ded240a5dd2b5491550f41c36755d916a6
+ b9292c2fd16c72ac24e1f192015ca93a4cef2a94
-------------------- >> begin captured logging << --------------------
swh.loader.git.Loader: DEBUG: Creating git origin for fake_origin
swh.loader.git.Loader: DEBUG: Done creating git origin for fake_origin
swh.loader.git.Loader: DEBUG: Creating origin_visit for origin 5 at time 2018-04-26 11:40:33.992633
swh.loader.git.Loader: DEBUG: Done Creating origin_visit for origin 5 at time 2018-04-26 11:40:33.992633
swh.loader.git.Loader: DEBUG: Sending 1 contents
swh.loader.git.Loader: DEBUG: Done sending 1 contents
swh.loader.git.Loader: DEBUG: Sending 1 directories
swh.loader.git.Loader: DEBUG: Done sending 1 directories
swh.loader.git.Loader: DEBUG: Sending 5 revisions
swh.loader.git.Loader: DEBUG: Done sending 5 revisions
swh.loader.git.Loader: DEBUG: Updating origin_visit for origin 5 with status full
swh.loader.git.Loader: DEBUG: Done updating origin_visit for origin 5 with status full
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_revision_two_double_fork_merge (test_cookers.TestRevisionGitfastCooker)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_cookers.py", line 333, in test_revision_two_double_fork_merge
self.assertEqual(ert.repo.refs[b'HEAD'].decode(), obj_id_hex)
AssertionError: '7d2744524fbe15a0a209824cf568c3e737f0ee7b' != 'de794f08be9e71e33aedd9a4e27ea66b93295f5a'
- 7d2744524fbe15a0a209824cf568c3e737f0ee7b
+ de794f08be9e71e33aedd9a4e27ea66b93295f5a
-------------------- >> begin captured logging << --------------------
swh.loader.git.Loader: DEBUG: Creating git origin for fake_origin
swh.loader.git.Loader: DEBUG: Done creating git origin for fake_origin
swh.loader.git.Loader: DEBUG: Creating origin_visit for origin 6 at time 2018-04-26 11:40:34.761696
swh.loader.git.Loader: DEBUG: Done Creating origin_visit for origin 6 at time 2018-04-26 11:40:34.761696
swh.loader.git.Loader: DEBUG: Sending 1 contents
swh.loader.git.Loader: DEBUG: Done sending 1 contents
swh.loader.git.Loader: DEBUG: Sending 4 directories
swh.loader.git.Loader: DEBUG: Done sending 4 directories
swh.loader.git.Loader: DEBUG: Sending 6 revisions
swh.loader.git.Loader: DEBUG: Done sending 6 revisions
swh.loader.git.Loader: DEBUG: Updating origin_visit for origin 6 with status full
swh.loader.git.Loader: DEBUG: Done updating origin_visit for origin 6 with status full
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_revision_two_roots (test_cookers.TestRevisionGitfastCooker)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_cookers.py", line 300, in test_revision_two_roots
self.assertEqual(ert.repo.refs[b'HEAD'].decode(), obj_id_hex)
AssertionError: 'ecb6e01a5840752ba035aa6e3449f301d77333e5' != '060ab0fd1a9063fc6f78481be0391e1c7e7e92ef'
- ecb6e01a5840752ba035aa6e3449f301d77333e5
+ 060ab0fd1a9063fc6f78481be0391e1c7e7e92ef
-------------------- >> begin captured logging << --------------------
swh.loader.git.Loader: DEBUG: Creating git origin for fake_origin
swh.loader.git.Loader: DEBUG: Done creating git origin for fake_origin
swh.loader.git.Loader: DEBUG: Creating origin_visit for origin 7 at time 2018-04-26 11:40:35.309635
swh.loader.git.Loader: DEBUG: Done Creating origin_visit for origin 7 at time 2018-04-26 11:40:35.309635
swh.loader.git.Loader: DEBUG: Sending 1 contents
swh.loader.git.Loader: DEBUG: Done sending 1 contents
swh.loader.git.Loader: DEBUG: Sending 3 directories
swh.loader.git.Loader: DEBUG: Done sending 3 directories
swh.loader.git.Loader: DEBUG: Sending 4 revisions
swh.loader.git.Loader: DEBUG: Done sending 4 revisions
swh.loader.git.Loader: DEBUG: Updating origin_visit for origin 7 with status full
swh.loader.git.Loader: DEBUG: Done updating origin_visit for origin 7 with status full
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 36 tests in 12.157s
FAILED (failures=3)
../Makefile.python:22: recipe for target 'test' failed
make: *** [test] Error 1Comment Actions
$ dpkg -l python3-dulwich Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============================================================-====================================-====================================-================================================================================================================================= ii python3-dulwich 0.19.2-2 amd64 Python Git library - Python3 module $ dpkg -l python3-fastimport Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============================================================-====================================-====================================-================================================================================================================================= ii python3-fastimport 0.9.8-1 all Fastimport file format parser and generator library $ python3 -c 'import dulwich; import fastimport; print(dulwich, fastimport)' <module 'dulwich' from '/usr/lib/python3/dist-packages/dulwich/__init__.py'> <module 'fastimport' from '/usr/lib/python3/dist-packages/fastimport/__init__.py'>