Build failed in Jenkins: cubicweb-saem_ref » py27,debian_jessie #157

jenkins.logilab.org noreply at logilab.org
Mon Mar 20 15:50:27 CET 2017


https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/157/------------------------------------------
Started by upstream project "cubicweb-saem_ref" build number 157
originally caused by:
 Started by an SCM change
Building remotely on docker-slave-f6edda4e9e56 (debian_jessie) in workspace <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/>
$ hg clone --rev a5694ac3c662544e88bc01481b0bba5923908c5e --noupdate http://hg.logilab.org/review/cubes/saem_ref <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/>
adding changesets
adding manifests
adding file changes
added 1534 changesets with 3862 changes to 270 files
[debian_jessie] $ hg update --rev a5694ac3c662544e88bc01481b0bba5923908c5e
116 files updated, 0 files merged, 0 files removed, 0 files unresolved
[debian_jessie] $ hg log --rev . --template {node}
[debian_jessie] $ hg log --rev . --template {rev}
[debian_jessie] $ hg log --rev 617a0c0e120b0a20481f41ca0875940120f45311 --template exists\n
abort: unknown revision '617a0c0e120b0a20481f41ca0875940120f45311'!
ERROR: Previously built revision 617a0c0e120b0a20481f41ca0875940120f45311 is not known in this clone; unable to determine change log
[debian_jessie] $ /bin/sh -xe /tmp/hudson6279419723634091326.sh
+ find . ( -name pgdb* -o -name tmpdb* ) -print0
+ xargs -0 rm -rf
[debian_jessie] $ /bin/sh -xe /tmp/hudson722968255200368533.sh
+ PATH=/usr/lib/postgresql/9.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/games tox --recreate
GLOB sdist-make: <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/setup.py>
py27 create: <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/.tox/py27>
py27 installdeps: -rdev-requirements.txt, http://hg.logilab.org/review/yams/archive/6b2d37bad9e3.tar.bz2#yams
py27 inst: <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/.tox/dist/cubicweb-saem-ref-0.14.3.zip>
py27 installed: appdirs==1.4.3,backports.functools-lru-cache==1.3,beautifulsoup4==4.5.3,chardet==2.3.0,colorama==0.3.2,cubicweb==3.24.6,cubicweb-addressbook==1.9.1,cubicweb-bootstrap==1.2.6,cubicweb-compound==0.5.0,cubicweb-eac==0.4.0,cubicweb-geocoding==0.2.1,cubicweb-oaipmh==0.4.1,cubicweb-prov==0.4.0,cubicweb-relationwidget==0.4.0,cubicweb-saem-ref==0.14.3,cubicweb-seda==0.8.0,cubicweb-signedrequest==0.3.0,cubicweb-skos==1.1.0,cubicweb-squareui==1.0.3,cubicweb-vtimeline==0.5.1,cwtags==1.1.0,decorator==3.4.0,funcsigs==1.0.2,GDAL==1.10.1,html2text==2016.9.19,html5lib==0.999,hupper==0.4.4,isodate==0.5.0,joblib==0.8.3,linecache2==1.0.0,logilab-common==1.4.0,logilab-constraint==0.6.0,logilab-database==1.15.0,logilab-mtconverter==0.9.0,lxml==3.4.0,Markdown==2.6.8,mercurial==3.9.1,mock==2.0.0,numpy==1.8.2,packaging==16.8,pandas==0.14.1,passlib==1.7.1,PasteDeploy==1.5.2,pbr==2.0.0,Pillow==2.6.1,pluggy==0.4.0,psycopg2==2.5.4,py==1.4.32,pykerberos==1.1.5,pyparsing==2.2.0,pyramid==1.8.3,pyramid-multiauth==0.9.0,pytest==3.0.7,python-dateutil==2.2,pytz==2012rc0,pyxst==0.1.1,rdflib==4.1.2,repoze.lru==0.6,requests==2.4.3,requests-kerberos==0.5,rql==0.34.2,scikit-learn==0.14.1,scipy==0.14.0,six==1.10.0,SPARQLWrapper==1.8.0,tox==2.5.0,traceback2==1.4.0,translationstring==1.3,unittest2==1.1.0,urllib3==1.9.1,venusian==1.0,virtualenv==15.1.0,waitress==1.0.2,WebOb==1.7.2,WebTest==2.0.27,wsgicors==0.7.0,yams==0.45.0,Yapps2==2.2.0,zope.deprecation==4.2.0,zope.interface==4.3.3
py27 runtests: PYTHONHASHSEED='2880554367'
py27 runtests: commands[0] | <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/.tox/py27/bin/python> -m pytest <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/test>
============================= test session starts ==============================
platform linux2 -- Python 2.7.9, pytest-3.0.7, py-1.4.32, pluggy-0.4.0
rootdir: <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/,> inifile: tox.ini
collected 142 items

