rust-github / template

Template for a generic rust project hosted on GitHub
https://rust-github.github.io/
MIT License
186 stars 33 forks source link

Failed to parse string when running job[Coveralls] #35

Closed pplmx closed 1 year ago

pplmx commented 2 years ago
Run coverallsapp/github-action@master
  with:
    github-token: ***
    path-to-lcov: ./lcov.info
    coveralls-endpoint: https://coveralls.io
  env:
    CACHE_ON_FAILURE: false
    CARGO_INCREMENTAL: 0
Using lcov file: ./lcov.info
Error:  "[2](https://github.com/pplmx/ip-tools/runs/7628225107?check_suite_focus=true#step:6:2)022-08-02T09:11:[3](https://github.com/pplmx/ip-tools/runs/7628225107?check_suite_focus=true#step:6:3)3.[7](https://github.com/pplmx/ip-tools/runs/7628225107?check_suite_focus=true#step:6:7)7[8](https://github.com/pplmx/ip-tools/runs/7628225107?check_suite_focus=true#step:6:8)Z"  'error from lcovParse: ' 'Failed to parse string'
Error:  "2022-08-02T0[9](https://github.com/pplmx/ip-tools/runs/7628225107?check_suite_focus=true#step:6:10):11:33.779Z"  'input: ' ''
Error:  "2022-08-02T09:[11](https://github.com/pplmx/ip-tools/runs/7628225107?check_suite_focus=true#step:6:12):33.779Z"  'error from convertLcovToCoveralls'
Error: Failed to parse string
MarcoIeni commented 2 years ago

Thank you for reporting. Can you link or copy paste the yaml so that I can see the CI pipeline and try to reproduce the issue? :)

pplmx commented 2 years ago

Hi, @MarcoIeni

I don't change it, which is from the template. FYI. Here is my ci.yml https://github.com/pplmx/ip-tools/blob/main/.github/workflows/ci.yml

MarcoIeni commented 2 years ago

Hey sorry if this is taking a lot but I'm busy in these days :(

pplmx commented 2 years ago

Oh that's okay. Take your time freely.

MarcoIeni commented 2 years ago

Hey pplmx, I tried to reproduce this issue in our minimal example, so I pushed a new commit here. However, the coverage was working as expected 🤔

image

Your issue might be a problem with one of these projects:

As a side note, I need to investigate if our approach is still the best way to calculate rust code coverage 🤔

pplmx commented 2 years ago

Yep, the first two commits worked well. Since the 3rd commit, the action ran in failure. Here is my 3rd commit content. I don't think this commit will affect the result of action, or Maybe? https://github.com/pplmx/ip-tools/commit/e0c9f9e0cbc1e2707cf7f2440999f831beaefa45

pplmx commented 2 years ago

FYI. Screenshot for Github Action. image

MarcoIeni commented 2 years ago

Maybe there are some issues with the configuration in the Cargo.toml file you added. I don't know 😕

MarcoIeni commented 1 year ago

I removed code coverage as it is today, because it's not working anymore.