After changing codecov.yml "flags", the badge for new flag and project name is unresolved

The codecov.yml file is available here, the problematic flag badge is that one:

while the old flag badge is still available here: https://codecov.io/gh/native-html/core/branch/master/graph/badge.svg?flag=transient-render-tree

When I navigate in the coverage report here: https://codecov.io/gh/native-html/core/tree/master/packages, I can see that the old package (transient-render-tree) is visible, while the new package (transient-render-engine) is not.

Thanks for helping me out!

EDIT: New reports are not registered. Codecov claims " There was an error processing coverage reports.", while the Codecov Github action is successful, see for example https://github.com/native-html/core/runs/1458661166?check_suite_focus=true

@jsamr, I think this is happening because Codecov hasn’t been able to process coverage reports for the last 15 days. Can you try running the bash scripts with -X fix -X network?

So I did run the bash script with the options you proposed. Here is the sample output:

  _____          _
 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/
                              Bash-20201124-79cbc08


x> No CI provider detected.
    Testing inside Docker? http://docs.codecov.io/docs/testing-with-docker
    Testing with Tox? https://docs.codecov.io/docs/python#section-testing-with-tox
    project root: .
    Yaml found at: codecov.yml
==> Running gcov in . (disable via -X gcov)
==> Python coveragepy exists disable via -X coveragepy
    No .coverage file found.
==> Searching for coverage reports in:
    + .
    -> Found 6 reports
==> Reading reports
    + ./packages/transient-render-engine/coverage/coverage-final.json bytes=88257
    + ./packages/transient-render-engine/coverage/lcov.info bytes=13637
    + ./packages/transient-render-engine/coverage/clover.xml bytes=29246
    + ./packages/css-processor/coverage/coverage-final.json bytes=59378
    + ./packages/css-processor/coverage/lcov.info bytes=10392
    + ./packages/css-processor/coverage/clover.xml bytes=23704
==> Gzipping contents
        32K     /tmp/codecov.MGRsJ4.gz
==> Uploading reports
    url: https://codecov.io
    query: branch=master&commit=4d39fcbd413d39979fe2f8441d76c2f6ac59ca10&build=&build_url=&name=&tag=&slug=native-html%2Fcore&service=&flags=&pr=&job=&cmd_args=X,X,t
->  Pinging Codecov
https://codecov.io/upload/v4?package=bash-20201124-79cbc08&token=secret&branch=master&commit=4d39fcbd413d39979fe2f8441d76c2f6ac59ca10&build=&build_url=&name=&tag=&slug=native-html%2Fcore&service=&flags=&pr=&job=&cmd_args=X,X,t
->  Uploading to
https://storage.googleapis.com/codecov/v4/raw/2020-11-28/6819199558257F0AE224A18A0013B038/4d39fcbd413d39979fe2f8441d76c2f6ac59ca10/59be3b49-e9f1-4303-a0e5-91d7e78bd039.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20201128%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20201128T094650Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=c79150dcf7eeecb5ce9cc07765fdc80d219ecbb830a821cacd70540814769ade
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 30278    0     0  100 30278      0  49393 --:--:-- --:--:-- --:--:-- 49473
    -> View reports at https://codecov.io/github/native-html/core/commit/4d39fcbd413d39979fe2f8441d76c2f6ac59ca10

The report link (https://codecov.io/github/native-html/core/commit/4d39fcbd413d39979fe2f8441d76c2f6ac59ca10) claims the same:

There was an error processing coverage reports.

@jsamr, what if you add to your codecov.yml some path fixes

Maybe

fixes:
  - "home/runner/work/core/core/packages::packages/" 

Thank you very muhc @tom for your assistance, you gave me the hint!

I had to change

flags:
  css-processor:
    paths:
      - packages/css-processor/coverage/cover.xml
  transient-render-engine:
    paths:
      - packages/transient-render-engine/coverage/cover.xml

with

flags:
  css-processor:
    paths:
      - packages/css-processor/
  transient-render-engine:
    paths:
      - packages/transient-render-engine/
1 Like