Build failed in Jenkins: cubicweb-sherpa » py27,debian_jessie #43

jenkins.logilab.org noreply at logilab.org
Thu Mar 9 10:10:12 CET 2017


https://jenkins.logilab.org/job/cubicweb-sherpa/TOXENV=py27,distributions=debian_jessie/43/------------------------------------------
Started by upstream project "cubicweb-sherpa" build number 43
originally caused by:
 Started by an SCM change
Building remotely on docker-slave-2f0ec9c13859 (debian_jessie) in workspace <https://jenkins.logilab.org/job/cubicweb-sherpa/TOXENV=py27,distributions=debian_jessie/ws/>
$ hg clone --rev fc00172aaa22ce94bd2b797095d45f8d044b7d87 --noupdate http://hg.logilab.org/review/cubes/sherpa <https://jenkins.logilab.org/job/cubicweb-sherpa/TOXENV=py27,distributions=debian_jessie/ws/>
adding changesets
adding manifests
adding file changes
added 127 changesets with 334 changes to 134 files
[debian_jessie] $ hg update --rev fc00172aaa22ce94bd2b797095d45f8d044b7d87
75 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 380ad940dfb357f8de903e7a8137150c5048460a --template exists\n
abort: unknown revision '380ad940dfb357f8de903e7a8137150c5048460a'!
ERROR: Previously built revision 380ad940dfb357f8de903e7a8137150c5048460a is not known in this clone; unable to determine change log
[debian_jessie] $ /bin/sh -xe /tmp/hudson1623731976880550542.sh
+ find . ( -name pgdb* -o -name tmpdb* ) -print0
+ xargs -0 rm -rf
[debian_jessie] $ /bin/sh -xe /tmp/hudson6234627313922522842.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-sherpa/TOXENV=py27,distributions=debian_jessie/ws/setup.py>
py27 create: <https://jenkins.logilab.org/job/cubicweb-sherpa/TOXENV=py27,distributions=debian_jessie/ws/.tox/py27>
py27 installdeps: -rdev-requirements.txt
py27 inst: <https://jenkins.logilab.org/job/cubicweb-sherpa/TOXENV=py27,distributions=debian_jessie/ws/.tox/dist/cubicweb-sherpa-0.7.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-forgotpwd==0.7.1,cubicweb-geocoding==0.2.1,cubicweb-prov==0.4.0,cubicweb-registration==0.7.0,cubicweb-relationwidget==0.4.0,cubicweb-rememberme==1.0.0,cubicweb-seda==0.8.0,cubicweb-sherpa==0.7.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,Jinja2==2.9.5,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,MarkupSafe==1.0,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,pycrypto==2.6.1,pykerberos==1.1.5,pyparsing==2.2.0,pytest==3.0.6,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='3640710602'
py27 runtests: commands[0] | <https://jenkins.logilab.org/job/cubicweb-sherpa/TOXENV=py27,distributions=debian_jessie/ws/.tox/py27/bin/python> -m pytest <https://jenkins.logilab.org/job/cubicweb-sherpa/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-sherpa/TOXENV=py27,distributions=debian_jessie/ws/,> inifile: 
collected 9 items

test/test_management.py .
test/test_security.py ...F
test/test_templates.py ....

=================================== FAILURES ===================================
_________________ SecurityTC.test_add_read_update_delete_unit __________________

self = <test_security.SecurityTC testMethod=test_add_read_update_delete_unit>

    def test_add_read_update_delete_unit(self):
        with self.new_access('bob').cnx() as cnx:
            au = cnx.create_entity('SEDAArchiveUnit', user_annotation=u'title')
            alt = cnx.create_entity('SEDAAltArchiveUnitArchiveUnitRefId',
                                    reverse_seda_alt_archive_unit_archive_unit_ref_id=au)
            last = cnx.create_entity(
                'SEDASeqAltArchiveUnitArchiveUnitRefIdManagement',
                reverse_seda_seq_alt_archive_unit_archive_unit_ref_id_management=alt)
            cnx.create_entity('SEDATitle', seda_title=last)
>           cnx.commit()

test/test_security.py:87: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.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/security.py:87: in precommit_event
    rdef.check_perm(cnx, action, fromeid=eidfrom, toeid=eidto)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <relation SEDAArchiveUnit seda_alt_archive_unit_archive_unit_ref_id SEDAAltArchiveUnitArchiveUnitRefId at @0x7f67d0347950>
_cw = <cubicweb.server.session.Connection object at 0x7f67d0d39a10>
action = 'add', kwargs = {'fromeid': 6127, 'toeid': 6128}, DBG = False
groups = frozenset(['managers'])

    def check_perm(self, _cw, action, **kwargs):
        # NB: _cw may be a server transaction or a request object.
        #
        # check user is in an allowed group, if so that's enough internal
        # transactions should always stop there
        DBG = False
        if server.DEBUG & server.DBG_SEC:
            if action in server._SECURITY_CAPS:
                _self_str = str(self)
                if server._SECURITY_ITEMS:
                    if any(item in _self_str for item in server._SECURITY_ITEMS):
                        DBG = True
                else:
                    DBG = True
        groups = self.get_groups(action)
        if _cw.user.matching_groups(groups):
            if DBG:
                print('check_perm: %r %r: user matches %s' % (action, _self_str, groups))
            return
        # if 'owners' in allowed groups, check if the user actually owns this
        # object, if so that's enough
        #
        # NB: give _cw to user.owns since user is not be bound to a transaction on
        # the repository side
        if 'owners' in groups and (
                kwargs.get('creating')
                or ('eid' in kwargs and _cw.user.owns(kwargs['eid']))):
            if DBG:
                print('check_perm: %r %r: user is owner or creation time' %
                      (action, _self_str))
            return
        # else if there is some rql expressions, check them
        if DBG:
            print('check_perm: %r %r %s' %
                  (action, _self_str, [(rqlexpr, kwargs, rqlexpr.check(_cw, **kwargs))
                                       for rqlexpr in self.get_rqlexprs(action)]))
        if any(rqlexpr.check(_cw, **kwargs)
               for rqlexpr in self.get_rqlexprs(action)):
            return
>       raise Unauthorized(action, str(self))
E       Unauthorized: You are not allowed to perform add operation on relation SEDAArchiveUnit seda_alt_archive_unit_archive_unit_ref_id SEDAAltArchiveUnitArchiveUnitRefId

.tox/py27/local/lib/python2.7/site-packages/cubicweb/schema.py:732: Unauthorized
===================== 1 failed, 8 passed in 160.35 seconds =====================
ERROR: InvocationError: '<https://jenkins.logilab.org/job/cubicweb-sherpa/TOXENV=py27,distributions=debian_jessie/ws/.tox/py27/bin/python> -m pytest <https://jenkins.logilab.org/job/cubicweb-sherpa/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