consoleText

download

20 Started by upstream project "cubes-tracker" build number 7
originally caused by:
Started by an SCM change
Building on master in workspace /var/lib/jenkins/jobs/cubes-tracker/workspace/TOXENV/py27
[py27] $ hg showconfig paths.default
[py27] $ hg pull --rev 08932a86eb9a6e715d52686ac312871df1066188
pulling from http://hg.logilab.org/review/cubes/tracker
searching for changes
adding changesets
adding manifests
adding file changes
added 3 changesets with 18 changes to 11 files
7 new obsolescence markers
(run 'hg update' to get a working copy)
[py27] $ hg update --clean --rev 08932a86eb9a6e715d52686ac312871df1066188
11 files updated, 0 files merged, 7 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 f3ab459e5860f8ef9670657662e697a59c616528 --template exists\n
exists
[py27] $ 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('08932a86eb9a6e715d52686ac312871df1066188') and not ancestors(f3ab459e5860f8ef9670657662e697a59c616528)" --encoding UTF-8 --encodingmode replace
[py27] $ /bin/bash -xe /tmp/hudson5094148331808910891.sh
+ find . '(' -name 'pgdb*' -o -name 'tmpdb*' ')' -print0
+ xargs -0 rm -rf
[py27] $ /bin/bash -xe /tmp/hudson2389048359981408632.sh
+ 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-tracker/workspace/TOXENV/py27/setup.py
py27 create: /var/lib/jenkins/jobs/cubes-tracker/workspace/TOXENV/py27/.tox/py27
py27 installdeps: pytest
py27 inst: /var/lib/jenkins/jobs/cubes-tracker/workspace/TOXENV/py27/.tox/dist/cubicweb-tracker-1.18.0.zip
py27 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.2,cubicweb-iprogress==0.2.0,cubicweb-localperms==0.3.2,cubicweb-tracker==1.18.0,cwclientlib==0.4.1,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.3.0,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.1,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.1,Yapps2==2.2.0
py27 runtests: PYTHONHASHSEED='1937202050'
py27 runtests: commands[0] | /var/lib/jenkins/jobs/cubes-tracker/workspace/TOXENV/py27/.tox/py27/bin/python -m pytest /var/lib/jenkins/jobs/cubes-tracker/workspace/TOXENV/py27/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-tracker/workspace/TOXENV/py27, inifile: tox.ini
collected 54 items

test/test_tracker.py ....
test/unittest_notification.py .....
test/unittest_security.py .................
test/unittest_tracker.py .......F....................

=================================== FAILURES ===================================
_______________ VersionTC.test_possible_actions_and_transitions ________________

self = <unittest_tracker.VersionTC testMethod=test_possible_actions_and_transitions>

def test_possible_actions_and_transitions(self):
with self.admin_access.web_request() as req:
req.create_entity('CWGroup', name=u'totogroup')
self.create_user(req.cnx, 'toto', ('users', 'totogroup'))
self.grant_permission(req.cnx, self.cubicweb, 'totogroup', 'client', 'soumettre sur cubicweb')
req.cnx.commit()
# one planned version
rset = req.execute('Any X WHERE X is Version, X num "0.0.0"')
v = req.entity_from_eid(self.v)
wf = v.cw_adapt_to('IWorkflowable').current_workflow
self.assertListEqual(
sorted(self.pactions(req, rset)),
[
('addrelated', actions.AddRelatedActions),
('addticket', version.VersionAddTicketAction),
('copy', actions.CopyAction),
('delete', actions.DeleteAction),
('edit', actions.ModifyAction),
('managepermission', actions.ManagePermissionsAction),
('pvrestexport', document.ProjectVersionExportAction),
('workflow', workflow.WorkflowActions),
])
self.assertListEqual(
self.action_submenu(req, rset, 'addrelated'),
[])
self.assertListEqual(
sorted(self.action_submenu(req, rset, 'workflow')),
[
(u'start development',
u'http://testing.fr/cubicweb/project/cubicweb/0.0.0?treid=%s&vid=statuschange'
% wf.transition_by_name('start development').eid),
(u'view workflow', u'http://testing.fr/cubicweb/workflow/%s' % wf.eid),
])

with self.new_access('toto').web_request() as req:
rset = req.execute('Any X WHERE X is Version, X num "0.0.0"')
self.assertListEqual(
sorted(self.pactions_without_edit(req, rset)),
[
('addrelated', actions.AddRelatedActions),
('addticket', version.VersionAddTicketAction),
('copy', actions.CopyAction),
('pvrestexport', document.ProjectVersionExportAction),
('workflow', workflow.WorkflowActions),
])
self.assertListEqual(
self.action_submenu(req, rset, 'addrelated'),
[])
self.assertListEqual(
self.action_submenu(req, rset, 'workflow'),
[])
self._test_anon_actions(False)

