Build failed in Jenkins: cubicweb-seda » py27,debian_jessie #84

jenkins.logilab.org noreply at logilab.org
Thu Mar 16 11:50:27 CET 2017


https://jenkins.logilab.org/job/cubicweb-seda/TOXENV=py27,distributions=debian_jessie/84/------------------------------------------
[...truncated 1.31 KB...]
[debian_jessie] $ hg log --rev . --template {node}
[debian_jessie] $ hg log --rev . --template {rev}
[debian_jessie] $ hg log --rev de2afb1606049a5afe779a5487230c098b0e75fa --template exists\n
abort: unknown revision 'de2afb1606049a5afe779a5487230c098b0e75fa'!
ERROR: Previously built revision de2afb1606049a5afe779a5487230c098b0e75fa is not known in this clone; unable to determine change log
[debian_jessie] $ /bin/sh -xe /tmp/hudson2903670382731431860.sh
+ find . ( -name pgdb* -o -name tmpdb* ) -print0
+ xargs -0 rm -rf
[debian_jessie] $ /bin/sh -xe /tmp/hudson8261716767610649398.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-seda/TOXENV=py27,distributions=debian_jessie/ws/setup.py>
py27 create: <https://jenkins.logilab.org/job/cubicweb-seda/TOXENV=py27,distributions=debian_jessie/ws/.tox/py27>
py27 installdeps: -rdev-requirements.txt
py27 inst: <https://jenkins.logilab.org/job/cubicweb-seda/TOXENV=py27,distributions=debian_jessie/ws/.tox/dist/cubicweb-seda-0.8.0.zip>
py27 installed: appdirs==1.4.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.5.0,cubicweb-eac==0.4.0,cubicweb-geocoding==0.2.1,cubicweb-prov==0.4.0,cubicweb-relationwidget==0.4.0,cubicweb-seda==0.8.0,cubicweb-skos==1.1.0,cubicweb-squareui==1.0.3,cwtags==1.1.0,decorator==3.4.0,GDAL==1.10.1,html2text==2016.9.19,html5lib==0.999,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,Pillow==2.6.1,pluggy==0.4.0,psycopg2==2.5.4,py==1.4.32,pykerberos==1.1.5,pyparsing==2.2.0,pytest==3.0.7,python-dateutil==2.2,pytz==2012rc0,pyxst==0.1.1,rdflib==4.1.2,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,unittest2==1.1.0,urllib3==1.9.1,virtualenv==15.1.0,yams==0.44.1,Yapps2==2.2.0
py27 runtests: PYTHONHASHSEED='2351604889'
py27 runtests: commands[0] | <https://jenkins.logilab.org/job/cubicweb-seda/TOXENV=py27,distributions=debian_jessie/ws/.tox/py27/bin/python> -m pytest <https://jenkins.logilab.org/job/cubicweb-seda/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-seda/TOXENV=py27,distributions=debian_jessie/ws/,> inifile: tox.ini
collected 111 items

test/test_dataimport.py .
test/test_diag.py ....
test/test_entities.py .............
test/test_hooks.py ........
test/test_html_generation.py .
test/test_profile_generation.py .............................
test/test_schema.py ..................
test/test_views.py ............FF.F..........
test/test_xsd2yams.py ...........

=================================== FAILURES ===================================
_______________________ SimplifiedFormsTC.test_rule_form _______________________

self = <test_views.SimplifiedFormsTC testMethod=test_rule_form>

    def test_rule_form(self):
        with self.admin_access.web_request() as req:
            for rule_type in ('access', 'appraisal'):
>               form = self.create_and_link_form(req, 'SEDA{0}Rule'.format(rule_type.capitalize()))

test/test_views.py:385: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/test_views.py:314: in create_and_link_form
    return self._create_etype_form(req, etype, **kwargs)
