Since 2 weeks - "Unable to find commit in Gitlab"

As seen here, codecov almost never detect the commits, leading to a broken badge.

The YAML for the project

  precision: 2
  round: down
  range: "70...98"
  - "temp/::"

However the percentage seems to be updated correctly so this would be only a minor problem.
The page for the last commit suggests with

Waiting for CI to complete. Please review report with caution, it may change. Click here to learn more .

that this could be caused because CI completion is not reported correctly.

1 Like

Same issue here with all our public and private repos. Here’s an example:

Seems to happen with both the bash script and the new beta upload script.

@TungstenHeart and @antonyoni, have you added a team bot?

I’ve just tried adding a team bot, still no joy.

It did used to work fine for public repos without the team bot - Resolve "Prepare for release v0.9.0" (!3) · Merge requests · Reductech / EDR / Connectors / FileSystem · GitLab

It was using the global gitlab codecov account to post previously - Codecov · GitLab

Looking at that account, the last activity was June 5th, which is about the time that all our reports stopped working too :smiley:

Hi @antonyoni thanks for your patience here. We made some changes on our backend, are you still seeing an issue?

I have the same issue but I’m not sure if I’m doing something wrong. Most of the commits show the above error message: Codecov

CI logs seem fine to me: pytest: [python:3.9] (#1435735865) · Jobs · Shahriar Heidrich / mpdispatcher · GitLab

@smheidrich, if you go to GitLab applications, are you able to see what scope Codecov has at the bottom? If it does not have read api, can you revoke the token, log out of Codecov and try signing back in?

hi @tom - yes, issue still persists. No codecov summaries in our merge requests, even though the uploads are successful. Here’s a recent MR: Resolve "Create Helper methods to evaluate step parameters to reduce boiler plate code" (!275) · Merge requests · Reductech / EDR / Core · GitLab

This is the upload for that MR, it’s still showing the ‘Waiting for CI to complete’ error: Code coverage done right.

I’m just having a look at our project settings - and it doesn’t look like the global yaml is propagating to the individual projects - I have the bot set in the yaml for the group reductech:edr but current bot is showing up as Current Bot: None for all the projects in that group. Do i have to specify the bot individually for each project, it can’t be done at group level?

It had api permissions which I guess includes read_api. I tried revoking, logging out and logging in again anyway; the new authorization has api permissions as well so I guess that’s all fine.

no change with the team bot.

Hi @tom,
I can confirm the issue is that the global YAML does not propagate to any of the repositories. I’ve added the bot config to codecov.yml in one of our repos, and that project is now getting the reports in the merge requests.
This is a workaround for now, but it’d be great not to have to set up the same yaml across all our projects.
Thanks, Antony