"cover" job is broken using "coverage" package v4.0

Bug #1497897 reported by Valeriy Ponomaryov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Low
Valeriy Ponomaryov
Rally
Fix Released
Critical
Valeriy Ponomaryov

Bug Description

"cover" tox job is broken in CI now with following error:

2015-09-21 08:10:34.742 | cover create: /home/jenkins/workspace/manila-coverage/.tox/cover
2015-09-21 08:10:37.169 | cover installdeps: -r/home/jenkins/workspace/manila-coverage/requirements.txt, -r/home/jenkins/workspace/manila-coverage/test-requirements.txt
2015-09-21 08:13:27.578 | cover develop-inst: /home/jenkins/workspace/manila-coverage
2015-09-21 08:13:32.152 | cover installed: aioeventlet==0.4,alembic==0.8.2,amqp==1.4.6,anyjson==0.3.3,appdirs==1.4.0,Babel==2.0,bashate==0.3.1,cachetools==1.1.3,cliff==1.15.0,cmd2==0.6.8,contextlib2==0.4.0,coverage==4.0,ddt==1.0.0,debtcollector==0.8.0,decorator==4.0.2,docutils==0.12,ecdsa==0.13,eventlet==0.17.4,extras==0.0.3,fasteners==0.13.0,fixtures==1.3.1,flake8==2.1.0,funcsigs==0.4,futures==3.0.3,futurist==0.5.0,greenlet==0.4.9,hacking==0.9.6,httplib2==0.9.1,iso8601==0.1.10,Jinja2==2.8,keystoneauth1==1.1.0,keystonemiddleware==2.3.0,kombu==3.0.26,linecache2==1.0.0,lxml==3.4.4,Mako==1.0.2,-e git://git.openstack.org/openstack/manila@2153b5fa473af9e8bd207935eccd8dc47d7ad07a#egg=manila-dev,MarkupSafe==0.23,mccabe==0.2.1,mock==1.3.0,monotonic==0.3,mox3==0.10.0,msgpack-python==0.4.6,netaddr==0.7.18,netifaces==0.10.4,os-client-config==1.7.3,oslo.concurrency==2.6.0,oslo.config==2.4.0,oslo.context==0.6.0,oslo.db==2.6.0,oslo.i18n==2.6.0,oslo.log==1.11.0,oslo.messaging==2.5.0,oslo.middleware==2.8.0,oslo.policy==0.11.0,oslo.rootwrap==2.3.0,oslo.serialization==1.9.0,oslo.service==0.9.0,oslo.utils==2.5.0,oslosphinx==3.2.0,oslotest==1.11.0,paramiko==1.15.2,Paste==2.0.2,PasteDeploy==1.5.2,pbr==1.8.0,pep8==1.5.6,prettytable==0.7.2,psycopg2==2.6.1,pycadf==1.1.0,pycrypto==2.6.1,pyflakes==0.8.1,Pygments==2.0.2,PyMySQL==0.6.6,pyparsing==2.0.3,python-cinderclient==1.4.0,python-editor==0.4,python-keystoneclient==1.7.1,python-mimeparse==0.1.4,python-neutronclient==3.0.0,python-novaclient==2.29.0,python-subunit==1.1.0,pytz==2015.4,PyYAML==3.11,repoze.lru==0.6,requests==2.7.0,requests-mock==0.6.0,retrying==1.3.3,Routes==2.2,simplejson==3.8.0,six==1.9.0,Sphinx==1.2.3,SQLAlchemy==1.0.8,sqlalchemy-migrate==0.10.0,sqlparse==0.1.16,stevedore==1.8.0,Tempita==0.5.2,testrepository==0.0.20,testresources==0.2.7,testscenarios==0.5.0,testtools==1.8.0,traceback2==1.4.0,trollius==2.0,unicodecsv==0.14.0,unittest2==1.1.0,WebOb==1.4.1,wheel==0.24.0,wrapt==1.10.5
2015-09-21 08:13:32.152 | cover runtests: PYTHONHASHSEED='2935316480'
2015-09-21 08:13:32.153 | cover runtests: commands[0] | /home/jenkins/workspace/manila-coverage/tools/cover.sh
2015-09-21 08:13:32.167 | Warning: you are leaving 1 commit behind, not connected to
2015-09-21 08:13:32.167 | any of your branches:
2015-09-21 08:13:32.167 |
2015-09-21 08:13:32.168 | 2153b5f glusterfs: fix gluster-nfs export for volume mapped layout
2015-09-21 08:13:32.168 |
2015-09-21 08:13:32.168 | If you want to keep them by creating a new branch, this may be a good time
2015-09-21 08:13:32.168 | to do so with:
2015-09-21 08:13:32.168 |
2015-09-21 08:13:32.168 | git branch new_branch_name 2153b5f
2015-09-21 08:13:32.168 |
2015-09-21 08:13:32.168 | HEAD is now at 5704fa6... Merge "glusterfs_native: Hardwire Manila Host CN pattern"
2015-09-21 08:13:33.476 | running testr
2015-09-21 08:13:33.773 | running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
2015-09-21 08:13:33.773 | OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
2015-09-21 08:13:33.773 | OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
2015-09-21 08:13:33.773 | OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
2015-09-21 08:13:33.773 | ${PYTHON:-python} -m subunit.run discover -t ./ ./manila/tests --list
2015-09-21 08:13:33.773 | --- stdout ---
2015-09-21 08:13:33.773 | Unrecognized option '[report] ignore-errors=' in config file .coveragerc
2015-09-21 08:13:33.774 | Non-zero exit code (1) from test listing.
2015-09-21 08:13:33.774 | error: testr failed (3)
2015-09-21 08:13:33.862 | Previous HEAD position was 5704fa6... Merge "glusterfs_native: Hardwire Manila Host CN pattern"
2015-09-21 08:13:33.863 | HEAD is now at 2153b5f... glusterfs: fix gluster-nfs export for volume mapped layout
2015-09-21 08:13:35.066 | running testr
2015-09-21 08:13:35.275 | running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
2015-09-21 08:13:35.275 | OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
2015-09-21 08:13:35.275 | OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
2015-09-21 08:13:35.275 | OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
2015-09-21 08:13:35.276 | ${PYTHON:-python} -m subunit.run discover -t ./ ./manila/tests --list
2015-09-21 08:13:35.654 | --- stdout ---
2015-09-21 08:13:35.654 | Unrecognized option '[report] ignore-errors=' in config file .coveragerc
2015-09-21 08:13:35.654 | Non-zero exit code (1) from test listing.
2015-09-21 08:13:35.655 | error: testr failed (3)
2015-09-21 08:13:35.655 | /home/jenkins/workspace/manila-coverage/tools/cover.sh: line 47: '[report]: syntax error: operand expected (error token is "'[report]")
2015-09-21 08:13:35.655 | Allowed to introduce missing lines : 4
2015-09-21 08:13:35.655 | Missing lines in master : '[report]
2015-09-21 08:13:35.655 | Missing lines in proposed change : '[report]
2015-09-21 08:13:35.655 | /home/jenkins/workspace/manila-coverage/tools/cover.sh: line 53: [: -gt: unary operator expected
2015-09-21 08:13:35.656 | Unrecognized option '[report] ignore-errors=' in config file .coveragerc
2015-09-21 08:13:35.693 | Please write more unit tests, we should keep our test coverage :(
2015-09-21 08:13:35.693 | ERROR: InvocationError: '/home/jenkins/workspace/manila-coverage/tools/cover.sh'

Tags: ci
description: updated
summary: - manila "cover" job is broken
+ "cover" job is broken
description: updated
summary: - "cover" job is broken
+ "cover" job is broken using "cover" module v4.0
summary: - "cover" job is broken using "cover" module v4.0
+ "cover" job is broken using "coverage" package v4.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.openstack.org/225640

Changed in manila:
assignee: nobody → Valeriy Ponomaryov (vponomaryov)
status: New → In Progress
Changed in manila:
milestone: none → liberty-rc1
importance: Undecided → Low
Changed in rally:
status: New → Triaged
Changed in rally:
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/225640
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=47787402616e4df9e8be7b1899eff3264f50ed5e
Submitter: Jenkins
Branch: master

commit 47787402616e4df9e8be7b1899eff3264f50ed5e
Author: Valeriy Ponomaryov <email address hidden>
Date: Mon Sep 21 15:06:59 2015 +0300

    Fix 'cover' tox job

    Our 'cover' tox job does not work with release of 'coverage' package v4.0
    It fails on option 'ignore-errors' in config section '[report]'.

    So, replace usage of this option with CLI option '--ignore-errors'.

    Change-Id: I404e3cb63453b0245ac05b4d3cb5780e5b8b7f9a
    Closes-Bug: #1497897

Changed in manila:
status: In Progress → Fix Committed
Changed in rally:
assignee: nobody → Valeriy Ponomaryov (vponomaryov)
milestone: none → 0.1.0
Changed in rally:
status: Triaged → In Progress
Changed in murano:
importance: Undecided → High
status: New → Confirmed
milestone: none → liberty-rc1
no longer affects: murano
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to rally (master)

Reviewed: https://review.openstack.org/225670
Committed: https://git.openstack.org/cgit/openstack/rally/commit/?id=97a00ec7002fdbeea8471fea3e4e7ca132a99630
Submitter: Jenkins
Branch: master

commit 97a00ec7002fdbeea8471fea3e4e7ca132a99630
Author: Andrey Kurilin <email address hidden>
Date: Mon Sep 21 16:53:08 2015 +0300

    [COVERAGE] Turn off coverage

    We need to fix .coveragerc and turn off coverage in one patch, since
    cover.sh scrip launch check for previous patch which contain uncompatible
    with coverage 4.0 option.

    Also, fix for floating bug is required.

    Change-Id: I4cc49c01bc5bb633f08353762f963cb4343fc6cb
    Partial-Bug: #1497897

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on rally (master)

Change abandoned by Valeriy Ponomaryov (<email address hidden>) on branch: master
Review: https://review.openstack.org/225655

Thierry Carrez (ttx)
Changed in manila:
status: Fix Committed → Fix Released
tags: added: ci
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to rally (master)

Reviewed: https://review.openstack.org/225829
Committed: https://git.openstack.org/cgit/openstack/rally/commit/?id=f259c99f5af92385f2c497a26a2f49ffa32c28d4
Submitter: Jenkins
Branch: master

commit f259c99f5af92385f2c497a26a2f49ffa32c28d4
Author: Boris Pavlovic <email address hidden>
Date: Mon Sep 21 13:17:45 2015 -0700

    Fix & Restore cover job

    Change ignore-errors to ignore_errors which is needed
    by coverage 4.0

    Restore coverage job (run cover job)

    Closes-bug: #1497897

    Change-Id: I2df04cf6b239777cfc7b1bafac87aa4bf38d881c

Changed in rally:
status: In Progress → Fix Committed
Changed in rally:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in manila:
milestone: liberty-rc1 → 1.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.