#2511 closed defect (fixed)

failure to submit coverage to coveralls.io

Reported by: daira Owned by: warner
Priority: normal Milestone: soon (release n/a)
Component: dev-infrastructure Version: n/a
Keywords: coveralls.io coverage travis-ci Cc:
Launchpad Bug:

Description

Submitting coverage from Travis-CI builds currently fails with the following error:

$ coveralls
Submitting coverage to coveralls.io...

Traceback (most recent call last):
  File "/home/travis/virtualenv/python2.7.9/bin/coveralls", line 11, in <module>
    sys.exit(main())

  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/coveralls/cli.py", line 49, in main
    result = coverallz.wear()

  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/coveralls/api.py", line 73, in wear
    data = self.create_data()

  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/coveralls/api.py", line 122, in create_data
    self._data = {'source_files': self.get_coverage()}

  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/coveralls/api.py", line 130, in get_coverage
    workman._harvest_data()

AttributeError: 'Coverage' object has no attribute '_harvest_data'

Change History (8)

comment:2 Changed at 2015-10-01T00:50:59Z by Daira Hopwood <daira@…>

  • Owner set to Daira Hopwood <daira@…>
  • Resolution set to fixed
  • Status changed from new to closed

In 4c55e68ff86266fb6f22be8625d94a5a8405c037/trunk:

.travis.yml: pin coverage version to 3.7.1. fixes ticket:2511

Signed-off-by: Daira Hopwood <daira@…>

comment:3 follow-up: Changed at 2015-10-13T21:32:05Z by warner

coveralls-1.0 (released 17-oct-2015) claims to support coverage-4.0 . Mind if I remove the coverage pin and see if it submits data to coveralls.io successfully?

comment:4 in reply to: ↑ 3 Changed at 2015-10-16T00:09:25Z by daira

Replying to warner:

coveralls-1.0 (released 17-oct-2015) claims to support coverage-4.0 . Mind if I remove the coverage pin and see if it submits data to coveralls.io successfully?

No, please do.

comment:5 Changed at 2015-10-16T00:10:07Z by daira

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:6 Changed at 2015-10-16T00:10:22Z by daira

  • Owner changed from Daira Hopwood <daira@…> to warner
  • Status changed from reopened to new

comment:7 Changed at 2015-10-17T04:53:18Z by Brian Warner <warner@…>

In 98732cd12c39ef38bb2d810d571bcbce3797adf5/trunk:

.travis.yml: unpin coverage, current one ought to work

refs ticket:2511

comment:8 Changed at 2015-10-17T05:17:44Z by warner

  • Resolution set to fixed
  • Status changed from new to closed

Yup, that seems to work: https://coveralls.io/builds/3869552

Note: See TracTickets for help on using tickets.