consoleText

download

20 Started by upstream project "cubes-skos" build number 162
originally caused by:
Started by an SCM change
Building on master in workspace /var/lib/jenkins/jobs/cubes-skos/workspace/TOXENV/py27-dev
[cubicweb-skos] $ hg showconfig paths.default
[cubicweb-skos] $ hg pull --rev 88bcc97158487f475753e88342e5b8df44ff8585
pulling from http://hg.logilab.org/review/cubes/skos
searching for changes
adding changesets
adding manifests
adding file changes
added 3 changesets with 4 changes to 8 files (+1 heads)
3 new obsolescence markers
(run 'hg heads .' to see heads, 'hg merge' to merge)
working directory parent is obsolete!
(use "hg evolve" to update to its successor)
[cubicweb-skos] $ hg update --clean --rev 88bcc97158487f475753e88342e5b8df44ff8585
10 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 94c45f2ddf30e64d4cd84bb8e78dec8f428c5d14 --template exists\n
abort: hidden revision '94c45f2ddf30e64d4cd84bb8e78dec8f428c5d14'!
(use --hidden to access hidden revisions)
ERROR: Previously built revision 94c45f2ddf30e64d4cd84bb8e78dec8f428c5d14 is not known in this clone; unable to determine change log
[cubicweb-master] $ hg showconfig paths.default
[cubicweb-master] $ hg pull --rev 98061b2b7cf1eb4b267fabafe67541508a74ee1f
pulling from http://hg.logilab.org/master/cubicweb
no changes found
40 new obsolescence markers
[cubicweb-master] $ hg update --clean --rev 98061b2b7cf1eb4b267fabafe67541508a74ee1f
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}
[cubicweb-master] $ hg log --rev 98061b2b7cf1eb4b267fabafe67541508a74ee1f --template exists\n
exists
[cubicweb-master] $ 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('98061b2b7cf1eb4b267fabafe67541508a74ee1f') and not ancestors(98061b2b7cf1eb4b267fabafe67541508a74ee1f)" --encoding UTF-8 --encodingmode replace
[py27-dev] $ /bin/bash -xe /tmp/hudson7426361536299017838.sh
+ find . '(' -name 'pgdb*' -o -name 'tmpdb*' ')' -print0
+ xargs -0 rm -rf
[py27-dev] $ /bin/bash -xe /tmp/hudson3891967285001336997.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: /var/lib/jenkins/jobs/cubes-skos/workspace/TOXENV/py27-dev/cubicweb-skos/setup.py
py27-dev create: /var/lib/jenkins/jobs/cubes-skos/workspace/TOXENV/py27-dev/cubicweb-skos/.tox/py27-dev
py27-dev installdeps: hg+http://hg.logilab.org/master/cubicweb@default#egg=cubicweb, -rtest-requirements.txt, pytest
py27-dev inst: /var/lib/jenkins/jobs/cubes-skos/workspace/TOXENV/py27-dev/cubicweb-skos/.tox/dist/cubicweb-skos-1.0.0.zip
py27-dev installed: beautifulsoup4==4.3.2,boto==2.34.0,bzr-etckeeper==0.0.0,cffi==0.8.6,characteristic==0.1.0,chardet==2.3.0,Cheetah==2.4.4,cloud-init==0.7.6,colorama==0.3.2,configobj==5.0.6,coverage==3.7.1,croniter==0.3.4,cryptography==0.6.1,cubicweb==3.24.0,cubicweb-bootstrap==1.2.3,cubicweb-relationwidget==0.4.0,cubicweb-skos==1.0.0,cwclientlib==0.4.1,cwtags==1.1.0,Cython==0.21.1,decorator==3.4.0,docutils==0.12,ecdsa==0.11,euca2ools==3.1.0,GDAL==1.10.1,hg-evolve==5.4.1,html2text==2016.9.19,html5lib==0.999,isodate==0.5.0,Jinja2==2.7.3,joblib==0.8.3,jsonpatch==1.3,jsonpointer==1.0,linecache2==1.0.0,logilab-common==1.2.2,logilab-constraint==0.6.0,logilab-database==1.15.0,logilab-mtconverter==0.9.0,lxml==3.4.0,M2Crypto==0.21.1,Mako==1.0.0,Markdown==2.5.1,MarkupSafe==0.23,matplotlib==1.4.2,mccabe==0.2.1,mercurial==3.9.1,mock==1.0.1,msgpack-python==0.4.2,mysqlclient==1.3.7,nose==1.3.4,numexpr==2.4,numpy==1.8.2,oauth==1.0.1,openpyxl==1.7.0,pandas==0.14.1,paramiko==1.15.1,passlib==1.6.5,pep8==1.5.7,Pillow==2.6.1,pluggy==0.3.1,ply==3.4,prettytable==0.7.2,psycopg2==2.5.4,py==1.4.31,pyasn1==0.1.7,pyasn1-modules==0.0.5,pycparser==2.10,pycrypto==2.6.1,pycurl==7.19.5,Pygments==2.0.1,pyinotify==0.9.4,pyOpenSSL==0.14,pyparsing==2.0.3,pyserial==2.6,pysqlite==2.6.3,pytest==3.0.4,python-apt==0.9.3.12,python-augeas==0.4.1,python-dateutil==2.2,python-jenkins==0.2.1,python-ldap==2.4.10,python-yapps==2.1.1,python3-ldap==0.9.4.2,pytz==2012rc0,PyYAML==3.11,pyzmq==14.4.0,rdflib==4.1.2,requestbuilder==0.2.3,requests==2.4.3,roman==2.0.0,rql==0.34.0,rubber==1.1,salt==2016.3.0,scikit-learn==0.14.1,scipy==0.14.0,service-identity==1.0.0,Shapely==1.4.3,simplejson==3.6.5,SimpleTAL==4.1,six==1.8.0,SPARQLWrapper==1.6.0,Sphinx==1.2.3,statsmodels==0.4.2,tables==3.1.1,tornado==4.2,tox==2.3.1,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.9.1,virtualenv==15.0.3,xlrd==0.9.2,xlwt==0.7.5,yams==0.44.0,Yapps==2.2.0,Yapps2==2.2.0
py27-dev runtests: PYTHONHASHSEED='3654255814'
py27-dev runtests: commands[0] | /var/lib/jenkins/jobs/cubes-skos/workspace/TOXENV/py27-dev/cubicweb-skos/.tox/py27-dev/bin/python -m pytest /var/lib/jenkins/jobs/cubes-skos/workspace/TOXENV/py27-dev/cubicweb-skos/test
============================= test session starts ==============================
platform linux2 -- Python 2.7.9, pytest-3.0.4, py-1.4.31, pluggy-0.4.0
rootdir: /var/lib/jenkins/jobs/cubes-skos/workspace/TOXENV/py27-dev/cubicweb-skos, inifile: tox.ini
collected 71 items

