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

jenkins.logilab.org noreply at logilab.org
Fri Feb 24 11:08:43 CET 2017


https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/100/Changes:

[Philippe Pepiot <philippe.pepiot at logilab.fr>] [pkg] use new import path for cubicweb-seda

------------------------------------------
Started by upstream project "cubicweb-saem_ref" build number 100
originally caused by:
 Started by an SCM change
Building remotely on docker-slave-cde162a35c6c (debian_jessie) in workspace <https://jenkins.logilab.org/job/cubicweb-saem_ref/TOXENV=py27,distributions=debian_jessie/ws/>
$ hg clone --rev 7e9aca4d08ef63873707041c5db2af823ebcceda --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 1501 changesets with 3787 changes to 269 files
[debian_jessie] $ hg update --rev 7e9aca4d08ef63873707041c5db2af823ebcceda
115 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 c3194697a71904e757bc8153302457325e25c199 --template exists\n
exists
[debian_jessie] $ hg log --template "<changeset node='{node}' author='{author|xmlescape}' rev='{rev}' date='{date}'><msg>{desc|xmlescape}</msg><added>{file_adds|stringify|xmlescape}</added><deleted>{file_dels|stringify|xmlescape}</deleted><files>{files|stringify|xmlescape}</files><parents>{parents}</parents></changeset>\n" --rev "ancestors('7e9aca4d08ef63873707041c5db2af823ebcceda') and not ancestors(c3194697a71904e757bc8153302457325e25c199)" --encoding UTF-8 --encodingmode replace
[debian_jessie] $ /bin/sh -xe /tmp/hudson8074362462736047960.sh
+ find . ( -name pgdb* -o -name tmpdb* ) -print0
+ xargs -0 rm -rf
[debian_jessie] $ /bin/sh -xe /tmp/hudson1652795311357809247.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.2.zip>
py27 installed: appdirs==1.4.2,backports.functools-lru-cache==1.0,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.4,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.2,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.2,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.1.10,pyramid==1.8.2,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.25,wsgicors==0.6.0,yams==0.44.1,Yapps2==2.2.0,zope.deprecation==4.2.0,zope.interface==4.3.3
py27 runtests: PYTHONHASHSEED='2244716659'
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 144 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:253: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.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 = {'IContained': [<class 'cubes.compound.entities.SEDAAccessRuleIContained'>, <c...ter'>], 'IEmailable': [<class 'cubicweb.entities.adapters.IEmailableAdapter'>]}
objects = [<class 'cubicweb.web.views.ibreadcrumbs.IBreadCrumbsAdapter'>, <class 'cubicweb.web.views.schema.CWConstraintIBreadCr...schema.CWAttributeIBreadCrumbsAdapter'>, <class 'cubicweb.web.views.cwsources.CWsourceConfigIBreadCrumbsAdapter'>, ...]
args = (<cubicweb.devtools.fake.FakeRequest object at 0x7f559c4bbd90>,)
kwargs = {'entity': <Entity SEDAArchiveUnit 6286 [] at 140005671154512>}
score = 3
winners = [<class 'cubicweb_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 'cubicweb_seda.views.sedalib.SEDAComponentsBreadcrumbsAdapter'>, <class 'cubicweb_saem_ref.views.seda.SEDAComponentsBreadcrumbsAdapter'>]
E               (args: (<cubicweb.devtools.fake.FakeRequest object at 0x7f559c4bbd90>,), kwargs: ['entity'])

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