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

jenkins.logilab.org noreply at logilab.org
Mon Mar 13 13:58:05 CET 2017


https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/132/------------------------------------------
Started by upstream project "cubicweb-saem_ref" build number 132
originally caused by:
 Started by an SCM change
Building remotely on docker-slave-548f38e6e66f (debian_jessie) in workspace <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/>
$ hg clone --rev 08f45e7a5a8f34cc452027ac68edded61a72b838 --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 1484 changesets with 3752 changes to 268 files
[debian_jessie] $ hg update --rev 08f45e7a5a8f34cc452027ac68edded61a72b838
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 ef6a626db9c1059cc7e70a312483c11bf0a31455 --template exists\n
abort: unknown revision 'ef6a626db9c1059cc7e70a312483c11bf0a31455'!
ERROR: Previously built revision ef6a626db9c1059cc7e70a312483c11bf0a31455 is not known in this clone; unable to determine change log
[debian_jessie] $ /bin/sh -xe /tmp/hudson8338967329362736916.sh
+ find . ( -name pgdb* -o -name tmpdb* ) -print0
+ xargs -0 rm -rf
[debian_jessie] $ /bin/sh -xe /tmp/hudson3188813875938340789.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
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.5,cubicweb-addressbook==1.9.1,cubicweb-bootstrap==1.2.6,cubicweb-compound==0.4.0,cubicweb-eac==0.3.0,cubicweb-geocoding==0.2.1,cubicweb-oaipmh==0.4.1,cubicweb-prov==0.3.0,cubicweb-relationwidget==0.4.0,cubicweb-saem-ref==0.14.3,cubicweb-seda==0.7.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,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.3.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,numpy==1.8.2,packaging==16.8,pandas==0.14.1,passlib==1.7.1,PasteDeploy==1.5.2,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.6,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.1,WebTest==2.0.26,wsgicors==0.7.0,yams==0.44.1,Yapps2==2.2.0,zope.deprecation==4.2.0,zope.interface==4.3.3
py27 runtests: PYTHONHASHSEED='1560457293'
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.6, 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 143 items

test/test_ccplugin.py ....
test/test_eac.py .
test/test_oai.py ....................
test/test_pviews.py ..
test/test_saem_ref.py ..
test/test_security.py .......
test/test_seda.py ...
test/test_views.py .............F..............
test/unittest_autocomplete.py ....
test/unittest_dataimport.py .
test/unittest_entities.py ..
test/unittest_entities_agent.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 ===================================
______________________ SEDANavigationTC.test_breadcrumbs _______________________

self = <test_views.SEDANavigationTC testMethod=test_breadcrumbs>

    def test_breadcrumbs(self):
        with self.admin_access.cnx() as cnx:
            transfer = testutils.setup_profile(cnx)
            unit1 = testutils.create_archive_unit(transfer)[0]
            unit2 = testutils.create_archive_unit(None, cnx=cnx)[0]
            cnx.commit()
        with self.admin_access.web_request() as req:
            unit1 = req.entity_from_eid(unit1.eid)
            unit2 = req.entity_from_eid(unit2.eid)
            # unit1 is related to a transfer
            breadcrumbs = unit1.cw_adapt_to('IBreadCrumbs').breadcrumbs()
            expected_breadcrumbs = [transfer, unit1]
            self.assertEqual(breadcrumbs, expected_breadcrumbs)
            # unit2 is not related to a transfer, breadcrumbs leads to /sedalib.
>           breadcrumbs = unit2.cw_adapt_to('IBreadCrumbs').breadcrumbs()

test/test_views.py:232: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/py27/local/lib/python2.7/site-packages/cubicweb/entity.py:603: in cw_adapt_to
    interface, self._cw, entity=self)
.tox/py27/local/lib/python2.7/site-packages/logilab/common/registry.py:378: in select_or_none
    return self._select_best(self[__oid], *args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = {'SEDA-2.0.html': [<class 'cubes.seda.entities.html_generation.SEDA2HTMLExport...gentArkNAALocator'>, <class 'cubicweb_saem_ref.entities.DirectArkNAALocator'>]}
objects = [<class 'cubicweb.web.views.ibreadcrumbs.IBreadCrumbsAdapter'>, <class 'cubicweb.web.views.schema.CWConstraintIBreadCr....schema.CWRelationIBreadCrumbsAdapter'>, <class 'cubicweb.web.views.cwsources.CWsourceConfigIBreadCrumbsAdapter'>, ...]
args = (<cubicweb.devtools.fake.FakeRequest object at 0x7f67f9bc2390>,)
kwargs = {'entity': <Entity SEDAArchiveUnit 6286 [] at 140084548218640>}
score = 3
winners = [<class 'cubes.seda.views.sedalib.SEDAComponentsBreadcrumbsAdapter'>, <class 'cubicweb_saem_ref.views.seda.SEDAComponentsBreadcrumbsAdapter'>]
obj = <class 'cubicweb_saem_ref.views.seda.SEDAComponentsBreadcrumbsAdapter'>
objectscore = 3, msg = 'select ambiguity: %s\n(args: %s, kwargs: %s)'

    def _select_best(self, objects, *args, **kwargs):
        """return an instance of the most specific object according
            to parameters
    
            return None if not object apply (don't raise `NoSelectableObject` since
            it's costly when searching objects using `possible_objects`
            (e.g. searching for hooks).
            """
        score, winners = 0, None
        for obj in objects:
            objectscore = obj.__select__(obj, *args, **kwargs)
            if objectscore > score:
                score, winners = objectscore, [obj]
            elif objectscore > 0 and objectscore == score:
                winners.append(obj)
        if winners is None:
            return None
        if len(winners) > 1:
            # log in production environement / test, error while debugging
            msg = 'select ambiguity: %s\n(args: %s, kwargs: %s)'
            if self.debugmode:
                # raise bare exception in debug mode
>               raise SelectAmbiguity(msg % (winners, args, kwargs.keys()))
E               SelectAmbiguity: select ambiguity: [<class 'cubes.seda.views.sedalib.SEDAComponentsBreadcrumbsAdapter'>, <class 'cubicweb_saem_ref.views.seda.SEDAComponentsBreadcrumbsAdapter'>]
E               (args: (<cubicweb.devtools.fake.FakeRequest object at 0x7f67f9bc2390>,), kwargs: ['entity'])

.tox/py27/local/lib/python2.7/site-packages/logilab/common/registry.py:414: SelectAmbiguity
==================== 1 failed, 142 passed in 726.16 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 0x7f6806e69310>> 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