test/test_ccplugin.py ...
test/unittest_entities.py .........F.FF..........
test/unittest_hooks.py ....
test/unittest_lcsv.py ...
test/unittest_rdfio.py .....................
test/unittest_schema.py F.....
test/unittest_sobjects.py .FFF..
test/unittest_views.py .....

=================================== FAILURES ===================================
___________________________ ConceptTC.test_dc_title ____________________________

self = <unittest_entities.ConceptTC testMethod=test_dc_title>

def test_dc_title(self):
with self.admin_access.client_cnx() as cnx:
c1 = cnx.entity_from_eid(self.c1_eid)
> self.assertEqual(c1.dc_title(), u'hip')

test/unittest_entities.py:251:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py27-dev/share/cubicweb/cubes/skos/entities.py:135: in dc_title
return self.label()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <Entity Concept 933 [] at 140660321350032>, language_code = None
default_language_code = 'en'

def label(self, language_code=None, default_language_code='en'):
if language_code is None:
> language_code = self._cw.lang
E AttributeError: 'Connection' object has no attribute 'lang'

.tox/py27-dev/share/cubicweb/cubes/skos/entities.py:156: AttributeError
____________ ConceptTC.test_label_language_nopreferred_in_language _____________

self = <unittest_entities.ConceptTC testMethod=test_label_language_nopreferred_in_language>

def test_label_language_nopreferred_in_language(self):
"""No label in user's language, a random one is selected."""
with self.admin_access.repo_cnx() as cnx:
concept = cnx.find('Concept').one()
cnx.execute('SET L language_code "oups" WHERE L language_code "en"')
cnx.commit()
concept.cw_clear_all_caches()
> self.assertIn(concept.label(),
[x.label for x in concept.reverse_label_of])

test/unittest_entities.py:275:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <Entity Concept 933 [] at 140660316686032>, language_code = None
default_language_code = 'en'

def label(self, language_code=None, default_language_code='en'):
if language_code is None:
> language_code = self._cw.lang
E AttributeError: 'Connection' object has no attribute 'lang'

.tox/py27-dev/share/cubicweb/cubes/skos/entities.py:156: AttributeError
___________________ ConceptTC.test_label_language_preferred ____________________

self = <unittest_entities.ConceptTC testMethod=test_label_language_preferred>

def test_label_language_preferred(self):
"""The preferred label matching user's language is selected."""
with self.admin_access.repo_cnx() as cnx:
concept = cnx.find('Concept').one()
# Should be the preferred English label.
> self.assertEqual(concept.label(), u'hip')

test/unittest_entities.py:266:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <Entity Concept 933 [] at 140660316080272>, language_code = None
default_language_code = 'en'

def label(self, language_code=None, default_language_code='en'):
if language_code is None:
> language_code = self._cw.lang
E AttributeError: 'Connection' object has no attribute 'lang'

.tox/py27-dev/share/cubicweb/cubes/skos/entities.py:156: AttributeError
_________________ SKOSSchemaTC.test_concept_label_no_language __________________

