Codecov not posting comments to GitLab Merge Requests

Please check the troubleshooting guide before creating a ticket.
All fields below are required.

Description

Despite creating a new codecov.yaml file specifically for the repo, updating my .gitlab-ci.yaml file with the required script to enable the coverage file to be pushed, and creating a webhook for GitLab within Codecov, I am not getting any comments being pushed to any of my merge requests.

Testing the webhook reveals that it is getting a 500 error for merge request events:

I can provide information pertaining to how the webhook is configured, if required.

I’ve also noticed that all of my commits show " Waiting for CI to complete" at the top of the screen, and clicking the “Push notifications now” link results in a notification stating “Notification job queued.”

It’s worth noting that the GitLab Pipeline starts successfully when expected, and I am able to view the coverage reports at codecov.io.

Am I missing something somewhere?

Commit SHAs

13443790feb20b57cf6e940402841aab207fac6c

Repository


CI/CD or Build URL

image: cirrusci/flutter

before_script:
  - sudo apt-get update -y
  - sudo apt-get upgrade -y
  - sudo apt-get install -y sqlite3 libsqlite3-dev

after_script:
  - bash <(curl -s https://codecov.io/bash)

stages:
  - test

flutter_test:
  stage: test
  script:
    - flutter test --coverage
    - lcov --list coverage/lcov.info
    - genhtml coverage/lcov.info --output=coverage
  artifacts:
    paths:
      - coverage
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event' || $CI_COMMIT_BRANCH == 'unit-tests' || $CI_COMMIT_BRANCH == 'master'
      when: on_success
  tags:
    - docker

Uploader

Bash uploader:

codecov:
  bot: "amkuchta"
  require_ci_to_pass: no

coverage:
  precision: 2
  round: down
  range: "40...100"

comment:
  layout: "diff, files"
  behavior: new
  require_changes: false
  require_base: no # [yes :: must have a base report to post]
  require_head: no # [yes :: must have a head report to post]

Codecov Output

Running after script...
$ bash <(curl -s https://codecov.io/bash)
  _____          _
 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/
                              Bash-20201106-81372f2
==> GitLab CI detected.
    project root: .
--> token set from env
    Yaml found at: codecov.yml
==> Running gcov in . (disable via -X gcov)
==> Python coveragepy not found
==> Searching for coverage reports in:
    + .
    -> Found 1 reports
==> Detecting git/mercurial file structure
==> Reading reports
    + ./coverage/lcov.info bytes=27630
==> Appending adjustments
    https://docs.codecov.io/docs/fixing-reports
    + Found adjustments
==> Gzipping contents
==> Uploading reports
    url: https://codecov.io
    query: branch=routineNoteDao-test&commit=13443790feb20b57cf6e940402841aab207fac6c&build=846907259&build_url=&name=&tag=&slug=singularis-technologies%2Fstronk&service=gitlab&flags=&pr=&job=846907259&cmd_args=
->  Pinging Codecov
https://codecov.io/upload/v4?package=bash-20201106-81372f2&token=secret&branch=routineNoteDao-test&commit=13443790feb20b57cf6e940402841aab207fac6c&build=846907259&build_url=&name=&tag=&slug=singularis-technologies%2Fstronk&service=gitlab&flags=&pr=&job=846907259&cmd_args=
->  Uploading to
https://storage.googleapis.com/codecov/v4/raw/2020-11-13/869B7E21B47FA220BE898881172E6005/13443790feb20b57cf6e940402841aab207fac6c/da7eb3eb-4dd0-4028-9d9b-afb9ae961ec8.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20201113%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20201113T005038Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=a6f6b2c503cc368d0c5799e25cbd78facc652611abe9032f550c903d7ce52890
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  9578    0     0  100  9578      0  43735 --:--:-- --:--:-- --:--:-- 43735
    -> View reports at https://codecov.io/gitlab/singularis-technologies/stronk/commit/13443790feb20b57cf6e940402841aab207fac6c

Expected Results

Comments should be generated on merge requests.

Actual Results

Coverage results are uploaded to codecov.io and pipeline succeeds, but no comment is generated.

Additional Information

N/A

@moderators any chance anyone has seen this issue before?

@amkuchta, would you be able to supply a newer SHA here? Apologies on the delay.

@tom no worries, thank you for the response!

As requested, a new commit SHA: 697b2fd33d8893889fea6a6beff15289f4a27838

I’ll also add the updated output from the latest pipeline run:

Running after script...
$ bash <(curl -s https://codecov.io/bash)
  _____          _
 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/
                              Bash-20201123-d0fed5f
==> GitLab CI detected.
    project root: .
--> token set from env
    Yaml found at: codecov.yml
==> Running gcov in . (disable via -X gcov)
==> Python coveragepy not found
==> Searching for coverage reports in:
    + .
    -> Found 1 reports
==> Detecting git/mercurial file structure
==> Reading reports
    + ./coverage/lcov.info bytes=27911
==> Appending adjustments
    https://docs.codecov.io/docs/fixing-reports
    + Found adjustments
==> Gzipping contents
==> Uploading reports
    url: https://codecov.io
    query: branch=workoutRoutineDao_test&commit=697b2fd33d8893889fea6a6beff15289f4a27838&build=868222161&build_url=&name=&tag=&slug=singularis-technologies%2Fstronk&service=gitlab&flags=&pr=&job=868222161&cmd_args=
->  Pinging Codecov
https://codecov.io/upload/v4?package=bash-20201123-d0fed5f&token=secret&branch=workoutRoutineDao_test&commit=697b2fd33d8893889fea6a6beff15289f4a27838&build=868222161&build_url=&name=&tag=&slug=singularis-technologies%2Fstronk&service=gitlab&flags=&pr=&job=868222161&cmd_args=
->  Uploading to
https://storage.googleapis.com/codecov/v4/raw/2020-11-24/869B7E21B47FA220BE898881172E6005/697b2fd33d8893889fea6a6beff15289f4a27838/17e6501b-4bd2-4c42-89c1-dd732a013355.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20201124%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20201124T010204Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=0fe9884067871906c3fd3b0ceb34533e6caedae4ad342accf3609b0677b65ed7
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  9874    0     0  100  9874      0  43307 --:--:-- --:--:-- --:--:-- 43307
    -> View reports at https://codecov.io/gitlab/singularis-technologies/stronk/commit/697b2fd33d8893889fea6a6beff15289f4a27838

Anything you can do to help would be great!

@amkuchta, I’m seeing some 403 errors when trying to hit GitLab public endpoints like

https://gitlab.com/api/v4/projects/21557982/merge_requests/10

Do you know why this might be, some GitLab specific permissions?