yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #55238
[Bug 1613256] Re: 'No data to report.' error in coverage report
Reviewed: https://review.openstack.org/355716
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=d177395e75faaf0fb2af679567532b8466c965c8
Submitter: Jenkins
Branch: master
commit d177395e75faaf0fb2af679567532b8466c965c8
Author: Takashi NATSUME <natsume.takashi@xxxxxxxxxxxxx>
Date: Tue Aug 16 13:23:18 2016 +0900
Fix 'No data to report' error
Remove 2 unnecessary commands in 'testenv:cover' of tox.ini.
HTML coverage reports can be generated in 'cover' directory
by 'python setup.py testr --coverage' only
without the removed commands.
Change-Id: Ib9539f845aad29269a9cb07db719b22e35f7bbeb
Closes-Bug: #1613256
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1613256
Title:
'No data to report.' error in coverage report
Status in OpenStack Compute (nova):
Fix Released
Bug description:
When executing 'tox -e cover', a 'No data to report.' error occurs.
But coverage report (HTML) is generated in 'cover' directory.
'python setup.py testr --coverage --testr-args=' generates coverage report (HTML).
Then 'coverage combine' command truncates the contents of '.coverage' file.
So 'coverage html --include=nova/* -d covhtml -i' fails with 'No data to report.'
stack@devstack-master:/tmp/nova$ tox -e cover
cover develop-inst-noop: /tmp/nova
cover installed: alembic==0.8.7,amqp==1.4.9,anyjson==0.3.3,appdirs==1.4.0,Babel==2.3.4,bandit==1.0.1,boto==2.42.0,cachetools==1.1.6,castellan==0.4.0,cffi==1.7.0,cliff==2.1.0,cmd2==0.6.8,colorama==0.3.7,contextlib2==0.5.4,coverage==4.2,cryptography==1.4,debtcollector==1.8.0,decorator==4.0.10,docutils==0.12,dogpile.cache==0.6.1,enum34==1.1.6,eventlet==0.19.0,extras==1.0.0,fasteners==0.14.1,fixtures==3.0.0,flake8==2.2.4,funcsigs==1.0.2,functools32==3.2.3.post2,futures==3.0.5,futurist==0.17.0,gabbi==1.24.0,gitdb==0.6.4,GitPython==2.0.8,greenlet==0.4.10,hacking==0.10.2,httplib2==0.9.2,idna==2.1,ipaddress==1.0.16,iso8601==0.1.11,Jinja2==2.8,jsonpatch==1.14,jsonpath-rw==1.4.0,jsonpath-rw-ext==1.0.0,jsonpointer==1.10,jsonschema==2.5.1,keystoneauth1==2.11.1,keystonemiddleware==4.8.0,kombu==3.0.35,linecache2==1.0.0,lxml==3.6.1,Mako==1.0.4,MarkupSafe==0.23,mccabe==0.2.1,microversion-parse==0.1.4,mock==2.0.0,monotonic==1.2,mox3==0.18.0,msgpack-python==0.4.8,netaddr==0.7.18,netifaces==0.10.4,-e git+https://git.openstack.org/openstack/nova.git@15e536518ae1a366c8a8b15d9183072050e4b6f2#egg=nova,numpy==1.11.1,openstackdocstheme==1.4.0,openstacksdk==0.9.1,os-api-ref==0.4.0,os-brick==1.5.0,os-client-config==1.18.0,os-testr==0.7.0,os-vif==1.1.0,os-win==1.1.0,osc-lib==1.0.0,oslo.cache==1.12.0,oslo.concurrency==3.13.0,oslo.config==3.15.0,oslo.context==2.8.0,oslo.db==4.11.0,oslo.i18n==3.8.0,oslo.log==3.14.0,oslo.messaging==5.7.0,oslo.middleware==3.17.0,oslo.policy==1.14.0,oslo.privsep==1.11.0,oslo.reports==1.14.0,oslo.rootwrap==5.1.0,oslo.serialization==2.13.0,oslo.service==1.14.0,oslo.utils==3.16.0,oslo.versionedobjects==1.15.0,oslo.vmware==2.13.0,oslosphinx==4.7.0,oslotest==2.8.0,paramiko==2.0.2,Paste==2.0.3,PasteDeploy==1.5.2,pbr==1.10.0,pep8==1.5.7,pika==0.10.0,pika-pool==0.1.3,ply==3.8,positional==1.1.1,prettytable==0.7.2,psutil==1.2.1,psycopg2==2.6.2,py==1.4.31,pyasn1==0.1.9,pycadf==2.3.0,pycparser==2.14,pyflakes==0.8.1,Pygments==2.1.3,pyinotify==0.9.6,PyMySQL==0.7.6,pyparsing==2.1.6,pytest==2.9.2,python-barbicanclient==4.0.1,python-cinderclient==1.8.0,python-dateutil==2.5.3,python-editor==1.0.1,python-glanceclient==2.3.0,python-ironicclient==1.6.0,python-keystoneclient==3.4.0,python-mimeparse==1.5.2,python-neutronclient==5.0.0,python-novaclient==5.0.0,python-openstackclient==2.6.0,python-subunit==1.2.0,pytz==2016.6.1,PyYAML==3.11,reno==1.8.0,repoze.lru==0.6,requests==2.11.0,requests-mock==1.0.0,requestsexceptions==1.1.3,retrying==1.3.3,rfc3986==0.3.1,Routes==2.3.1,simplejson==3.8.2,six==1.10.0,smmap==0.9.0,Sphinx==1.2.3,SQLAlchemy==1.0.14,sqlalchemy-migrate==0.10.0,sqlparse==0.2.0,stevedore==1.17.0,suds-jurko==0.6,tempest-lib==1.0.0,Tempita==0.5.2,testrepository==0.0.20,testresources==2.0.1,testscenarios==0.5.0,testtools==2.2.0,traceback2==1.4.0,unicodecsv==0.14.1,unittest2==1.1.0,urllib3==1.16,warlock==1.2.0,WebOb==1.6.1,websockify==0.8.0,wrapt==1.10.8,wsgi-intercept==1.3.1
cover runtests: PYTHONHASHSEED='119558979'
cover runtests: commands[0] | coverage erase
cover runtests: commands[1] | python setup.py testr --coverage --testr-args=
running testr
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./nova/tests} --list
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./nova/tests} --load-list /tmp/tmpmgVZr0
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./nova/tests} --load-list /tmp/tmp6hkZ32
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./nova/tests} --load-list /tmp/tmpNGYzRv
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./nova/tests} --load-list /tmp/tmpClFmq5
Version 1 is deprecated, use alternative version 2 instead.
Version 1 is deprecated, use alternative version 2 instead.
Version 1 is deprecated, use alternative version 2 instead.
Version 1 is deprecated, use alternative version 2 instead.
Version 1 is deprecated, use alternative version 2 instead.
Version 1 is deprecated, use alternative version 2 instead.
Version 1 is deprecated, use alternative version 2 instead.
Version 1 is deprecated, use alternative version 2 instead.
Ran 14059 tests in 760.788s (-24.622s)
PASSED (id=1, skips=57)
cover runtests: commands[2] | coverage combine
cover runtests: commands[3] | coverage html --include=nova/* -d covhtml -i
No data to report.
ERROR: InvocationError: '/tmp/nova/.tox/cover/bin/coverage html --include=nova/* -d covhtml -i'
_______________________________________________________________________________ summary ________________________________________________________________________________
ERROR: cover: commands failed
stack@devstack-master:/tmp/nova$ ls cover
coverage_html.js
index.html
jquery.debounce.min.js
jquery.hotkeys.js
jquery.isonscreen.js
jquery.min.js
jquery.tablesorter.min.js
keybd_closed.png
keybd_open.png
nova___init___py.html
nova_api___init___py.html
nova_api_auth_py.html
nova_api_compute_req_id_py.html
(snipped...)
[Environment]
OS: Ubuntu 14.04.1 LTS (64bit)
nova master (commit 15e536518ae1a366c8a8b15d9183072050e4b6f2)
coverage version 4.2
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1613256/+subscriptions
References