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

jenkins.logilab.org noreply at logilab.org
Wed Mar 8 22:44:00 CET 2017


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

[Sylvain Thénault <sylvain.thenault at logilab.fr>] [schema] Add security for archive units

It's a first class object that deserves attention because it may be both a
container (when root of a component archive unit) and a contained entity (when
used within a transfer).

Related to #16684441

------------------------------------------
Started by upstream project "cubicweb-sherpa" build number 41
originally caused by:
 Started by an SCM change
Building remotely on docker-slave-cbae62df8412 (debian_jessie) in workspace <https://jenkins.logilab.org/job/cubicweb-sherpa/TOXENV=py27,distributions=debian_jessie/ws/>
$ hg clone --rev f11de71e23fc42b17ce1a0e5806087ac52184086 --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 128 changesets with 336 changes to 133 files
[debian_jessie] $ hg update --rev f11de71e23fc42b17ce1a0e5806087ac52184086
74 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 f907c3952a6153311a657546c6b686e118c184b9 --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('f11de71e23fc42b17ce1a0e5806087ac52184086') and not ancestors(f907c3952a6153311a657546c6b686e118c184b9)" --encoding UTF-8 --encodingmode replace
[debian_jessie] $ /bin/sh -xe /tmp/hudson1335127309995723422.sh
+ find . ( -name pgdb* -o -name tmpdb* ) -print0
+ xargs -0 rm -rf
[debian_jessie] $ /bin/sh -xe /tmp/hudson3134528329436514998.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='2134537649'
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 F
test/test_security.py Fsss
test/test_templates.py Fsss

=================================== FAILURES ===================================
___________________________ ActionTC.test_management ___________________________
.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/testlib.py:449: in setUp
    self._init_repo()
.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/testlib.py:377: in _init_repo
    db_handler.build_db_cache(self.test_db_id, self.pre_setup_database)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py:478: in build_db_cache
    self.init_test_database()
.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py:796: in init_test_database
    init_config=self.init_config)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/__init__.py:225: in init_repository
    repo = Repository(config, vreg=vreg)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/repository.py:189: in __init__
    self.init_cnxset_pool()
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/repository.py:236: in init_cnxset_pool
    self.set_schema(config.load_schema(expand_cubes=True))
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/serverconfig.py:326: in load_schema
    schema = CubicWebSchemaLoader().load(self, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/schema.py:1408: in load
    return super(CubicWebSchemaLoader, self).load(config, path=path, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/schema.py:1374: in load
    path, config.appid, register_base_types=False, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/yams/reader.py:121: in load
    post_build_callbacks=self.post_build_callbacks)
.tox/py27/local/lib/python2.7/site-packages/yams/reader.py:77: in fill_schema
    cb(schema)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

schema = <cubicweb.schema.CubicWebSchema object at 0x7f2a4577de50>

    def post_build_callback(schema):
>       from cubicweb_compound import CompositeGraph, lib
E       ImportError: cannot import name lib

cubicweb_sherpa/schema.py:30: ImportError
----------------------------- Captured stderr call -----------------------------
<https://jenkins.logilab.org/job/cubicweb-sherpa/TOXENV=py27,distributions=debian_jessie/ws/.tox/py27/share/cubicweb/cubes/rememberme/schema.py>:22: DeprecationWarning: [3.22] Use 'from cubicweb import _'
  description=_('unique identifier for the user'))
________________ SecurityTC.test_add_read_update_delete_record _________________

self = <test_security.SecurityTC testMethod=test_add_read_update_delete_record>

    def setUp(self):
>       super(SecurityTC, self).setUp()

test/test_security.py:34: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/testlib.py:449: in setUp
    self._init_repo()
.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/testlib.py:377: in _init_repo
    db_handler.build_db_cache(self.test_db_id, self.pre_setup_database)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py:478: in build_db_cache
    self.init_test_database()
.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py:796: in init_test_database
    init_config=self.init_config)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/__init__.py:225: in init_repository
    repo = Repository(config, vreg=vreg)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/repository.py:189: in __init__
    self.init_cnxset_pool()
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/repository.py:236: in init_cnxset_pool
    self.set_schema(config.load_schema(expand_cubes=True))
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/serverconfig.py:326: in load_schema
    schema = CubicWebSchemaLoader().load(self, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/schema.py:1408: in load
    return super(CubicWebSchemaLoader, self).load(config, path=path, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/schema.py:1374: in load
    path, config.appid, register_base_types=False, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/yams/reader.py:121: in load
    post_build_callbacks=self.post_build_callbacks)
.tox/py27/local/lib/python2.7/site-packages/yams/reader.py:77: in fill_schema
    cb(schema)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

schema = <cubicweb.schema.CubicWebSchema object at 0x7f2a3f4cf550>

    def post_build_callback(schema):
>       from cubicweb_compound import CompositeGraph, lib
E       ImportError: cannot import name lib

cubicweb_sherpa/schema.py:30: ImportError
----------------------------- Captured stderr call -----------------------------
<https://jenkins.logilab.org/job/cubicweb-sherpa/TOXENV=py27,distributions=debian_jessie/ws/.tox/py27/share/cubicweb/cubes/rememberme/schema.py>:22: DeprecationWarning: [3.22] Use 'from cubicweb import _'
  description=_('unique identifier for the user'))
______________________ ActivePathTC.test_archive_transfer ______________________
.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/testlib.py:449: in setUp
    self._init_repo()
.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/testlib.py:377: in _init_repo
    db_handler.build_db_cache(self.test_db_id, self.pre_setup_database)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py:478: in build_db_cache
    self.init_test_database()
.tox/py27/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py:796: in init_test_database
    init_config=self.init_config)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/__init__.py:225: in init_repository
    repo = Repository(config, vreg=vreg)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/repository.py:189: in __init__
    self.init_cnxset_pool()
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/repository.py:236: in init_cnxset_pool
    self.set_schema(config.load_schema(expand_cubes=True))
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/serverconfig.py:326: in load_schema
    schema = CubicWebSchemaLoader().load(self, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/schema.py:1408: in load
    return super(CubicWebSchemaLoader, self).load(config, path=path, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/schema.py:1374: in load
    path, config.appid, register_base_types=False, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/yams/reader.py:121: in load
    post_build_callbacks=self.post_build_callbacks)
.tox/py27/local/lib/python2.7/site-packages/yams/reader.py:77: in fill_schema
    cb(schema)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

schema = <cubicweb.schema.CubicWebSchema object at 0x7f2a3f9e72d0>

    def post_build_callback(schema):
>       from cubicweb_compound import CompositeGraph, lib
E       ImportError: cannot import name lib

cubicweb_sherpa/schema.py:30: ImportError
----------------------------- Captured stderr call -----------------------------
<https://jenkins.logilab.org/job/cubicweb-sherpa/TOXENV=py27,distributions=debian_jessie/ws/.tox/py27/share/cubicweb/cubes/rememberme/schema.py>:22: DeprecationWarning: [3.22] Use 'from cubicweb import _'
  description=_('unique identifier for the user'))
===================== 3 failed, 6 skipped in 7.30 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