Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daily test runs error on publishing code coverage #3515

Closed
calebcartwright opened this issue Jun 2, 2019 · 4 comments
Closed

Daily test runs error on publishing code coverage #3515

calebcartwright opened this issue Jun 2, 2019 · 4 comments

Comments

@calebcartwright
Copy link
Member

calebcartwright commented Jun 2, 2019

See https://circleci.com/gh/badges/daily-tests/368 for example

...

too many non-option arguments: got 1, maximum of 0
[error] "2019-06-01T15:51:29.091Z"  'error from lcovParse: ' 'Failed to parse string'
[error] "2019-06-01T15:51:29.092Z"  'input: ' ''
[error] "2019-06-01T15:51:29.093Z"  'error from convertLcovToCoveralls'

/home/circleci/project/node_modules/coveralls/bin/coveralls.js:18
        throw err;
        ^
Failed to parse string
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! daily-tests@0.1.0 coveralls: `cd shields && node_modules/.bin/nyc report --reporter=text-lcov report | CIRCLE_SHA1=$(git rev-parse --verify HEAD) ../node_modules/.bin/coveralls`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the daily-tests@0.1.0 coveralls script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/circleci/.npm/_logs/2019-06-01T15_51_29_100Z-debug.log
Exited with code 1
@paulmelnikow
Copy link
Member

paulmelnikow commented Jun 2, 2019

node_modules/.bin/nyc report --reporter=text-lcov report

Wondering if that should be

node_modules/.bin/nyc report --reporter=text-lcov

(I think it might be trying to read a report from a file called report, though it's hard to tell from that error message.)

@calebcartwright
Copy link
Member Author

Believe this was introduced when we bumped nyc from v14.0.0 to v14.1.1 in #3470

I think you are right @paulmelnikow that the final report option is probably the issue. Seems that the upgrade in nyc included a change (istanbuljs/nyc#1100) that I think is why we're now seeing an error on that.

I'm going to try removing that report and see if the resolves

@calebcartwright
Copy link
Member Author

Yup, fix in badges/daily-tests#7 working as expected by removing the last report option

@calebcartwright
Copy link
Member Author

Fixed in badges/daily-tests@428d9d9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants