coverallsapp / coverage-reporter

Self-contained, universal coverage uploader binary. Under development.
https://coveralls.io
MIT License
45 stars 14 forks source link

ArgumentError: Invalid Int64: "18446744073709551615" when parsing lcov file #72

Closed josegonzalez closed 1 year ago

josegonzalez commented 1 year ago

What was wrong?

I switched from the 1.0.6 version of the Coveralls CircleCI Orb to the latest 2.1.1 version and started getting the above in my CI jobs. The new orb uses this project instead of the old node-coveralls project.

It appears that because the parsing of the file uses an Int64 for something (not sure what tbh), it fails to parse some number.

Logs

coveralls-linux.tar.gz: OK
Parsing args
Dry run - 0
Reporting coverage
+ ./coveralls --file /root/repo/lcov-app.info --format lcov

⠀⠀⠀⠀⠀⠀⣿
⠀⠀⠀⠀⠀⣼⣿⣧⠀⠀⠀⠀⠀⠀⠀ ⣠⣶⣾⣿⡇⢀⣴⣾⣿⣷⣆ ⣿⣿⠀⣰⣿⡟⢸⣿⣿⣿⡇ ⣿⣿⣿⣷⣦⠀⠀⢠⣿⣿⣿⠀⠀⣿⣿⠁⠀⣼⣿⡇⠀⢀⣴⣾⣿⡷
⠶⣶⣶⣶⣾⣿⣿⣿⣷⣶⣶⣶⠶  ⣸⣿⡟ ⠀⢠⣿⣿⠃⠈⣿⣿⠀⣿⣿⢠⣿⡿⠀⣿⣿⣧⣤⠀⢸⣿⡇⣠⣿⡿⠀⢠⣿⡟⣿⣿⠀⢸⣿⡿⠀⠀⣿⣿⠃⠀⢸⣿⣧⣄
⠀⠀⠙⢻⣿⣿⣿⣿⣿⡟⠋⠁⠀⠀ ⣿⣿⡇⠀ ⢸⣿⣿⠀⣸⣿⡟⠀⣿⣿⣾⡿⠁ ⣿⣿⠛⠛⠀⣿⣿⢿⣿⣏⠀⢀⣿⣿⣁⣿⣿⠀⣾⣿⡇⠀⢸⣿⡿⠀⠀⡀⠙⣿⣿⡆
⠀⠀⢠⣿⣿⣿⠿⣿⣿⣿⡄⠀⠀⠀ ⠙⢿⣿⣿⠇⠈⠿⣿⣿⡿⠋⠀⠀⢿⣿⡿⠁⠀⢸⣿⣿⣿⡇⢸⣿⣿⠀⣿⣿⣄⣾⣿⠛⠛⣿⣿⢠⣿⣿⣿ ⣼⣿⣿⣿ ⣿⣿⡿⠋⠀
⠀⢀⣾⠟⠋⠀⠀⠀⠙⠻⣷⡀⠀⠀

  v0.3.9

✏️ Forced coverage format: lcov
📄 Using coverage file: /root/repo/lcov-app.info
Could not process tracefile: /root/repo/lcov-app.info
ArgumentError: Invalid Int64: "18446744073709551615"
mrexox commented 1 year ago

Hey! Could you send the lcov-app.info, please, so I could check what is being parsed? There might be an edge case I haven't taken into account.

mrexox commented 1 year ago

Hey @josegonzalez, can you share your lcov-app.info, please?

josegonzalez commented 1 year ago

Yes I can! Is there some way I can send it to you securely? I don't know if this will include code information from the codebase and it's from a private repository.

mrexox commented 1 year ago

For sure, my email is valentin@coveralls.io

josegonzalez commented 1 year ago

I sent a Gdrive attachment from jdiazgonzalez@watchful.io.

mrexox commented 1 year ago

Thank you! Your report helped me to figure out the issue. Please check v0.4.6 version!