test/test_views.py:325: in _create_etype_form
    return self.vreg['forms'].select('edition', req, entity=entity, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/logilab/common/registry.py:368: in select
    obj =  self._select_best(self[__oid], *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/logilab/common/registry.py:417: in _select_best
    return self.selected(winners[0], args, kwargs)
.tox/py27/local/lib/python2.7/site-packages/logilab/common/registry.py:422: in selected
    return winner(*args, **kwargs)
cubicweb_seda/views/patches.py:31: in __init__
    orig_autoform_init(self, *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/web/views/autoform.py:803: in __init__
    for formview in self.inlined_form_views():
.tox/py27/local/lib/python2.7/site-packages/cubicweb/web/views/autoform.py:911: in inlined_form_views
    formviews += self.inline_creation_form_view(rschema, ttype, role)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/web/views/autoform.py:1004: in inline_creation_form_view
    pform=self)
.tox/py27/local/lib/python2.7/site-packages/logilab/common/registry.py:368: in select
    obj =  self._select_best(self[__oid], *args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = {'cw.log.table': [<class 'cubicweb.web.views.cwsources.LogTable'>], 'cw.source...alTableTableView'>], 'owlabox': [<class 'cubicweb.web.views.owl.OWLABOXView'>]}
objects = [<class 'cubicweb.web.views.autoform.InlineEntityCreationFormView'>, <class 'cubicweb_seda.views.simplified.RuleRuleIn...fied.StartDateInlineEntityCreationFormView'>, <class 'cubicweb_seda.views.archiveunit.ComplexKeywordCreationFormView'>]
args = (<cubicweb.devtools.fake.FakeRequest object at 0x7f01155b2b50>,)
kwargs = {'etype': 'SEDASeqAccessRuleRule', 'peid': None, 'petype': <SEDAAccessRule ['created_by', 'container', 'seda_alt_acces...ate'] - ['identity']>, 'pform': <cubicweb_seda.views.simplified.RuleAutomaticEntityForm object at 0x7f0116c98c50>, ...}
score = 5
winners = [<class 'cubicweb_seda.views.simplified.RuleRuleInlineEntityCreationFormView'>, <class 'cubicweb_seda.views.archiveunit.ComplexKeywordCreationFormView'>]
obj = <class 'cubicweb_seda.views.archiveunit.ComplexKeywordCreationFormView'>
objectscore = 5, 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.simplified.RuleRuleInlineEntityCreationFormView'>, <class 'cubicweb_seda.views.archiveunit.ComplexKeywordCreationFormView'>]
E               (args: (<cubicweb.devtools.fake.FakeRequest object at 0x7f01155b2b50>,), kwargs: ['role', 'rtype', 'peid', 'etype', 'petype', 'pform'])

.tox/py27/local/lib/python2.7/site-packages/logilab/common/registry.py:414: SelectAmbiguity
____________________ SimplifiedFormsTC.test_rule_rule_form _____________________

self = <test_views.SimplifiedFormsTC testMethod=test_rule_rule_form>

    def test_rule_rule_form(self):
        with self.admin_access.web_request() as req:
            for rule_type in ('access', 'appraisal'):
                form = self.create_and_link_form(
>                   req, 'SEDASeq{0}RuleRule'.format(rule_type.capitalize()))

test/test_views.py:396: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/test_views.py:314: in create_and_link_form
    return self._create_etype_form(req, etype, **kwargs)
test/test_views.py:325: in _create_etype_form
    return self.vreg['forms'].select('edition', req, entity=entity, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/logilab/common/registry.py:368: in select
    obj =  self._select_best(self[__oid], *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/logilab/common/registry.py:417: in _select_best
    return self.selected(winners[0], args, kwargs)
.tox/py27/local/lib/python2.7/site-packages/logilab/common/registry.py:422: in selected
    return winner(*args, **kwargs)
cubicweb_seda/views/patches.py:31: in __init__
    orig_autoform_init(self, *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/web/views/autoform.py:803: in __init__
    for formview in self.inlined_form_views():
.tox/py27/local/lib/python2.7/site-packages/cubicweb/web/views/autoform.py:911: in inlined_form_views
    formviews += self.inline_creation_form_view(rschema, ttype, role)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/web/views/autoform.py:1004: in inline_creation_form_view
    pform=self)
.tox/py27/local/lib/python2.7/site-packages/logilab/common/registry.py:368: in select
    obj =  self._select_best(self[__oid], *args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = {'cw.log.table': [<class 'cubicweb.web.views.cwsources.LogTable'>], 'cw.source...alTableTableView'>], 'owlabox': [<class 'cubicweb.web.views.owl.OWLABOXView'>]}
objects = [<class 'cubicweb.web.views.autoform.InlineEntityCreationFormView'>, <class 'cubicweb_seda.views.simplified.RuleRuleIn...fied.StartDateInlineEntityCreationFormView'>, <class 'cubicweb_seda.views.archiveunit.ComplexKeywordCreationFormView'>]
args = (<cubicweb.devtools.fake.FakeRequest object at 0x7f01156fc190>,)
kwargs = {'etype': 'SEDAStartDate', 'peid': None, 'petype': <SEDASeqAccessRuleRule ['created_by', 'container', 'owned_by', 'cre..._start_date']>, 'pform': <cubicweb_seda.views.simplified.SeqRuleRuleAutomaticEntityForm object at 0x7f01156f3b90>, ...}
score = 5
winners = [<class 'cubicweb_seda.views.simplified.StartDateInlineEntityCreationFormView'>, <class 'cubicweb_seda.views.archiveunit.ComplexKeywordCreationFormView'>]
obj = <class 'cubicweb_seda.views.archiveunit.ComplexKeywordCreationFormView'>
objectscore = 5, 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.simplified.StartDateInlineEntityCreationFormView'>, <class 'cubicweb_seda.views.archiveunit.ComplexKeywordCreationFormView'>]
E               (args: (<cubicweb.devtools.fake.FakeRequest object at 0x7f01156fc190>,), kwargs: ['role', 'rtype', 'peid', 'etype', 'petype', 'pform'])

.tox/py27/local/lib/python2.7/site-packages/logilab/common/registry.py:414: SelectAmbiguity
____________ SimplifiedFormsTC.test_top_level_rule_form_simplified _____________

self = <test_views.SimplifiedFormsTC testMethod=test_top_level_rule_form_simplified>

    def test_top_level_rule_form_simplified(self):
        with self.admin_access.web_request() as req:
            for rule_type in ('appraisal', 'access'):
                with self.subTest(rule_type=rule_type):
                    form = self.create_and_link_form(
                        req, 'SEDA{0}Rule'.format(rule_type.capitalize()),
>                       linkto=self.transfer_eid)

test/test_views.py:376: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/test_views.py:314: in create_and_link_form
    return self._create_etype_form(req, etype, **kwargs)
test/test_views.py:325: in _create_etype_form
    return self.vreg['forms'].select('edition', req, entity=entity, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/logilab/common/registry.py:368: in select
    obj =  self._select_best(self[__oid], *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/logilab/common/registry.py:417: in _select_best
    return self.selected(winners[0], args, kwargs)
.tox/py27/local/lib/python2.7/site-packages/logilab/common/registry.py:422: in selected
    return winner(*args, **kwargs)
cubicweb_seda/views/patches.py:31: in __init__
    orig_autoform_init(self, *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/web/views/autoform.py:803: in __init__
    for formview in self.inlined_form_views():
.tox/py27/local/lib/python2.7/site-packages/cubicweb/web/views/autoform.py:911: in inlined_form_views
    formviews += self.inline_creation_form_view(rschema, ttype, role)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/web/views/autoform.py:1004: in inline_creation_form_view
    pform=self)
.tox/py27/local/lib/python2.7/site-packages/logilab/common/registry.py:368: in select
    obj =  self._select_best(self[__oid], *args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = {'cw.log.table': [<class 'cubicweb.web.views.cwsources.LogTable'>], 'cw.source...alTableTableView'>], 'owlabox': [<class 'cubicweb.web.views.owl.OWLABOXView'>]}
objects = [<class 'cubicweb.web.views.autoform.InlineEntityCreationFormView'>, <class 'cubicweb_seda.views.simplified.RuleRuleIn...fied.StartDateInlineEntityCreationFormView'>, <class 'cubicweb_seda.views.archiveunit.ComplexKeywordCreationFormView'>]
args = (<cubicweb.devtools.fake.FakeRequest object at 0x7f01165e2450>,)
kwargs = {'etype': 'SEDASeqAppraisalRuleRule', 'peid': None, 'petype': <SEDAAppraisalRule ['created_by', 'container', 'eid', 'c...ion'] - ['identity']>, 'pform': <cubicweb_seda.views.simplified.RuleAutomaticEntityForm object at 0x7f01157e2350>, ...}
score = 5
winners = [<class 'cubicweb_seda.views.simplified.RuleRuleInlineEntityCreationFormView'>, <class 'cubicweb_seda.views.archiveunit.ComplexKeywordCreationFormView'>]
obj = <class 'cubicweb_seda.views.archiveunit.ComplexKeywordCreationFormView'>
objectscore = 5, 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.simplified.RuleRuleInlineEntityCreationFormView'>, <class 'cubicweb_seda.views.archiveunit.ComplexKeywordCreationFormView'>]
E               (args: (<cubicweb.devtools.fake.FakeRequest object at 0x7f01165e2450>,), kwargs: ['role', 'rtype', 'peid', 'etype', 'petype', 'pform'])

.tox/py27/local/lib/python2.7/site-packages/logilab/common/registry.py:414: SelectAmbiguity
==================== 3 failed, 108 passed in 961.84 seconds ====================
ERROR: InvocationError: '<https://jenkins.logilab.org/job/cubicweb-seda/TOXENV=py27,distributions=debian_jessie/ws/.tox/py27/bin/python> -m pytest <https://jenkins.logilab.org/job/cubicweb-seda/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