consoleText

download

20 Started by upstream project "cubes-datacat" build number 26
originally caused by:
Started by an SCM change
Building on master in workspace /var/lib/jenkins/jobs/cubes-datacat/workspace/TOXENV/py27
[py27] $ hg showconfig paths.default
[py27] $ hg pull --rev 6a558c726cbeb075bdd1608c8a392e820a4372b6
pulling from http://hg.logilab.org/review/cubes/datacat
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files (+1 heads)
2 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)
[py27] $ hg update --clean --rev 6a558c726cbeb075bdd1608c8a392e820a4372b6
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
[py27] $ hg --config extensions.purge= clean --all
[py27] $ hg log --rev . --template {node}
[py27] $ hg log --rev . --template {rev}
[py27] $ hg log --rev 7f5ff22e7e7ae114d56cc5d43a8df8602fcc3235
abort: hidden revision '7f5ff22e7e7ae114d56cc5d43a8df8602fcc3235'!
(use --hidden to access hidden revisions)
ERROR: Previously built revision 7f5ff22e7e7ae114d56cc5d43a8df8602fcc3235 is not known in this clone; unable to determine change log
[py27] $ /bin/bash -xe /tmp/hudson8454755678697920379.sh
+ find test/data -name 'tmpdb*' -delete
[py27] $ /bin/bash -xe /tmp/hudson1393014875653596856.sh
+ tox --recreate
GLOB sdist-make: /var/lib/jenkins/jobs/cubes-datacat/workspace/TOXENV/py27/setup.py
py27 create: /var/lib/jenkins/jobs/cubes-datacat/workspace/TOXENV/py27/.tox/py27
py27 installdeps: mock, pytest, https://hg.logilab.org/review/cubicweb/archive/0d1761dae55f.tar.bz2#egg=cubicweb, https://hg.logilab.org/review/logilab/common/archive/baff274e0015.tar.bz2#egg=logilab-common, https://hg.logilab.org/review/cubes/dataprocessing/archive/602206ebe1bf.tar.bz2#egg=cubicweb-dataprocessing
py27 inst: /var/lib/jenkins/jobs/cubes-datacat/workspace/TOXENV/py27/.tox/dist/cubicweb-datacat-0.8.4.zip
py27 installed: You are using pip version 7.1.2, however version 8.1.2 is available.,You should consider upgrading via the 'pip install --upgrade pip' command.,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.dev0,cubicweb-bootstrap==1.2.3,cubicweb-datacat==0.8.4,cubicweb-dataprocessing==0.2.1,cubicweb-file==1.18.0,cubicweb-relationwidget==0.3.3,cubicweb-skos==0.12.0,cubicweb-squareui==1.0.2,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.0,html2text==2016.5.29,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.8.3,mock==1.0.1,msgpack-python==0.4.2,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,pyflakes==0.8.1,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.1,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==2015.5.3,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,tox==2.3.1,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.9.1,virtualenv==13.1.2,wheel==0.24.0,xlrd==0.9.2,xlwt==0.7.5,yams==0.44.0,Yapps==2.2.0,Yapps2==2.2.0
py27 runtests: PYTHONHASHSEED='2484309594'
py27 runtests: commands[0] | /var/lib/jenkins/jobs/cubes-datacat/workspace/TOXENV/py27/.tox/py27/bin/python -m pytest
============================= test session starts ==============================
platform linux2 -- Python 2.7.9, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
rootdir: /var/lib/jenkins/jobs/cubes-datacat/workspace/TOXENV/py27, inifile: tox.ini
collected 37 items

test/test_datacat.py ..
test/unittest_entities.py .....
test/unittest_hooks.py .FF........
test/unittest_schema.py ....
test/unittest_sobjects.py .F.FF
test/unittest_views.py .......
test/unittest_vocabularies.py ...

=================================== FAILURES ===================================
____________________ ResourceFeedHooksTC.test_file_replaced ____________________

self = <py27.test.unittest_hooks.ResourceFeedHooksTC testMethod=test_file_replaced>

