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
https://gitlab.com/singularis-technologies/stronk
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