|
......EE.......EE........EE.E....E..........EE........EE.......EE.........EE.E............................................EE........EE..E....EE..E.E..E...EE...E.....EE...E.....EE.......EE...............EE.......EE..........EE........EE.......EE.E.......EE......E...EE........EE........EE.......EE........EE.......EE.......EE.......EE.......EE.......EE.......EE.......EE........EE........EE.......EE.......EE. |
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_askbot.TestAskbot) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_askbot.py", line 72, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_askbot.TestAskbot) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_askbot.py", line 86, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_bugzilla.TestBugzilla) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_bugzilla.py", line 79, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_bugzilla.TestBugzilla) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_bugzilla.py", line 93, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_bugzillarest.TestBugzillaRest) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_bugzillarest.py", line 83, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_bugzillarest.TestBugzillaRest) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_bugzillarest.py", line 108, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_cocom_analysis_study (test_cocom.TestCoCom) |
|
Test that the cocom analysis study works correctly |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_cocom.py", line 128, in test_cocom_analysis_study |
|
study, ocean_backend, enrich_backend = self._test_study('enrich_cocom_analysis') |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 275, in _test_study |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/cocom.py", line 115, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_colic_analysis_study (test_colic.TestCoLic) |
|
Test that the colic analysis study works correctly |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_colic.py", line 118, in test_colic_analysis_study |
|
study, ocean_backend, enrich_backend = self._test_study('enrich_colic_analysis') |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 275, in _test_study |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/colic.py", line 90, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_confluence.TestConfluence) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_confluence.py", line 100, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_confluence.TestConfluence) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_confluence.py", line 114, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_crates.TestCrates) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_crates.py", line 72, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_crates.TestCrates) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_crates.py", line 86, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_discourse.TestDiscourse) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_discourse.py", line 78, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/discourse.py", line 65, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_discourse.TestDiscourse) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_discourse.py", line 92, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/discourse.py", line 65, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_dockerhub.TestDockerhub) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_dockerhub.py", line 76, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_dockerhub.TestDockerhub) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_dockerhub.py", line 90, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_elastic (unittest.loader._FailedTest) |
|
---------------------------------------------------------------------- |
|
ImportError: Failed to import test module: test_elastic |
|
Traceback (most recent call last): |
|
File "/usr/lib/python3.6/unittest/loader.py", line 428, in _find_test_path |
|
module = self._get_module_from_name(name) |
|
File "/usr/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name |
|
__import__(name) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_elastic.py", line 30, in <module> |
|
import httpretty |
|
ModuleNotFoundError: No module named 'httpretty' |
|
|
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_finosmeetings.TestFinosMeetings) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_finosmeetings.py", line 89, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_finosmeetings.TestFinosMeetings) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_finosmeetings.py", line 157, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_functest.TestFunctest) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_functest.py", line 98, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_functest.TestFunctest) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_functest.py", line 112, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_demography_study (test_gerrit.TestGerrit) |
|
Test that the demography study works correctly |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_gerrit.py", line 204, in test_demography_study |
|
study, ocean_backend, enrich_backend = self._test_study('enrich_demography') |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 275, in _test_study |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/gerrit.py", line 90, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_gerrit.TestGerrit) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_gerrit.py", line 236, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/gerrit.py", line 90, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_gerrit.TestGerrit) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_gerrit.py", line 295, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/gerrit.py", line 90, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_demography_study (test_git.TestGit) |
|
Test that the demography study works correctly |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_git.py", line 165, in test_demography_study |
|
study, ocean_backend, enrich_backend = self._test_study('enrich_demography') |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 275, in _test_study |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/git.py", line 89, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_extra_study (test_git.TestGit) |
|
Test that the extra study works correctly |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_git.py", line 191, in test_extra_study |
|
study, ocean_backend, enrich_backend = self._test_study('enrich_extra_data') |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 275, in _test_study |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/git.py", line 89, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_onion_study (test_git.TestGit) |
|
Test that the onion study works correctly |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_git.py", line 207, in test_onion_study |
|
study, ocean_backend, enrich_backend = self._test_study('enrich_onion') |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 275, in _test_study |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/git.py", line 89, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_git.TestGit) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_git.py", line 125, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/git.py", line 89, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_git.TestGit) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_git.py", line 153, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/git.py", line 89, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_geolocation_study (test_github.TestGit) |
|
Test that the geolocation study works correctly |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_github.py", line 178, in test_geolocation_study |
|
study, ocean_backend, enrich_backend = self._test_study('enrich_geolocation') |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 275, in _test_study |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/github.py", line 90, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_github.TestGit) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_github.py", line 135, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/github.py", line 90, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_github.TestGit) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_github.py", line 147, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/github.py", line 90, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_geolocation_study (test_github2.TestGitHub2) |
|
Test that the geolocation study works correctly |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_github2.py", line 195, in test_geolocation_study |
|
study, ocean_backend, enrich_backend = self._test_study('enrich_geolocation') |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 275, in _test_study |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/github2.py", line 107, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_github2.TestGitHub2) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_github2.py", line 152, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/github2.py", line 107, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_github2.TestGitHub2) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_github2.py", line 164, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/github2.py", line 107, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_gitlab.TestGitLab) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_gitlab.py", line 160, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/gitlab.py", line 80, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_gitlab.TestGitLab) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_gitlab.py", line 172, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/gitlab.py", line 80, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_groupsio.TestGrousio) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_groupsio.py", line 77, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/mbox.py", line 72, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_groupsio.TestGrousio) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_groupsio.py", line 91, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/mbox.py", line 72, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_hyperkitty.TestHyperkitty) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_hyperkitty.py", line 86, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/mbox.py", line 72, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_hyperkitty.TestHyperkitty) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_hyperkitty.py", line 100, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/mbox.py", line 72, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_jenkins.TestJenkins) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_jenkins.py", line 90, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/jenkins.py", line 67, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_jenkins.TestJenkins) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_jenkins.py", line 104, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/jenkins.py", line 67, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_jira.TestJira) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_jira.py", line 133, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_jira.TestJira) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_jira.py", line 171, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_kitsune.TestKitsune) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_kitsune.py", line 71, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_kitsune.TestKitsune) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_kitsune.py", line 85, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_load_identities (test_load_identities.TestLoadIdentities) |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_load_identities.py", line 78, in setUp |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/github.py", line 90, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_mattermost.TestMattermost) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_mattermost.py", line 77, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_mattermost.TestMattermost) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_mattermost.py", line 95, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_kafka_kip_study (test_mbox.TestMbox) |
|
Test that the kafka kip study works correctly |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_mbox.py", line 148, in test_kafka_kip_study |
|
study, ocean_backend, enrich_backend = self._test_study('kafka_kip') |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 275, in _test_study |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/mbox.py", line 72, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_mbox.TestMbox) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_mbox.py", line 111, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/mbox.py", line 72, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_mbox.TestMbox) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_mbox.py", line 125, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/mbox.py", line 72, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_mediawiki.TestMediawiki) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_mediawiki.py", line 173, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_mediawiki.TestMediawiki) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_mediawiki.py", line 210, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_meetup.TestMeetup) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_meetup.py", line 80, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_meetup.TestMeetup) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_meetup.py", line 94, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_mozillaclub.TestMozillaClub) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_mozillaclub.py", line 90, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_mozillaclub.TestMozillaClub) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_mozillaclub.py", line 112, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_nntp.TestNNTP) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_nntp.py", line 96, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/mbox.py", line 72, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_nntp.TestNNTP) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_nntp.py", line 110, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/mbox.py", line 72, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_phabricator.TestPhabricator) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_phabricator.py", line 71, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/phabricator.py", line 79, in __init__ |
|
super().__init__(db_sortinghat, db_projects_map, json_projects_map, db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_phabricator.TestPhabricator) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_phabricator.py", line 85, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/phabricator.py", line 79, in __init__ |
|
super().__init__(db_sortinghat, db_projects_map, json_projects_map, db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_pipermail.TestPipermail) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_pipermail.py", line 81, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/mbox.py", line 72, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_pipermail.TestPipermail) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_pipermail.py", line 95, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/mbox.py", line 72, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_puppetforge.TestPuppetForge) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_puppetforge.py", line 71, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_puppetforge.TestPuppetForge) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_puppetforge.py", line 85, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_redmine.TestRedmine) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_redmine.py", line 85, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_redmine.TestRedmine) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_redmine.py", line 107, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_remo.TestRemo) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_remo.py", line 71, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/remo.py", line 64, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_remo.TestRemo) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_remo.py", line 85, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/remo.py", line 64, in __init__ |
|
db_user, db_password, db_host) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_rss.TestRSS) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_rss.py", line 71, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_rss.TestRSS) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_rss.py", line 85, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_slack.TestSlack) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_slack.py", line 88, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_slack.TestSlack) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_slack.py", line 127, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_stackexchange.TestStackexchange) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_stackexchange.py", line 70, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_stackexchange.TestStackexchange) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_stackexchange.py", line 84, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_supybot.TestSupybot) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_supybot.py", line 70, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_supybot.TestSupybot) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_supybot.py", line 84, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_telegram.TestTelegram) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_telegram.py", line 71, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_telegram.TestTelegram) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_telegram.py", line 85, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_raw_to_enrich_sorting_hat (test_twitter.TestTwitter) |
|
Test enrich with SortingHat |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_twitter.py", line 71, in test_raw_to_enrich_sorting_hat |
|
result = self._test_raw_to_enrich(sortinghat=True) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 178, in _test_raw_to_enrich |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
====================================================================== |
|
ERROR: test_refresh_identities (test_twitter.TestTwitter) |
|
Test refresh identities |
|
---------------------------------------------------------------------- |
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
pymysql.err.InternalError: (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
|
|
The above exception was the direct cause of the following exception: |
|
|
|
Traceback (most recent call last): |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/test_twitter.py", line 85, in test_refresh_identities |
|
result = self._test_refresh_identities() |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/tests/base.py", line 230, in _test_refresh_identities |
|
db_password=self.db_password) |
|
File "../grimoire_elk/enriched/enrich.py", line 122, in __init__ |
|
Enrich.sh_db = Database(db_user, db_password, db_sortinghat, db_host) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 58, in __init__ |
|
self.__create_schema(self._engine) |
|
File "/home/p0tt3r/chaoss/grimoirelab-elk/src/grimoirelab-sortinghat/sortinghat/db/database.py", line 170, in __create_schema |
|
ModelBase.metadata.create_all(engine) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4304, in create_all |
|
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2046, in _run_visitor |
|
conn._run_visitor(visitorcallable, element, **kwargs) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1615, in _run_visitor |
|
visitorcallable(self.dialect, self, **kwargs).traverse_single(element) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata |
|
_is_metadata_operation=True, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 138, in traverse_single |
|
return meth(obj, **kw) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 826, in visit_table |
|
include_foreign_key_constraints, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute |
|
return meth(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection |
|
return connection._execute_ddl(self, multiparams, params) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl |
|
compiled, |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context |
|
e, statement, parameters, cursor, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1473, in _handle_dbapi_exception |
|
util.raise_from_cause(sqlalchemy_exception, exc_info) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause |
|
reraise(type(exception), exception, tb=exc_tb, cause=cause) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise |
|
raise value.with_traceback(tb) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context |
|
cursor, statement, parameters, context |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute |
|
cursor.execute(statement, parameters) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute |
|
result = self._query(query) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query |
|
conn.query(q) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query |
|
self._affected_rows = self._read_query_result(unbuffered=unbuffered) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result |
|
result.read() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read |
|
first_packet = self.connection._read_packet() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/connections.py", line 684, in _read_packet |
|
packet.check_error() |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error |
|
err.raise_mysql_exception(self._data) |
|
File "/home/p0tt3r/.local/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception |
|
raise errorclass(errno, errval) |
|
sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (3822, "Duplicate check constraint name 'top_domain_check'.") |
|
[SQL: |
|
CREATE TABLE domains_organizations ( |
|
id INTEGER NOT NULL AUTO_INCREMENT, |
|
domain VARCHAR(128) NOT NULL, |
|
is_top_domain BOOL, |
|
organization_id INTEGER NOT NULL, |
|
PRIMARY KEY (id), |
|
CONSTRAINT _domain_unique UNIQUE (domain), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
CONSTRAINT top_domain_check CHECK (is_top_domain IN (0, 1)), |
|
FOREIGN KEY(organization_id) REFERENCES organizations (id) ON DELETE CASCADE ON UPDATE CASCADE |
|
)DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_520_ci |
|
|
|
] |
|
(Background on this error at: http://sqlalche.me/e/2j85) |
|
|
|
---------------------------------------------------------------------- |
|
Ran 408 tests in 1066.219s |
|
|
|
FAILED (errors=83) |
Thanks for the pointer, your change is correct. The command I put was taken from the Pycharm configuration, maybe you can add this info too
![captura_229](https://user-images.githubusercontent.com/6515067/74924011-a3ceea80-53c9-11ea-9582-8b52c488fd0c.png)