Codecov.yml does not update in our repo and does not comment in Gitlab PR

Description

I’m setting up CodeCov for our project in Gitlab. I created a codecov.yml file to set up the Team Bot account as below

codecov:
  bot: luongvo

I pushed this config to develop but I can not see it on CodeCov app’s Settings > Yaml page, the Current Bot name is still None. Also, the uploaded result by commit shows CI Failed error and there are no Comments in Gitlab PR.

CI/CD URL

Codecov Output

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

| (5) CodeCov                                                                  |
+------------------------------------------------------------------------------+
| id: script                                                                   |
| version: 1.1.6                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: bash                                                                |
| time: 2021-12-09T02:53:24Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
[2021-12-09T02:53:26.636Z] ['info'] 
     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/
  Codecov report uploader 0.1.13
[2021-12-09T02:53:26.655Z] ['info'] => Project root located at: /Users/vagrant/git
[2021-12-09T02:53:26.660Z] ['info'] ->  Token found by arguments
[2021-12-09T02:53:26.680Z] ['info'] Searching for coverage files...
[2021-12-09T02:53:26.748Z] ['info'] => Found 1 possible coverage files:
  coverage/lcov.info
[2021-12-09T02:53:26.748Z] ['info'] Processing /Users/vagrant/git/coverage/lcov.info...
[2021-12-09T02:53:26.766Z] ['info'] Detected Local as the CI provider.
[2021-12-09T02:53:26.815Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.1.13&token=*******&branch=HEAD&build=&build_url=&commit=8ada291b30f47661c97ba128386dac1e07b296e2&job=&pr=&service=&slug=cloud_arv%2Fagritech%2Fservice-matching%2Fvarun-matchmaking-flutter&name=&tag=&flags=&parent=
[2021-12-09T02:53:26.964Z] ['info'] Uploading...
[2021-12-09T02:53:27.144Z] ['info'] {"status":"success","resultURL":"https://codecov.io/gitlab/cloud_arv:agritech:service-matching/varun-matchmaking-flutter/commit/8ada291b30f47661c97ba128386dac1e07b296e2"}
|                                                                              |
+---+---------------------------------------------------------------+----------+
| ✓ | CodeCov                                                       | 4.21 sec |
+---+---------------------------------------------------------------+----------+

Expected Results

  • The yml config should appear in CodeCov app’s Settings > Yaml page.
  • The Current Bot should be luongvo.
  • The updated commit should pass the CI in green check Codecov.
  • CodeCov should comment the coverage report in our Gitlab PR.

Actual Results

  • The yml config does not appear in CodeCov app’s Settings > Yaml page.
  • The Current Bot is None.
  • The updated commit shows CI Failed Codecov.
  • CodeCov does not comment the coverage report in our Gitlab PR.

Additional Information

@tom could you please check my issue here? We need this integration to be working soon. Thanks.

The uploaded commit shows CI Failed in the new UI, and Waiting for CI to complete in the legacy UI mode.

1 Like

@drazisil I’m not sure if I’m facing the same issue with this guy as an unknown reason from CodeCov side? Could you please check and fix it?

I’m quite wondering about the root cause and the solution team bot isn’t getting set from the global YAML for unknown reasons and I manually set it in the database.

1 Like

@luongvo I’ll get this squared away for you today.

1 Like

@luongvo can you try uploading again on a new commit?

@tom Okay, I rebased and pushed a new commit 21356cf0a49782db6895ac26ccb9bc6c6933533c.

There are some updates:

  • The CI passed on this commit Codecov :white_check_mark:

  • CodeCov still does not detect my yaml in App Settings and the current Bot still None :thinking:

  • CodeCov can detect my PRs now :white_check_mark:

  • CodeCov can comment coverage report to Gitlab PR now :white_check_mark:

Everything seems to be fine now. I’m not sure what happens with the App Settings yaml config but it’s working properly now. I will let you know if it stucks again in anyways. Thank you.

Here is the CD log:

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

| (5) CodeCov                                                                  |
+------------------------------------------------------------------------------+
| id: script                                                                   |
| version: 1.1.6                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: bash                                                                |
| time: 2021-12-17T02:02:41Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
[2021-12-17T02:02:43.948Z] ['info'] 
     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/
  Codecov report uploader 0.1.13
[2021-12-17T02:02:43.966Z] ['info'] => Project root located at: /Users/vagrant/git
[2021-12-17T02:02:43.970Z] ['info'] ->  Token found by arguments
[2021-12-17T02:02:43.991Z] ['info'] Searching for coverage files...
[2021-12-17T02:02:44.064Z] ['info'] => Found 1 possible coverage files:
  coverage/lcov.info
[2021-12-17T02:02:44.064Z] ['info'] Processing /Users/vagrant/git/coverage/lcov.info...
[2021-12-17T02:02:44.083Z] ['info'] Detected Local as the CI provider.
[2021-12-17T02:02:44.134Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.1.13&token=*******&branch=HEAD&build=&build_url=&commit=21356cf0a49782db6895ac26ccb9bc6c6933533c&job=&pr=&service=&slug=cloud_arv%2Fagritech%2Fservice-matching%2Fvarun-matchmaking-flutter&name=&tag=&flags=&parent=
[2021-12-17T02:02:44.352Z] ['info'] Uploading...
[2021-12-17T02:02:44.562Z] ['info'] {"status":"success","resultURL":"https://codecov.io/gitlab/cloud_arv:agritech:service-matching/varun-matchmaking-flutter/commit/21356cf0a49782db6895ac26ccb9bc6c6933533c"}
|                                                                              |
+---+---------------------------------------------------------------+----------+
| ✓ | CodeCov                                                       | 5.21 sec |
+---+---------------------------------------------------------------+----------+
1 Like