Kotlin source files ignored by codecov even though they are in the uploaded report

Description

Some files presents in my report (which I confirmed by looking in the build tab) are not showing up on codecov, whereas other ones are. When I make a change to these files, they show up in the “Other files ignored by Codecov” in the diff tab.

A logical suspicion might be that Codecov does not understand Kotlin paths (the directory structure does not match the package structure like Java), but that does not explain why it is able to show coverage for some files so there seems to be something in place to handle this. Most files missing are in the root of the source folder (/kotlin) while files that are one directory deep (but still not matching their package 100%) appear to be showing up.

Repository

CI/CD

BitRise: Bitrise - Mobile Continuous Integration and Delivery - iOS & Android Build Automation

Uploader

Bash uploader (using BitRise step)

Commit SHAs

67411cf9aa05c937a0ddaada3f1b3b3b23fac2b4

Codecov YAML

Not used

Codecov Output

+------------------------------------------------------------------------------+

| (10) codecov@1                                                               |
+------------------------------------------------------------------------------+
| id: codecov                                                                  |
| version: 1.1.6                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: bash                                                                |
| time: 2020-08-05T20:44:57Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
  _____          _
 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/
                              Bash-20200728-9fb7d93
==> Bitrise CI detected.
    project root: .
--> token set from env
    Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
==> Running gcov in . (disable via -X gcov)
==> Python coveragepy not found
==> Searching for coverage reports in:
    + .
    -> Found 10 reports
==> Detecting git/mercurial file structure
==> Reading reports
    + ./hud/build/reports/jacoco/testDebug/jacocotestDebug.xml bytes=41465
    + ./location/build/reports/jacoco/testDebug/jacocotestDebug.xml bytes=86684
    + ./architecture/build/reports/jacoco/testDebug/jacocotestDebug.xml bytes=219474
    + ./keyboard/build/reports/jacoco/testDebug/jacocotestDebug.xml bytes=5028
    + ./permissions/build/reports/jacoco/testDebug/jacocotestDebug.xml bytes=108257
    + ./base/build/reports/jacoco/testDebug/jacocotestDebug.xml bytes=224928
    + ./alerts/build/reports/jacoco/testDebug/jacocotestDebug.xml bytes=32074
    + ./logging/build/reports/jacoco/testDebug/jacocotestDebug.xml bytes=24198
    + ./test-utils/build/reports/jacoco/testDebug/jacocotestDebug.xml bytes=59853
    + ./resources/build/reports/jacoco/testDebug/jacocotestDebug.xml bytes=20463
==> Appending adjustments
    https://docs.codecov.io/docs/fixing-reports
    + Found adjustments
==> Gzipping contents
==> Uploading reports
    url: https://codecov.io
    query: branch=codecov&commit=67411cf9aa05c937a0ddaada3f1b3b3b23fac2b4&build=860&build_url=https%3A%2F%2Fapp.bitrise.io%2Fbuild%2F54203fd175ca37f0&name=&tag=&slug=splendo%2Fkaluga&service=bitrise&flags=&pr=&job=&cmd_args=Z,C
->  Pinging Codecov
https://codecov.io/upload/v4?package=bash-20200728-9fb7d93&token=secret&branch=codecov&commit=67411cf9aa05c937a0ddaada3f1b3b3b23fac2b4&build=860&build_url=https%3A%2F%2Fapp.bitrise.io%2Fbuild%2F54203fd175ca37f0&name=&tag=&slug=splendo%2Fkaluga&service=bitrise&flags=&pr=&job=&cmd_args=Z,C
->  Uploading to
https://storage.googleapis.com/codecov/v4/raw/2020-08-05/BDE1CC0EF03EC946955865EA9A3F9567/67411cf9aa05c937a0ddaada3f1b3b3b23fac2b4/4f464fe0-3fb2-451f-9e13-a0cee6f5f335.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20200805%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20200805T204500Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=1b9f15c14ff6eb579df8f846dd863ff856c7fa56b8474b3de86395282975c619
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 64357    0     0  100 64357      0   312k --:--:-- --:--:-- --:--:--  311k
100 64357    0     0  100 64357      0   312k --:--:-- --:--:-- --:--:--  311k
    -> View reports at https://codecov.io/github/splendo/kaluga/commit/67411cf9aa05c937a0ddaada3f1b3b3b23fac2b4

Additional Information

Example of a file that is shown:

Example of a file ignored:

Code coverage done right. (dead link)

Thanks @thoutbeckers! We’ll take a look and get back to you.

1 Like

Hi @thoutbeckers, we are still investigating. Thanks for your patience here.

1 Like

Hi @thoutbeckers, we made some fixes on our side, would you be able to see if this is still an issue?

I’m still having problems @tom, see a new build here, files are still ignored. Codecov

However I will look closer at the posted XML first, it seems some line by line coverage is missing for some files. Will codecov ignore the file if this is missing?

@thoutbeckers, just to confirm, these files should NOT be ignored?