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

parsing error! #77

Closed
ilyes9595 opened this issue Nov 5, 2021 · 8 comments
Closed

parsing error! #77

ilyes9595 opened this issue Nov 5, 2021 · 8 comments
Assignees
Labels
waiting for response Waiting for follow up

Comments

@ilyes9595
Copy link

ilyes9595 commented Nov 5, 2021

Describe the bug
I'm aware that there is already an issue about this one but I was closed without giving a proper solution, the issue is probably with the lcov.info file which by the way I don't have enough information about what it is exactly or where it's been generated, so for now every time I run the action i got this message: Error: parsing error!

To Reproduce
This is my job:
` build-app:

name: Build App

runs-on: ubuntu-latest

steps:

  - name: Checkout repository
  
    uses: actions/checkout@v1

  - name: Set up Java
  
    uses: actions/setup-java@v2

    with:

      java-version: '15'

      distribution: 'adopt'

  - name: Set up Flutter
  
    uses: subosito/flutter-action@v1

    with:

      channel: 'stable'

  - name: Install pub Dependencies
  
    run: flutter pub get

  - name: analytics
  
    uses: VeryGoodOpenSource/[email protected]

    with:

      path: './coverage/lcov.info'

      min_coverage: 10`
  1. See error
    `Run VeryGoodOpenSource/[email protected]
    with:
    path: ./coverage/lcov.info

    min_coverage: 10
    env:
    JAVA_HOME: /opt/hostedtoolcache/Java_Adopt_jdk/15.0.2-7/x64

    FLUTTER_ROOT: /opt/hostedtoolcache/flutter/2.5.3-stable/x64

    PUB_CACHE: /opt/hostedtoolcache/flutter/2.5.3-stable/x64/.pub-cache
    Error: parsing error!`

Expected behavior
The action run with success

@felangel felangel self-assigned this Nov 5, 2021
@felangel
Copy link
Contributor

felangel commented Nov 5, 2021

Hi @ilyes9595 👋
Thanks for opening an issue!

Do you have a link to an example ci failure?

@ilyes9595
Copy link
Author

@felangel
Copy link
Contributor

felangel commented Nov 5, 2021

@felangel thank you for reaching out, here is a link to the CI: https://github.com/mejdi14/flutter_multi_search/runs/4118992173?check_suite_focus=true and this is the link to the script itself: https://github.com/mejdi14/flutter_multi_search/blob/master/.github/workflows/build.yml

Thanks for sharing! I believe the issue is the very_good_coverage can't find an lcov.info file. Are you sure you have run your test suite and enabled test coverage? You can check out https://github.com/VeryGoodOpenSource/mockingjay/blob/556a7618e9c11f8a9c26f2493686efc24b5b9a1d/.github/workflows/main.yaml#L26 for an example of collecting coverage before running very_good_coverage.

Let me know if that helps 👍

@MarxBarahonaCondor
Copy link

MarxBarahonaCondor commented Jul 26, 2022

Hey @ilyes9595 you must validate that generate the coverage file, in my case i used this command jest -- --coverage --forceExit

@janncamoreno
Copy link

Hey @ilyes9595 you must validate that generate the coverage file, in my case i used this command jest -- --coverage --forceExit

As my estimated partner said, check that you are generating the coverage file in the path specified, you can use act (a tool to test actions in local environment) to check that kind of issues, in the previous step you can run a ls to check all the files

@kpedrozag
Copy link

Hey @ilyes9595 you must validate that generate the coverage file, in my case i used this command jest -- --coverage --forceExit

👏

@alestiago
Copy link
Contributor

alestiago commented Mar 7, 2023

@ilyes9595 is this still an issue for you?

This occurs when the coverage tool fails to find a coverage file, which makes it fail since there is no coverage information.

Is your issue related to #167 ?

@renancaraujo renancaraujo added the waiting for response Waiting for follow up label Mar 15, 2023
@alestiago
Copy link
Contributor

I'm closing this issue due to inactivity, feel free to re-open 🙌

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

No branches or pull requests

7 participants