Coverage tests have several errors

Bug #1503912 reported by Michael McCune
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Invalid
Undecided
Unassigned

Bug Description

while running the coverage tests there are several errors that prevent the tests from completing. these errors seem to be based around the functionality of the tools/coverage.sh script file.

during the first stage of the coverage tests, the script file will attempt to harvest the test results. this phase shows many errors relating to missing plugins. the failure of this phase causes the resulting phases in the script to fail as they return bad results from the output.

steps to reproduce:

1. clone a fresh sahara repo
2. run `tox -e cover`

results:

many errors (included in attached file) with the final result being

    Ran 926 tests in 32.171s (+0.191s)
    FAILED (id=2, failures=106, skips=5)
    error: testr failed (1)
    Allowed to introduce missing lines : 4
    Missing lines in master : to
    Missing lines in proposed change : to
    /home/mike/tmp/sahara/tools/cover.sh: line 52: [: to: integer expression expected
    Name Stmts Miss Cover
    Please write more unit tests, we should keep our test coverage :(
    ERROR: InvocationError: '/home/mike/tmp/sahara/tools/cover.sh'

recommend refactoring the coverage tests to be more resilient and fix these errors.

Revision history for this message
Michael McCune (mimccune) wrote :
Changed in sahara:
status: New → Triaged
milestone: none → mitaka-1
importance: Undecided → Medium
Revision history for this message
Sergey Reshetnyak (sreshetniak) wrote :

Workaround: need to remove old coverage reports:

$ rm -fr .coverage.*

Changed in sahara:
status: Triaged → Incomplete
Revision history for this message
Michael McCune (mimccune) wrote :

Sergey, i've done this from a fresh repo. even with those files removed i get the same results.

Changed in sahara:
milestone: mitaka-1 → mitaka-2
Changed in sahara:
milestone: mitaka-2 → next
Revision history for this message
Michael McCune (mimccune) wrote :

I am going to close this out as it is no longer reproducible.

Changed in sahara:
status: Incomplete → Invalid
Changed in sahara:
importance: Medium → Undecided
milestone: next → none
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.