test/test_ccplugin.py ....
test/test_eac.py ..
test/test_entities_rdf.py .........
test/test_oai.py ....................
test/test_pviews.py ..
test/test_saem_ref.py ..F.
test/test_security.py .......
test/test_seda.py ...
test/test_views.py ............................
test/unittest_autocomplete.py ....
test/unittest_dataimport.py .
test/unittest_entities.py ..
test/unittest_entities_container.py ....
test/unittest_entities_skos.py .
test/unittest_hooks.py ............................
test/unittest_schema.py ...................
test/unittest_site_cubicweb.py .
test/unittest_sobjects_skos.py ...

=================================== FAILURES ===================================
____________________ AutomaticWebTest.test_one_each_config _____________________

self = <test_saem_ref.AutomaticWebTest testMethod=test_one_each_config>

    def test_one_each_config(self):
>       self.auto_populate(1)

.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/testlib.py:1314: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/testlib.py:1193: in auto_populate
    cnx.commit()
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:190: in check_open
    return func(cnx, *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:878: in commit
    operation.handle_event('precommit_event')
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/hook.py:769: in handle_event
    getattr(self, event)()
.tox/py27/local/lib/python2.7/site-packages/cubicweb/hooks/metadata.py:78: in precommit_event
    cnx.add_relations([('created_by', relations)])
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:190: in check_open
    return func(cnx, *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:557: in add_relations
    self.repo.glob_add_relations(self, relations_dict)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/repository.py:1022: in glob_add_relations
    rtype=rtype, eids_from_to=source_relations)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/hook.py:416: in call_hooks
    registry.call_hooks(event, cnx, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/hook.py:337: in call_hooks
    hook()
cubicweb_saem_ref/hooks.py:457: in __call__
    {'u': self.eidto, 'ar': self.eidfrom})
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:190: in check_open
    return func(cnx, *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:806: in execute
    rset = self._execute(self, rql, kwargs, build_descr)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/sqlutils.py:477: in new_execute
    rset = base_execute(*args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/statsd_logger.py:121: in __call__
    return self.callable(*args, **kw)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/querier.py:606: in execute
    results = plan.execute()
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/querier.py:187: in execute
    result = step.execute()
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/ssplanner.py:511: in execute
    repo.glob_add_relations(cnx, relations)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/repository.py:1016: in glob_add_relations
    source.add_relations(cnx, rtype, source_relations)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/sources/native.py:622: in add_relations
    self._add_relations(cnx, rtype, subj_obj_list, inlined)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/sources/native.py:650: in _add_relations
    self.doexecmany(cnx, statement, attrs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/statsd_logger.py:121: in __call__
    return self.callable(*args, **kw)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/sources/native.py:743: in doexecmany
    cursor.executemany(str(query), args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <logilab.database.sqlite.Sqlite3Cursor object at 0x7ff2d4c683e0>
sql = 'INSERT INTO use_authorityrecord_relation ( eid_from, eid_to ) VALUES ( %(eid_from)s, %(eid_to)s )'
kwargss = [{'eid_from': 6436, 'eid_to': 6452}]

    def executemany(self, sql, kwargss):
        if not isinstance(kwargss, (list, tuple)):
            kwargss = tuple(kwargss)
>       self.__class__.__bases__[0].executemany(self, self._replace_parameters(sql, kwargss[0]), kwargss)
E       IntegrityError: UNIQUE constraint failed: use_authorityrecord_relation.eid_from, use_authorityrecord_relation.eid_to

.tox/py27/local/lib/python2.7/site-packages/logilab/database/sqlite.py:195: IntegrityError
----------------------------- Captured stdout call -----------------------------
Building autopopulate for database tmpdb
==================== 1 failed, 141 passed in 870.94 seconds ====================
waiting for server to shut down.... done
server stopped
Exception TypeError: "'NoneType' object is not callable" in <bound method PostgresTestDataBaseHandler.__del__ of <cubicweb.devtools.PostgresTestDataBaseHandler object at 0x7ff2dffa6350>> ignored
ERROR: InvocationError: '<https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/.tox/py27/bin/python> -m pytest <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/test'>
___________________________________ summary ____________________________________
ERROR:   py27: commands failed
Build step 'Execute shell' marked build as failure



More information about the saem-devel mailing list