Page MenuHomeSoftware Heritage
Paste P251

[fixed] swh-vault: traceback `make test` not working locally
ActivePublic

Authored by ardumont on Apr 26 2018, 10:32 AM.
python3 -m nose -sv --with-doctest ./swh/vault/tests
createdb: database creation failed: ERROR: database "softwareheritage-test-vault" already exists
Time: 2.739 ms
Time: 0.344 ms
Time: 0.454 ms
Time: 0.204 ms
Time: 0.567 ms
Time: 0.112 ms
Time: 0.245 ms
Time: 0.068 ms
psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/../../../sql/swh-vault-schema.sql:34: ERROR: syntax error at or near ")"
LINE 12: );
^
Time: 0.158 ms
psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/../../../sql/swh-vault-schema.sql:36: ERROR: relation "vault_bundle" does not exist
Time: 0.123 ms
psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/../../../sql/swh-vault-schema.sql:38: ERROR: relation "vault_bundle" does not exist
Time: 0.069 ms
psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/../../../sql/swh-vault-schema.sql:44: ERROR: relation "vault_bundle" does not exist
Time: 3.061 ms
psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/../../../sql/swh-vault-schema.sql:46: ERROR: relation "vault_notif_email" does not exist
Time: 0.124 ms
psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/../../../sql/swh-vault-schema.sql:48: ERROR: relation "vault_notif_email" does not exist
Time: 0.083 ms
Time: 0.948 ms
psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/../../../sql/swh-vault-schema.sql:57: ERROR: relation "vault_bundle" does not exist
Time: 1.545 ms
psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/../../../sql/swh-vault-schema.sql:59: ERROR: relation "vault_batch_bundle" does not exist
Time: 0.125 ms
createdb: database creation failed: ERROR: database "softwareheritage-test-storage" already exists
test_available (test_backend.TestBackend) ... ERROR
test_cache_expire_oldest (test_backend.TestBackend) ... ERROR
test_cache_expire_until (test_backend.TestBackend) ... ERROR
test_cook_email_pending_done (test_backend.TestBackend) ... ERROR
test_cook_request_idempotent (test_backend.TestBackend) ... ERROR
test_create_fail_duplicate_task (test_backend.TestBackend) ... ERROR
test_create_fail_nonexisting_object (test_backend.TestBackend) ... ok
test_create_set_progress (test_backend.TestBackend) ... ERROR
test_create_set_status (test_backend.TestBackend) ... ERROR
test_create_task_simple (test_backend.TestBackend) ... ERROR
test_create_update_access_ts (test_backend.TestBackend) ... ERROR
test_fail_cook_simple (test_backend.TestBackend) ... ERROR
test_fetch (test_backend.TestBackend) ... ERROR
test_retry_failed_bundle (test_backend.TestBackend) ... ERROR
test_send_all_emails (test_backend.TestBackend) ... ERROR
test_send_failure_email (test_backend.TestBackend) ... Time: 2.864 ms
Time: 0.302 ms
Time: 0.417 ms
Time: 0.195 ms
Time: 0.682 ms
Time: 0.148 ms
Time: 0.270 ms
Time: 0.078 ms
psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/../../../sql/swh-vault-schema.sql:34: ERROR: syntax error at or near ")"
LINE 12: );
^
Time: 0.190 ms
psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/../../../sql/swh-vault-schema.sql:36: ERROR: relation "vault_bundle" does not exist
Time: 0.183 ms
psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/../../../sql/swh-vault-schema.sql:38: ERROR: relation "vault_bundle" does not exist
Time: 0.085 ms
psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/../../../sql/swh-vault-schema.sql:44: ERROR: relation "vault_bundle" does not exist
Time: 4.369 ms
psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/../../../sql/swh-vault-schema.sql:46: ERROR: relation "vault_notif_email" does not exist
Time: 0.164 ms
psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/../../../sql/swh-vault-schema.sql:48: ERROR: relation "vault_notif_email" does not exist
Time: 0.072 ms
Time: 1.167 ms
psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/../../../sql/swh-vault-schema.sql:57: ERROR: relation "vault_bundle" does not exist
Time: 1.864 ms
psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/../../../sql/swh-vault-schema.sql:59: ERROR: relation "vault_batch_bundle" does not exist
Time: 0.182 ms
ERROR
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_available (test_backend.TestBackend)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 224, in test_available
TEST_OBJ_ID))
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 282, in is_available
info = self.task_info(obj_type, obj_id, cursor=cursor)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 164, in task_info
WHERE type = %s AND object_id = %s''', (obj_type, obj_id))
File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 249, in execute
return super(RealDictCursor, self).execute(query, vars)
psycopg2.ProgrammingError: relation "vault_bundle" does not exist
LINE 4: FROM vault_bundle
^
======================================================================
ERROR: test_cache_expire_oldest (test_backend.TestBackend)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 259, in test_cache_expire_oldest
obj_id, content = self.fake_cook(TEST_TYPE, content, sticky)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 44, in fake_cook
self.vault_backend.create_task(obj_type, obj_id, sticky)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 191, in create_task
VALUES (%s, %s, %s)''', (obj_type, obj_id, sticky))
File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 249, in execute
return super(RealDictCursor, self).execute(query, vars)
psycopg2.ProgrammingError: relation "vault_bundle" does not exist
LINE 2: INSERT INTO vault_bundle (type, object_id, stick...
^
======================================================================
ERROR: test_cache_expire_until (test_backend.TestBackend)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 277, in test_cache_expire_until
obj_id, content = self.fake_cook(TEST_TYPE, content, sticky)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 44, in fake_cook
self.vault_backend.create_task(obj_type, obj_id, sticky)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 191, in create_task
VALUES (%s, %s, %s)''', (obj_type, obj_id, sticky))
File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 249, in execute
return super(RealDictCursor, self).execute(query, vars)
psycopg2.ProgrammingError: relation "vault_bundle" does not exist
LINE 2: INSERT INTO vault_bundle (type, object_id, stick...
^
======================================================================
ERROR: test_cook_email_pending_done (test_backend.TestBackend)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 168, in test_cook_email_pending_done
self.vault_backend.cook_request(TEST_TYPE, TEST_OBJ_ID)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 217, in cook_request
info = self.task_info(obj_type, obj_id)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 164, in task_info
WHERE type = %s AND object_id = %s''', (obj_type, obj_id))
File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 249, in execute
return super(RealDictCursor, self).execute(query, vars)
psycopg2.ProgrammingError: relation "vault_bundle" does not exist
LINE 4: FROM vault_bundle
^
======================================================================
ERROR: test_cook_request_idempotent (test_backend.TestBackend)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 157, in test_cook_request_idempotent
info1 = self.vault_backend.cook_request(TEST_TYPE, TEST_OBJ_ID)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 217, in cook_request
info = self.task_info(obj_type, obj_id)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 164, in task_info
WHERE type = %s AND object_id = %s''', (obj_type, obj_id))
File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 249, in execute
return super(RealDictCursor, self).execute(query, vars)
psycopg2.ProgrammingError: relation "vault_bundle" does not exist
LINE 4: FROM vault_bundle
^
======================================================================
ERROR: test_create_fail_duplicate_task (test_backend.TestBackend)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 95, in test_create_fail_duplicate_task
self.vault_backend.create_task(TEST_TYPE, TEST_OBJ_ID)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 191, in create_task
VALUES (%s, %s, %s)''', (obj_type, obj_id, sticky))
File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 249, in execute
return super(RealDictCursor, self).execute(query, vars)
psycopg2.ProgrammingError: relation "vault_bundle" does not exist
LINE 2: INSERT INTO vault_bundle (type, object_id, stick...
^
======================================================================
ERROR: test_create_set_progress (test_backend.TestBackend)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 107, in test_create_set_progress
self.vault_backend.create_task(TEST_TYPE, TEST_OBJ_ID)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 191, in create_task
VALUES (%s, %s, %s)''', (obj_type, obj_id, sticky))
File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 249, in execute
return super(RealDictCursor, self).execute(query, vars)
psycopg2.ProgrammingError: relation "vault_bundle" does not exist
LINE 2: INSERT INTO vault_bundle (type, object_id, stick...
^
======================================================================
ERROR: test_create_set_status (test_backend.TestBackend)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 118, in test_create_set_status
self.vault_backend.create_task(TEST_TYPE, TEST_OBJ_ID)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 191, in create_task
VALUES (%s, %s, %s)''', (obj_type, obj_id, sticky))
File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 249, in execute
return super(RealDictCursor, self).execute(query, vars)
psycopg2.ProgrammingError: relation "vault_bundle" does not exist
LINE 2: INSERT INTO vault_bundle (type, object_id, stick...
^
======================================================================
ERROR: test_create_task_simple (test_backend.TestBackend)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 67, in test_create_task_simple
self.vault_backend.create_task(TEST_TYPE, TEST_OBJ_ID)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 191, in create_task
VALUES (%s, %s, %s)''', (obj_type, obj_id, sticky))
File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 249, in execute
return super(RealDictCursor, self).execute(query, vars)
psycopg2.ProgrammingError: relation "vault_bundle" does not exist
LINE 2: INSERT INTO vault_bundle (type, object_id, stick...
^
======================================================================
ERROR: test_create_update_access_ts (test_backend.TestBackend)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 136, in test_create_update_access_ts
self.vault_backend.create_task(TEST_TYPE, TEST_OBJ_ID)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 191, in create_task
VALUES (%s, %s, %s)''', (obj_type, obj_id, sticky))
File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 249, in execute
return super(RealDictCursor, self).execute(query, vars)
psycopg2.ProgrammingError: relation "vault_bundle" does not exist
LINE 2: INSERT INTO vault_bundle (type, object_id, stick...
^
======================================================================
ERROR: test_fail_cook_simple (test_backend.TestBackend)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 293, in test_fail_cook_simple
self.fail_cook(TEST_TYPE, TEST_OBJ_ID, 'error42')
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 51, in fail_cook
self.vault_backend.create_task(obj_type, obj_id)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 191, in create_task
VALUES (%s, %s, %s)''', (obj_type, obj_id, sticky))
File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 249, in execute
return super(RealDictCursor, self).execute(query, vars)
psycopg2.ProgrammingError: relation "vault_bundle" does not exist
LINE 2: INSERT INTO vault_bundle (type, object_id, stick...
^
======================================================================
ERROR: test_fetch (test_backend.TestBackend)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 237, in test_fetch
self.assertEqual(self.vault_backend.fetch(TEST_TYPE, TEST_OBJ_ID),
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 290, in fetch
if not self.is_available(obj_type, obj_id, cursor=cursor):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 282, in is_available
info = self.task_info(obj_type, obj_id, cursor=cursor)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 164, in task_info
WHERE type = %s AND object_id = %s''', (obj_type, obj_id))
File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 249, in execute
return super(RealDictCursor, self).execute(query, vars)
psycopg2.ProgrammingError: relation "vault_bundle" does not exist
LINE 4: FROM vault_bundle
^
======================================================================
ERROR: test_retry_failed_bundle (test_backend.TestBackend)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 323, in test_retry_failed_bundle
self.fail_cook(TEST_TYPE, TEST_OBJ_ID, 'error42')
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 51, in fail_cook
self.vault_backend.create_task(obj_type, obj_id)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 191, in create_task
VALUES (%s, %s, %s)''', (obj_type, obj_id, sticky))
File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 249, in execute
return super(RealDictCursor, self).execute(query, vars)
psycopg2.ProgrammingError: relation "vault_bundle" does not exist
LINE 2: INSERT INTO vault_bundle (type, object_id, stick...
^
======================================================================
ERROR: test_send_all_emails (test_backend.TestBackend)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 197, in test_send_all_emails
email=email)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 217, in cook_request
info = self.task_info(obj_type, obj_id)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 164, in task_info
WHERE type = %s AND object_id = %s''', (obj_type, obj_id))
File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 249, in execute
return super(RealDictCursor, self).execute(query, vars)
psycopg2.ProgrammingError: relation "vault_bundle" does not exist
LINE 4: FROM vault_bundle
^
======================================================================
ERROR: test_send_failure_email (test_backend.TestBackend)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/tests/test_backend.py", line 302, in test_send_failure_email
email='a@example.com')
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 217, in cook_request
info = self.task_info(obj_type, obj_id)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 85, in wrapped
ret = fn(self, *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/backend.py", line 164, in task_info
WHERE type = %s AND object_id = %s''', (obj_type, obj_id))
File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 249, in execute
return super(RealDictCursor, self).execute(query, vars)
psycopg2.ProgrammingError: relation "vault_bundle" does not exist
LINE 4: FROM vault_bundle
^
======================================================================
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 19.962s
FAILED (errors=19)
../Makefile.python:22: recipe for target 'test' failed
make: *** [test] Error 1

Event Timeline

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 1

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 1
$ 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'>
ardumont changed the title of this paste from make test not working traceback... to swh-vault: traceback `make test` not working locally.Apr 26 2018, 12:18 PM

D310 fixed the remaining failures!

swh-vault's test in some cases (merge) used the user triggering make test as committer.
Depending on that user's configuration, that would make result in different commits (e.g. in my ~/.gitconfig, i have [commit] gpgsign = True)

Thanks @olasd for the fixes!

ardumont changed the title of this paste from swh-vault: traceback `make test` not working locally to [fixed] swh-vault: traceback `make test` not working locally.Apr 26 2018, 2:08 PM