coverallsapp / orb

Coveralls CircleCI Orb
https://circleci.com/orbs/registry/orb/coveralls/coveralls
MIT License
2 stars 16 forks source link

Failing to upload to coveralls in a java based application #12

Closed lfoppiano closed 3 years ago

lfoppiano commented 3 years ago

Hi, I'm trying to get this ORB working on a java project built with gradle and I'm trying to upload the jacoco XML report to coveralls. One thing that is not mentioned in the documentation is that node is required for running this plugin, so it should be installed manually (in my case I'm using a java docker container).

I can correctly export a report in XML however this ORB fails to upload the report to coveralls. The error is as follows:

/usr/local/bin/coveralls -> /usr/local/lib/node_modules/coveralls/bin/coveralls.js
+ coveralls@3.1.1
added 55 packages from 80 contributors in 1.913s
[error] "2021-08-09T23:46:41.504Z"  'error from lcovParse: ' 'Failed to parse string'
[error] "2021-08-09T23:46:41.507Z"  'input: ' '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>[...]

/usr/local/lib/node_modules/coveralls/bin/coveralls.js:19
      throw err;
      ^
Failed to parse string

I'm attaching the full log file. output.log

The project is here: https://github.com/kermitt2/grobid-quantities/tree/feature/coveralls

Thank you in advance

lfoppiano commented 3 years ago

I solved the problem by not using this plugin.