self = <unittest_schema.SKOSSchemaTC testMethod=test_concept_label_no_language>

def test_concept_label_no_language(self):
with self.admin_access.repo_cnx() as cnx:
scheme = cnx.create_entity('ConceptScheme', title=u'scheme')
concept = scheme.add_concept(u'a concept', language_code=None)
cnx.commit()
concept.cw_clear_all_caches()
self.assertEqual(concept.labels, {None: 'a concept'})
> self.assertEqual(concept.label(), 'a concept')

test/unittest_schema.py:33:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <Entity Concept 933 [] at 140660346439568>, language_code = None
default_language_code = 'en'

def label(self, language_code=None, default_language_code='en'):
if language_code is None:
> language_code = self._cw.lang
E AttributeError: 'Connection' object has no attribute 'lang'

.tox/py27-dev/share/cubicweb/cubes/skos/entities.py:156: AttributeError
_____________________ SKOSXMLImportTC.test_datafeed_source _____________________

self = <unittest_sobjects.SKOSXMLImportTC testMethod=test_datafeed_source>

def test_datafeed_source(self):
# test creation upon initial pull
self.pull_source('mythesaurus')
> self.check_siaf_shortened(u'mythesaurus')

test/unittest_sobjects.py:146:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/unittest_sobjects.py:135: in check_siaf_shortened
self.assertEqual(concept.label(), 'administration')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <Entity Concept 1249 [] at 140660341280400>, language_code = None
default_language_code = 'en'

def label(self, language_code=None, default_language_code='en'):
if language_code is None:
> language_code = self._cw.lang
E AttributeError: 'Connection' object has no attribute 'lang'

.tox/py27-dev/share/cubicweb/cubes/skos/entities.py:156: AttributeError
----------------------------- Captured stdout call -----------------------------
Building xmlparser for database tmpdb
________________________ SKOSXMLImportTC.test_oddities _________________________

self = <unittest_sobjects.SKOSXMLImportTC testMethod=test_oddities>

def test_oddities(self):
with self.admin_access.repo_cnx() as cnx:
cnx.call_service('rdf.skos.import',
stream=open(self.datapath('oddities.xml')),
rdf_format='xml')
scheme = cnx.execute('ConceptScheme X WHERE '
'X cwuri "http://data.culture.fr/thesaurus/Matiere"').one()
self.assertEqual(scheme.dc_title(), scheme.cwuri)
concept = scheme.reverse_in_scheme[0]
> self.assertEqual(concept.label(), u'communications')

test/unittest_sobjects.py:169:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <Entity Concept 945 [u'cwuri', u'modification_date'] at 140660347590928>
language_code = None, default_language_code = 'en'

def label(self, language_code=None, default_language_code='en'):
if language_code is None:
> language_code = self._cw.lang
E AttributeError: 'Connection' object has no attribute 'lang'

.tox/py27-dev/share/cubicweb/cubes/skos/entities.py:156: AttributeError
_________________________ SKOSXMLImportTC.test_service _________________________

self = <unittest_sobjects.SKOSXMLImportTC testMethod=test_service>

def test_service(self):
with self.admin_access.repo_cnx() as cnx:
scheme_uris = cnx.call_service(
'rdf.skos.import',
stream=open(self.datapath('siaf_matieres_shortened.xml')),
rdf_format='xml')[-1]
self.assertEqual(scheme_uris,
['http://data.culture.fr/thesaurus/resource/ark:/67717/Matiere'])
> self.check_siaf_shortened(u'system')

test/unittest_sobjects.py:158:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/unittest_sobjects.py:135: in check_siaf_shortened
self.assertEqual(concept.label(), 'administration')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <Entity Concept 1045 [] at 140660347683024>, language_code = None
default_language_code = 'en'

def label(self, language_code=None, default_language_code='en'):
if language_code is None:
> language_code = self._cw.lang
E AttributeError: 'Connection' object has no attribute 'lang'

.tox/py27-dev/share/cubicweb/cubes/skos/entities.py:156: AttributeError
===================== 7 failed, 64 passed in 76.04 seconds =====================
ERROR: InvocationError: '/var/lib/jenkins/jobs/cubes-skos/workspace/TOXENV/py27-dev/cubicweb-skos/.tox/py27-dev/bin/python -m pytest /var/lib/jenkins/jobs/cubes-skos/workspace/TOXENV/py27-dev/cubicweb-skos/test'
___________________________________ summary ____________________________________
ERROR: py27-dev: commands failed
Build step 'Execute shell' marked build as failure
[PostBuildScript] - Execution post build scripts.
[py27-dev] $ /bin/bash -xe /tmp/hudson4945958665557820658.sh
+ /var/lib/jenkins/scripts/notify_forge_apycot.py cwo cubicweb-skos 88bcc9715848 http://jenkins.logilab.fr/job/cubes-skos/TOXENV=py27-dev/162/ --status failure
<br/>

log from execution
download