Build failed in Jenkins: cubicweb-skos » py27 #60

jenkins.logilab.org noreply at logilab.org
Mon Feb 19 10:26:16 CET 2018


See <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/60/display/redirect?page=changes>

Changes:

[Denis Laxalde <denis.laxalde at logilab.fr>] Drop compat for pre-0.9 API

Closes #17133734.

[Denis Laxalde <denis.laxalde at logilab.fr>] Drop compat for cubicweb < 3.22 in import_skos_extentities()

Related to #17133718.

[Denis Laxalde <denis.laxalde at logilab.fr>] Drop compat for cubicweb < 3.21 in primary.rdf view

Related to #17133718.

------------------------------------------
Started by upstream project "cubicweb-skos" build number 60
originally caused by:
 Started by an SCM change
Building on master in workspace <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/>
[cubicweb-skos] $ hg showconfig paths.default
[cubicweb-skos] $ hg pull --rev 52b0b187e4eee0081cc49e218791ebe62b0d2bfc
pulling from http://hg.logilab.org/review/cubes/skos
searching for changes
adding changesets
adding manifests
adding file changes
added 3 changesets with 2 changes to 2 files
3 new obsolescence markers
obsoleted 3 changesets
(run 'hg update' to get a working copy)
[cubicweb-skos] $ hg update --clean --rev 52b0b187e4eee0081cc49e218791ebe62b0d2bfc
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
[cubicweb-skos] $ hg --config extensions.purge= clean --all
[cubicweb-skos] $ hg log --rev . --template {node}
[cubicweb-skos] $ hg log --rev . --template {rev}
[cubicweb-skos] $ hg log --rev 4f99cdc0e8f5e6eec90063f7523b5f9a1e67691e --template exists\n
exists
[cubicweb-skos] $ 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('52b0b187e4eee0081cc49e218791ebe62b0d2bfc') and not ancestors(4f99cdc0e8f5e6eec90063f7523b5f9a1e67691e)" --encoding UTF-8 --encodingmode replace
[cubicweb-master] $ hg showconfig paths.default
[cubicweb-master] $ hg pull --rev 46a8146f9703e6d02ac06b016c33020df6ffbb79
pulling from http://hg.logilab.org/master/cubicweb
no changes found
[cubicweb-master] $ hg update --clean --rev 46a8146f9703e6d02ac06b016c33020df6ffbb79
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
[cubicweb-master] $ hg --config extensions.purge= clean --all
[cubicweb-master] $ hg log --rev . --template {node}
[cubicweb-master] $ hg log --rev . --template {rev}
[py27] $ /bin/sh -xe /tmp/jenkins5644541420791469132.sh
+ + xargs -0 rm -rf
find . ( -name pgdb* -o -name tmpdb* ) -print0
[py27] $ /bin/sh -xe /tmp/jenkins9074491865482192096.sh
+ cd cubicweb-skos
+ PATH=/usr/lib/postgresql/9.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games tox --recreate
GLOB sdist-make: <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/setup.py>
py27 create: <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27>
py27 installdeps: -rtest-requirements.txt, pytest
py27 inst: <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/dist/cubicweb-skos-1.2.2.zip>
py27 installed: attrs==17.4.0,backports-abc==0.5,bzr-etckeeper==0.0.0,cffi==1.9.1,chardet==2.3.0,contextlib2==0.5.4,croniter==0.3.12,cryptography==1.7.1,cubicweb==3.26.0,cubicweb-bootstrap==1.3.0,cubicweb-relationwidget==0.4.1,cubicweb-skos==1.2.2,cwclientlib==0.4.1,cwtags==1.1.0,enum34==1.1.6,funcsigs==1.0.2,futures==3.0.5,hg-evolve==6.6.0,html2text==2018.1.9,httplib2==0.9.2,idna==2.2,ipaddress==1.0.17,isodate==0.6.0,Jinja2==2.9.4,keyring==10.1,keyrings.alt==1.3,linecache2==1.0.0,logilab-common==1.4.1,logilab-constraint==0.6.0,logilab-database==1.15.0,logilab-mtconverter==0.9.0,lxml==4.1.1,Markdown==2.6.11,MarkupSafe==0.23,mercurial==4.3.1,msgpack-python==0.4.8,mysqlclient==1.3.7,ndg-httpsclient==0.4.2,passlib==1.7.1,pluggy==0.6.0,ply==3.9,psutil==5.0.1,psycopg2==2.7.4,py==1.5.2,pyasn1==0.1.9,pycparser==2.17,pycrypto==2.6.1,pycurl==7.43.0,Pygments==2.2.0,pygobject==3.22.0,pyOpenSSL==16.2.0,pyparsing==2.2.0,pytest==3.4.0,python-apt==1.4.0b3,python-dateutil==2.5.3,python-debian==0.1.30,python-debianbts==2.6.1,pytz==2016.7,pyxdg==0.25,PyYAML==3.12,pyzmq==16.0.2,raven==6.1.0,rdflib==4.2.2,reportbug==6.6.3,requests==2.12.4,rql==0.34.2,salt==2016.11.8,SecretStorage==2.3.1,singledispatch==3.4.0.3,six==1.10.0,systemd-python==233,tornado==4.4.3,tox==2.5.0,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.19.1,virtualenv==15.1.0,yams==0.45.1,Yapps2==2.2.0
py27 runtests: PYTHONHASHSEED='2867684030'
py27 runtests: commands[0] | <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/bin/python> -m pytest <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/test>
============================= test session starts ==============================
platform linux2 -- Python 2.7.13, pytest-3.4.0, py-1.5.2, pluggy-0.6.0
rootdir: <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos,> inifile: tox.ini
collected 74 items

