Code coverage report generated using codemagci CI not showing any results after uplaod to codcov

Please search for similar issues before creating a ticket.
If you are using GitHub, have you tried adding the Codecov GitHub app?
All fields below are required.

Description

Description of the issue

I am using codemagic as a CI tool to build and publish flutter app. I have integrated codcov for code coverage. I am able to generate code coverage report and upload it to codcov but still get error when I open up commit page in codcov. I implemented the above task using the following document (Codecov integration - Codemagic Docs). Based on the codcov page it says CI failed and upload is empty.

CI/CD URL

Please provide a link to the CI/CD run.

Codecov Output

Please provide the full output of running the uploader on your CI/CD. This will typically have the Codecov logo as ASCII.

mobile-flutter&name=&tag=&flags=&parent=
[2022-05-17T07:16:52.191Z] ['info'] https://codecov.io/github/NARRPR/rpr-mobile-flutter/commit/794d95cbd74dbde4305c0250e58f9d2f24343c7a
https://storage.googleapis.com/codecov/v4/raw/2022-05-17/66B5A1B5C0C2B409DBA937A02C198FD0/794d95cbd74dbde4305c0250e58f9d2f24343c7a/9a15d6c7-0271-4c04-8b66-0e09d8cf1a14.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220517%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220517T071652Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=ba32e177cbd8654dacb051ac4659007f8e84ff3a439c3fc1a836f06e7800c01a
[2022-05-17T07:16:52.191Z] ['info'] Uploading...
[2022-05-17T07:16:52.405Z] ['info'] {"status":"success","resultURL":"https://codecov.io/github/NARRPR/rpr-mobile-flutter/commit/794d95cbd74dbde4305c0250e58f9d2f24343c7a"}

Expected Results

Please provide what you expect to have happened (e.g. a file that has missing coverage on a particular line).

Actual Results

Please provide what actually happened.

Additional Information

Any additional information, configuration, or data that might be necessary to reproduce the issue.

@madanshah114 can you provide the CI configuration and the entire Codecov snippet?

Hi @tom

Here is the Ci snippet for codecov:

    ```
   - name: Coverage report

    script: |

      HOMEBREW_NO_AUTO_UPDATE=1 brew install lcov

      mkdir -p test-results

      flutter test --coverage --machine > test-results/flutter.json  

      cat test-results/flutter.json

      code_coverage=$(lcov --list $FCI_BUILD_DIR/coverage/lcov.info | sed -n "s/.*Total:|\(.*\)%.*/\1/p")

      echo "Code Coverage: ${code_coverage}% "

      if (( $(echo "$code_coverage < $CODE_COVERAGE_TARGET" | bc) )); then { echo "code coverage is less than expected" && exit 1; }; fi  

    test_report: test-results/flutter.json

  - name: uplaod code coverage report

    script: |

      #!/bin/bash

      curl -Os https://uploader.codecov.io/latest/macos/codecov  

      chmod +x codecov

      echo ${CODECOV_TOKEN}

      ./codecov -t ${CODECOV_TOKEN} -f "test-results/flutter.json"

Hi @madanshah114, I meant the snippet from CI (it should have the Codecov logo as ASCII) e.g.

     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/

  Codecov report uploader 0.2.3