with self.admin_access.web_request() as req:
# one in dev version
v = req.entity_from_eid(self.v)
wf = v.cw_adapt_to('IWorkflowable').current_workflow
v.cw_adapt_to('IWorkflowable').fire_transition('start development')
req.cnx.commit()
rset = req.execute('Any X WHERE X is Version, X num "0.0.0"')
self.assertListEqual(
sorted(self.pactions(req, rset)),
[
('addrelated', actions.AddRelatedActions),
('addticket', version.VersionAddTicketAction),
('copy', actions.CopyAction),
('delete', actions.DeleteAction),
('edit', actions.ModifyAction),
('managepermission', actions.ManagePermissionsAction),
('pvrestexport', document.ProjectVersionExportAction),
('workflow', workflow.WorkflowActions),
])
self.assertListEqual(
self.action_submenu(req, rset, 'addrelated'),
[])
self.assertListEqual(
sorted(self.action_submenu(req, rset, 'workflow')),
[
(u'publish',
u'http://testing.fr/cubicweb/project/cubicweb/0.0.0?treid=%s&vid=statuschange'
% wf.transition_by_name('publish').eid),
(u'ready',
u'http://testing.fr/cubicweb/project/cubicweb/0.0.0?treid=%s&vid=statuschange'
% wf.transition_by_name('ready').eid),
(u'stop development',
u'http://testing.fr/cubicweb/project/cubicweb/0.0.0?treid=%s&vid=statuschange'
% wf.transition_by_name('stop development').eid),
(u'view history',
u'http://testing.fr/cubicweb/project/cubicweb/0.0.0?vid=wfhistory'),
(u'view workflow',
u'http://testing.fr/cubicweb/workflow/%s' % wf.eid),
])

with self.new_access('toto').web_request() as req:
rset = req.execute('Any X WHERE X is Version, X num "0.0.0"')
self.assertListEqual(
sorted(self.pactions(req, rset)),
[
('addrelated', actions.AddRelatedActions),
('copy', actions.CopyAction),
('pvrestexport', document.ProjectVersionExportAction),
('workflow', workflow.WorkflowActions),
])
self.assertListEqual(
self.action_submenu(req, rset, 'addrelated'),
[])
self.assertListEqual(
self.action_submenu(req, rset, 'workflow'),
[
(u'view history',
u'http://testing.fr/cubicweb/project/cubicweb/0.0.0?vid=wfhistory'),
])
self._test_anon_actions()

with self.admin_access.web_request() as req:
# one in ready version
v = req.entity_from_eid(self.v)
wf = v.cw_adapt_to('IWorkflowable').current_workflow
v.cw_adapt_to('IWorkflowable').fire_transition('ready')
req.cnx.commit()
rset = req.execute('Any X WHERE X is Version, X num "0.0.0"')
self.assertListEqual(
sorted(self.pactions(req, rset)),
[
('addrelated', actions.AddRelatedActions),
('copy', actions.CopyAction),
('delete', actions.DeleteAction),
('edit', actions.ModifyAction),
('managepermission', actions.ManagePermissionsAction),
('pvrestexport', document.ProjectVersionExportAction),
('workflow', workflow.WorkflowActions),
])
self.assertListEqual(
self.action_submenu(req, rset, 'addrelated'),
[])
self.assertListEqual(
sorted(self.action_submenu(req, rset, 'workflow')),
[
(u'publish',
u'http://testing.fr/cubicweb/project/cubicweb/0.0.0?treid=%s&vid=statuschange'
% wf.transition_by_name('publish').eid),
(u'view history',
u'http://testing.fr/cubicweb/project/cubicweb/0.0.0?vid=wfhistory'),
(u'view workflow',
u'http://testing.fr/cubicweb/workflow/%s' % wf.eid),
])

with self.new_access('toto').web_request() as req:
rset = req.execute('Any X WHERE X is Version, X num "0.0.0"')
self.assertListEqual(
sorted(self.pactions(req, rset)),
[
('addrelated', actions.AddRelatedActions),
('copy', actions.CopyAction),
('pvrestexport', document.ProjectVersionExportAction),
('workflow', workflow.WorkflowActions),
])
self.assertListEqual(
self.action_submenu(req, rset, 'addrelated'),
[])
self.assertListEqual(
self.action_submenu(req, rset, 'workflow'),
[
(u'view history',
u'http://testing.fr/cubicweb/project/cubicweb/0.0.0?vid=wfhistory'),
])
self._test_anon_actions()

with self.admin_access.client_cnx() as cnx:
# one in published version
v = cnx.entity_from_eid(self.v)
v.cw_adapt_to('IWorkflowable').fire_transition('publish')
cnx.commit()
with self.admin_access.web_request() as req:
rset = req.execute('Any X WHERE X is Version, X num "0.0.0"')
self.assertListEqual(
sorted(self.pactions(req, rset)),
[
('addrelated', actions.AddRelatedActions),
('copy', actions.CopyAction),
('delete', actions.DeleteAction),
('edit', actions.ModifyAction),
('managepermission', actions.ManagePermissionsAction),
('pvrestexport', document.ProjectVersionExportAction),
> ('submitbug', version.VersionSubmitBugAction),
('workflow', workflow.WorkflowActions),
])
E AttributeError: 'module' object has no attribute 'VersionSubmitBugAction'

test/unittest_tracker.py:342: AttributeError
==================== 1 failed, 53 passed in 100.62 seconds =====================
ERROR: InvocationError: '/var/lib/jenkins/jobs/cubes-tracker/workspace/TOXENV/py27/.tox/py27/bin/python -m pytest /var/lib/jenkins/jobs/cubes-tracker/workspace/TOXENV/py27/test'
___________________________________ summary ____________________________________
ERROR: py27: commands failed
Build step 'Execute shell' marked build as failure
Sending e-mails to: syt@logilab.fr
[PostBuildScript] - Execution post build scripts.
[py27] $ /bin/bash -xe /tmp/hudson7871976131942272873.sh
+ /var/lib/jenkins/scripts/notify_forge_apycot.py cwo cubicweb-tracker 08932a86eb9a http://jenkins.logilab.fr/job/cubes-tracker/TOXENV=py27/7/ --status failure
<br/>

log from execution
download