def test_file_replaced(self):
with self.admin_access.repo_cnx() as cnx:
mtype, = mediatypes_scheme(cnx, u'whatever')
tscript = transformation_script(cnx, 'pass', mtype)
resourcefeed = cnx.create_entity('ResourceFeed', url=u'a/b/c',
resource_feed_of=self.dataset_eid,
media_type=mtype,
transformation_script=tscript)
cnx.commit()
outfile1 = produce_file(cnx, resourcefeed,
> create_file(cnx, 'data'))

test/unittest_hooks.py:121:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/utils.py:27: in produce_file
cnx.commit() # transformation triggered in a hook.
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:188: in check_open
return func(cnx, *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:881: 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_dataprocessing/hooks.py:112: in precommit_event
iprocess.fire_workflow_transition('start')
.tox/py27/local/lib/python2.7/site-packages/cubicweb_dataprocessing/entities.py:70: in fire_workflow_transition
return iwf.fire_transition('wft_dataprocess_' + trname, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/entities/wfobjs.py:544: in fire_transition
tr = self._get_transition(tr)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <cubicweb.entities.wfobjs.IWorkflowableAdapter object at 0x7f9173915090>
tr = 'wft_dataprocess_start'

def _get_transition(self, tr):
> assert self.current_workflow
E AssertionError

.tox/py27/local/lib/python2.7/site-packages/cubicweb/entities/wfobjs.py:532: AssertionError
___________________ ResourceFeedHooksTC.test_linkto_dataset ____________________

self = <py27.test.unittest_hooks.ResourceFeedHooksTC testMethod=test_linkto_dataset>

def test_linkto_dataset(self):
with self.admin_access.repo_cnx() as cnx:
inputfile = create_file(cnx, 'data')
mtype, = mediatypes_scheme(cnx, u'whatever')
code = (
'from __future__ import print_function\n'
'print("plop", end="")\n'
)
tscript = transformation_script(cnx, code, mtype)
resourcefeed = cnx.create_entity('ResourceFeed', url=u'a/b/c',
media_type=mtype,
resource_feed_of=self.dataset_eid,
transformation_script=tscript)
cnx.commit()
> produce_file(cnx, resourcefeed, inputfile)

test/unittest_hooks.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/utils.py:27: in produce_file
cnx.commit() # transformation triggered in a hook.
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:188: in check_open
return func(cnx, *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:881: 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_dataprocessing/hooks.py:112: in precommit_event
iprocess.fire_workflow_transition('start')
.tox/py27/local/lib/python2.7/site-packages/cubicweb_dataprocessing/entities.py:70: in fire_workflow_transition
return iwf.fire_transition('wft_dataprocess_' + trname, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/entities/wfobjs.py:544: in fire_transition
tr = self._get_transition(tr)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <cubicweb.entities.wfobjs.IWorkflowableAdapter object at 0x7f91743738d0>
tr = 'wft_dataprocess_start'

def _get_transition(self, tr):
> assert self.current_workflow
E AssertionError

.tox/py27/local/lib/python2.7/site-packages/cubicweb/entities/wfobjs.py:532: AssertionError
____________________ ResourceFeedParserTC.test_file_update _____________________

self = <py27.test.unittest_sobjects.ResourceFeedParserTC testMethod=test_file_update>

def test_file_update(self):
"""Update a file between two datafeed pulls"""
with tempfile.NamedTemporaryFile() as tmpf:
tmpf.write('coucou')
tmpf.flush()
with self.admin_access.repo_cnx() as cnx:
mtype, = mediatypes_scheme(cnx, u'whatever')
vscript_eid = cnx.create_entity(
'ValidationScript',
name=u'validation script',
media_type=mtype).eid
create_file(cnx, 'pass',
reverse_implemented_by=vscript_eid)
# Transformation script and process.
tscript_eid = cnx.create_entity(
'TransformationScript',
name=u'transformation script',
media_type=mtype).eid
create_file(cnx, open(self.datapath('reverse.py')).read(),
data_name=u'reverse',
reverse_implemented_by=tscript_eid)
resourcefeed = cnx.create_entity(
'ResourceFeed', url=u'file://' + tmpf.name,
media_type=mtype,
validation_script=vscript_eid,
transformation_script=tscript_eid,
resource_feed_of=self.dataset_eid)
cnx.commit()
cwsource = resourcefeed.resource_feed_source[0]
> stats = self.pull_data(cwsource)

test/unittest_sobjects.py:140:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/unittest_sobjects.py:33: in pull_data
return cwsource_pull_data(self.repo, cwsource.eid)
.tox/py27/share/cubicweb/cubes/datacat/__init__.py:92: in cwsource_pull_data
stats = dfsource.pull_data(icnx, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/sources/datafeed.py:215: in pull_data
return self._pull_data(cnx, force, raise_on_error)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/sources/datafeed.py:246: in _pull_data
self.update_latest_retrieval(cnx)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/sources/datafeed.py:173: in update_latest_retrieval
cnx.commit()
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:188: in check_open
return func(cnx, *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:881: 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_dataprocessing/hooks.py:112: in precommit_event
iprocess.fire_workflow_transition('start')
.tox/py27/local/lib/python2.7/site-packages/cubicweb_dataprocessing/entities.py:70: in fire_workflow_transition
return iwf.fire_transition('wft_dataprocess_' + trname, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/entities/wfobjs.py:544: in fire_transition
tr = self._get_transition(tr)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <cubicweb.entities.wfobjs.IWorkflowableAdapter object at 0x7f9171c5a0d0>
tr = 'wft_dataprocess_start'

def _get_transition(self, tr):
> assert self.current_workflow
E AssertionError

.tox/py27/local/lib/python2.7/site-packages/cubicweb/entities/wfobjs.py:532: AssertionError
___________ ResourceFeedParserTC.test_multiple_resourcefeed_same_url ___________

self = <py27.test.unittest_sobjects.ResourceFeedParserTC testMethod=test_multiple_resourcefeed_same_url>

def test_multiple_resourcefeed_same_url(self):
url = u'file://' + self.datapath('resource.dat')
with self.admin_access.repo_cnx() as cnx:
textplain, textcsv = mediatypes_scheme(
cnx, u'text/plain', u'text/csv')
# Transformation scripts.
tscript_plain = cnx.create_entity(
'TransformationScript', name=u'text/plain',
media_type=textplain)
create_file(cnx, 'print "coucou"',
reverse_implemented_by=tscript_plain)
tscript_csv = cnx.create_entity(
'TransformationScript', name=u'transformation script',
media_type=textcsv)
create_file(cnx, open(self.datapath('cat.py')).read(),
data_name=u'cat.py',
reverse_implemented_by=tscript_csv)
# Resource feeds.
resource1 = cnx.create_entity(
'ResourceFeed', url=url,
media_type=textcsv,
resource_feed_of=self.dataset_eid,
transformation_script=tscript_csv)
cnx.commit()
cwsource = resource1.resource_feed_source[0]
resource2 = cnx.create_entity(
'ResourceFeed', url=url,
media_type=textplain,
resource_feed_of=self.dataset_eid,
transformation_script=tscript_plain)
cnx.commit()
assert resource2.resource_feed_source[0] == cwsource
assert len(cwsource.reverse_resource_feed_source), 2
self._check_value_error(cwsource)
tscript_plain.cw_set(media_type=textcsv)
resource2.cw_set(media_type=textcsv)
cnx.commit()
> stats = self.pull_data(cwsource)

test/unittest_sobjects.py:223:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/unittest_sobjects.py:33: in pull_data
return cwsource_pull_data(self.repo, cwsource.eid)
.tox/py27/share/cubicweb/cubes/datacat/__init__.py:92: in cwsource_pull_data
stats = dfsource.pull_data(icnx, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/sources/datafeed.py:215: in pull_data
return self._pull_data(cnx, force, raise_on_error)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/sources/datafeed.py:246: in _pull_data
self.update_latest_retrieval(cnx)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/sources/datafeed.py:173: in update_latest_retrieval
cnx.commit()
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:188: in check_open
return func(cnx, *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:881: 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_dataprocessing/hooks.py:112: in precommit_event
iprocess.fire_workflow_transition('start')
.tox/py27/local/lib/python2.7/site-packages/cubicweb_dataprocessing/entities.py:70: in fire_workflow_transition
return iwf.fire_transition('wft_dataprocess_' + trname, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/entities/wfobjs.py:544: in fire_transition
tr = self._get_transition(tr)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <cubicweb.entities.wfobjs.IWorkflowableAdapter object at 0x7f917225ac50>
tr = 'wft_dataprocess_start'

def _get_transition(self, tr):
> assert self.current_workflow
E AssertionError

.tox/py27/local/lib/python2.7/site-packages/cubicweb/entities/wfobjs.py:532: AssertionError
___________________ ResourceFeedParserTC.test_with_processes ___________________

self = <py27.test.unittest_sobjects.ResourceFeedParserTC testMethod=test_with_processes>

def test_with_processes(self):
url = u'file://' + self.datapath('resource.dat')
with self.admin_access.repo_cnx() as cnx:
mediatype, = mediatypes_scheme(cnx, u'text/csv')
# Validation script.
vscript_eid = cnx.create_entity(
'ValidationScript', name=u'validation script',
media_type=mediatype).eid
create_file(cnx, 'pass', reverse_implemented_by=vscript_eid)
# Transformation sequence.
tscript = cnx.create_entity(
'TransformationScript',
name=u'transformation script',
media_type=mediatype)
create_file(cnx, open(self.datapath('cat.py')).read(),
data_name=u'cat.py',
reverse_implemented_by=tscript)
# Create resource feed.
resourcefeed = cnx.create_entity(
'ResourceFeed', url=url,
media_type=mediatype,
resource_feed_of=self.dataset_eid,
validation_script=vscript_eid,
transformation_script=tscript)
cnx.commit()
cwsource = resourcefeed.resource_feed_source[0]
> stats = self.pull_data(cwsource)

test/unittest_sobjects.py:93:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/unittest_sobjects.py:33: in pull_data
return cwsource_pull_data(self.repo, cwsource.eid)
.tox/py27/share/cubicweb/cubes/datacat/__init__.py:92: in cwsource_pull_data
stats = dfsource.pull_data(icnx, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/sources/datafeed.py:215: in pull_data
return self._pull_data(cnx, force, raise_on_error)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/sources/datafeed.py:246: in _pull_data
self.update_latest_retrieval(cnx)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/sources/datafeed.py:173: in update_latest_retrieval
cnx.commit()
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:188: in check_open
return func(cnx, *args, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/server/session.py:881: 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_dataprocessing/hooks.py:112: in precommit_event
iprocess.fire_workflow_transition('start')
.tox/py27/local/lib/python2.7/site-packages/cubicweb_dataprocessing/entities.py:70: in fire_workflow_transition
return iwf.fire_transition('wft_dataprocess_' + trname, **kwargs)
.tox/py27/local/lib/python2.7/site-packages/cubicweb/entities/wfobjs.py:544: in fire_transition
tr = self._get_transition(tr)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <cubicweb.entities.wfobjs.IWorkflowableAdapter object at 0x7f9174670950>
tr = 'wft_dataprocess_start'

def _get_transition(self, tr):
> assert self.current_workflow
E AssertionError

.tox/py27/local/lib/python2.7/site-packages/cubicweb/entities/wfobjs.py:532: AssertionError
===================== 5 failed, 32 passed in 63.11 seconds =====================
ERROR: InvocationError: '/var/lib/jenkins/jobs/cubes-datacat/workspace/TOXENV/py27/.tox/py27/bin/python -m pytest'
___________________________________ summary ____________________________________
ERROR: py27: commands failed
Build step 'Execute shell' marked build as failure
Sending e-mails to: dlaxalde@logilab.fr yvote@logilab.fr
[PostBuildScript] - Execution post build scripts.
[py27] $ /bin/bash -xe /tmp/hudson8688965293701817139.sh
+ /var/lib/jenkins/scripts/notify_forge_apycot.py cwo cubicweb-datacat 6a558c726cbe http://jenkins.logilab.fr/job/cubes-datacat/TOXENV=py27/26/ --status failure
<br/>

log from execution
download