test/test_ccplugin.py .....                                              [  6%]
test/unittest_entities.py ..............ssss.....                        [ 37%]
test/unittest_hooks.py ....                                              [ 43%]
test/unittest_lcsv.py ....                                               [ 48%]
test/unittest_rdfio.py ..............ssss.s.                             [ 77%]
test/unittest_schema.py ......                                           [ 85%]
test/unittest_sobjects.py ......                                         [ 93%]
test/unittest_views.py ..FF.                                             [100%]

=================================== FAILURES ===================================
_________________________ ViewsTC.test_skos_list_view __________________________

self = <unittest_views.ViewsTC testMethod=test_skos_list_view>

    def test_skos_list_view(self):
>       self._test_skos_view('list.rdf', 2)

test/unittest_views.py:108: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/unittest_views.py:95: in _test_skos_view
    fobj.write(scheme.view(vid))
.tox/py27/local/lib/python2.7/site-packages/cubicweb/entity.py:648: in view
    return view.render(row=self.cw_row, col=self.cw_col, w=w, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/view.py:138: in render
    view_func(**context)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/view.py:346: in cell_call
    self.entity_call(self.cw_rset.get_entity(row, col), **kwargs)
.tox/py27/share/cubicweb/cubes/skos/views/rdf.py:49: in entity_call
    self._dump(graph)
.tox/py27/share/cubicweb/cubes/skos/views/rdf.py:54: in _dump
    self.w(fobj.getvalue())
.tox/py27/local/lib/python2.7/site-packages/cwtags/tagbuilder.py:193: in write
    return _write(self, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <UStringIO at 0x7ffac8d0a2b8>
value = '<?xml version="1.0" encoding="UTF-8"?>\n<rdf:RDF\n   xmlns:ns1="http://purl.org/dc/elements/1.1/"\n   xmlns:rdf="http.../www.w3.org/2004/02/skos/core#ConceptScheme"/>\n    <ns1:title>musique</ns1:title>\n  </rdf:Description>\n</rdf:RDF>\n'

    def write(self, value):
        assert isinstance(value, text_type), u"unicode required not %s : %s"\
>                                    % (type(value).__name__, repr(value))
E       AssertionError: unicode required not str : '<?xml version="1.0" encoding="UTF-8"?>\n<rdf:RDF\n   xmlns:ns1="http://purl.org/dc/elements/1.1/"\n   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"\n>\n  <rdf:Description rdf:about="http://testing.fr/cubicweb/932">\n    <rdf:type rdf:resource="http://www.w3.org/2004/02/skos/core#ConceptScheme"/>\n    <ns1:title>musique</ns1:title>\n  </rdf:Description>\n</rdf:RDF>\n'

.tox/py27/local/lib/python2.7/site-packages/cubicweb/utils.py:205: AssertionError
________________________ ViewsTC.test_skos_primary_view ________________________

self = <unittest_views.ViewsTC testMethod=test_skos_primary_view>

    def test_skos_primary_view(self):
>       self._test_skos_view('primary.rdf', 5)

test/unittest_views.py:105: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/unittest_views.py:95: in _test_skos_view
    fobj.write(scheme.view(vid))
.tox/py27/local/lib/python2.7/site-packages/cubicweb/entity.py:648: in view
    return view.render(row=self.cw_row, col=self.cw_col, w=w, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/view.py:138: in render
    view_func(**context)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/view.py:346: in cell_call
    self.entity_call(self.cw_rset.get_entity(row, col), **kwargs)
.tox/py27/share/cubicweb/cubes/skos/views/rdf.py:49: in entity_call
    self._dump(graph)
.tox/py27/share/cubicweb/cubes/skos/views/rdf.py:54: in _dump
    self.w(fobj.getvalue())
.tox/py27/local/lib/python2.7/site-packages/cwtags/tagbuilder.py:193: in write
    return _write(self, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <UStringIO at 0x7ffac8f8d940>
value = '<?xml version="1.0" encoding="UTF-8"?>\n<rdf:RDF\n   xmlns:ns1="http://www.w3.org/2004/02/skos/core#"\n   xmlns:ns2="...\n    <rdf:type rdf:resource="http://www.w3.org/2004/02/skos/core#ConceptScheme"/>\n  </rdf:Description>\n</rdf:RDF>\n'

    def write(self, value):
        assert isinstance(value, text_type), u"unicode required not %s : %s"\
>                                    % (type(value).__name__, repr(value))
E       AssertionError: unicode required not str : '<?xml version="1.0" encoding="UTF-8"?>\n<rdf:RDF\n   xmlns:ns1="http://www.w3.org/2004/02/skos/core#"\n   xmlns:ns2="http://purl.org/dc/elements/1.1/"\n   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"\n>\n  <rdf:Description rdf:about="http://testing.fr/cubicweb/933">\n    <rdf:type rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/>\n    <ns1:prefLabel xml:lang="en">pop</ns1:prefLabel>\n    <ns1:inScheme rdf:resource="http://testing.fr/cubicweb/932"/>\n  </rdf:Description>\n  <rdf:Description rdf:about="http://testing.fr/cubicweb/932">\n    <ns2:title>musique</ns2:title>\n    <rdf:type rdf:resource="http://www.w3.org/2004/02/skos/core#ConceptScheme"/>\n  </rdf:Description>\n</rdf:RDF>\n'

.tox/py27/local/lib/python2.7/site-packages/cubicweb/utils.py:205: AssertionError
=============================== warnings summary ===============================
test/test_ccplugin.py::ImportSkosDataCommandTC::test_lcsv
  <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/local/lib/python2.7/site-packages/psycopg2/__init__.py>:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
    """)

test/unittest_schema.py::SKOSSchemaTC::test_in_scheme_permissions_source
  <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/share/cubicweb/cubes/skos/sobjects.py>:216: DeprecationWarning: [3.23] this class is deprecated, use MetadataGenerator instead
    metagenerator = dataimport.MetaGenerator(cnx, source=source)

test/unittest_sobjects.py::SKOSXMLImportTC::test_datafeed_source
  <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/local/lib/python2.7/site-packages/logilab/database/sqlite.py>:180: DeprecationWarning: Sanitizing an input dictionary with str values, please check your data (key = 'cwuri')
    DeprecationWarning)
  <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/local/lib/python2.7/site-packages/logilab/database/sqlite.py>:180: DeprecationWarning: Sanitizing an input dictionary with str values, please check your data (key = 'q')
    DeprecationWarning)
  <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/share/cubicweb/cubes/skos/dataimport.py>:123: DeprecationWarning: [3.24] use entity_type(eid) instead
    if extentity.etype == 'Concept' and cnx.entity_metas(eid)['type'] == 'ExternalUri':
  <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/share/cubicweb/cubes/skos/dataimport.py>:41: DeprecationWarning: [3.24] use entity_type(eid) instead
    etype = cnx.entity_metas(eid)['type']

test/unittest_views.py::ViewsTC::test_lcsv_scheme_concepts_import
  <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/local/lib/python2.7/site-packages/logilab/database/sqlite.py>:180: DeprecationWarning: Sanitizing an input dictionary with str values, please check your data (key = 'definition')
    DeprecationWarning)

test/unittest_views.py::RelationWidgetTC::test_linkable_rset
  <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/local/lib/python2.7/site-packages/logilab/database/sqlite.py>:180: DeprecationWarning: Sanitizing an input dictionary with str values, please check your data (key = 'name')
    DeprecationWarning)
  <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/local/lib/python2.7/site-packages/logilab/database/sqlite.py>:180: DeprecationWarning: Sanitizing an input dictionary with str values, please check your data (key = 'lang')
    DeprecationWarning)

-- Docs: http://doc.pytest.org/en/latest/warnings.html
========= 2 failed, 63 passed, 9 skipped, 9 warnings in 73.93 seconds ==========
ERROR: InvocationError: '<https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/.tox/py27/bin/python> -m pytest <https://jenkins.logilab.org/job/cubicweb-skos/TOXENV=py27/ws/cubicweb-skos/test'>
___________________________________ summary ____________________________________
ERROR:   py27: commands failed
Build step 'Execute shell' marked build as failure



More information about the saem-devel mailing list