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

**URL:** <https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987>\
**Category:** Support\
**Created:** [June 24, 2021, 7:54pm UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987 "2021-06-24T19:54:44Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![TungstenHeart](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tungstenheart/32/1651_2.png) [@TungstenHeart](https://community.codecov.com/u/TungstenHeart)\
**Post date:** [June 24, 2021, 7:54pm UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/1 "2021-06-24T19:54:44Z")

</div>

As seen [here](https://app.codecov.io/gl/styx-lang/styx/commits?page=1), codecov almost never detect the commits, leading to a broken badge.

The YAML for the project

```yaml
coverage:
  precision: 2
  round: down
  range: "70...98"
fixes:
  - "temp/::"

```

However the percentage seems to be updated correctly so this would be only a minor problem.  
The page for the [last commit](https://codecov.io/gl/styx-lang/styx/commit/e3bfd3f0d8bf7dc232ec345bde4b909a46422d42/) suggests with

> **Waiting for CI to complete.** Please review report with caution, it may change. [Click here to learn more](https://docs.codecov.io/docs/ci-service-relationship#section-checking-ci-status).

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

---

<div class="post-metadata">

**Author:** ![antonyoni](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/antonyoni/32/1961_2.png) [@antonyoni](https://community.codecov.com/u/antonyoni)\
**Post date:** [June 30, 2021, 7:18pm UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/2 "2021-06-30T19:18:38Z")

</div>

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

- [https://codecov.io/gitlab/reductech:edr:connectors/filesystem/commit/e421ab0cd5d0090c571cec4f8f07d7809353a31a](https://codecov.io/gitlab/reductech:edr:connectors/filesystem/commit/e421ab0cd5d0090c571cec4f8f07d7809353a31a)
- [code coverage dev (#1389879088) · Jobs · Sequence / Connectors / FileSystem · GitLab](https://gitlab.com/reductech/edr/connectors/filesystem/-/jobs/1389879088)

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

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [July 6, 2021, 8:54pm UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/3 "2021-07-06T20:54:10Z")

</div>

@TungstenHeart and @antonyoni, have you added a [team bot](https://docs.codecov.com/docs/team-bot)?

---

<div class="post-metadata">

**Author:** ![antonyoni](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/antonyoni/32/1961_2.png) [@antonyoni](https://community.codecov.com/u/antonyoni)\
**Post date:** [July 7, 2021, 2:04pm UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/4 "2021-07-07T14:04:36Z")

</div>

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 · Sequence / Connectors / FileSystem · GitLab](https://gitlab.com/reductech/edr/connectors/filesystem/-/merge_requests/3)

It was using the global gitlab `codecov` account to post previously - [Codecov · GitLab](https://gitlab.com/codecov)

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

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [July 19, 2021, 2:13am UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/5 "2021-07-19T02:13:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![smheidrich](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/smheidrich/32/1993_2.png) [@smheidrich](https://community.codecov.com/u/smheidrich)\
**Post date:** [July 19, 2021, 4:47pm UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/6 "2021-07-19T16:47:17Z")

</div>

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](https://app.codecov.io/gl/smheidrich/mpdispatcher/commits?page=1)

CI logs seem fine to me: [pytest: [python:3.9] (#1435735865) · Jobs · Shahriar Heidrich / mpdispatcher · GitLab](https://gitlab.com/smheidrich/mpdispatcher/-/jobs/1435735865)

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [July 19, 2021, 7:43pm UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/7 "2021-07-19T19:43:50Z")

</div>

@smheidrich, if you go to [GitLab applications](https://gitlab.com/-/profile/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?

---

<div class="post-metadata">

**Author:** ![antonyoni](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/antonyoni/32/1961_2.png) [@antonyoni](https://community.codecov.com/u/antonyoni)\
**Post date:** [July 26, 2021, 9:56am UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/8 "2021-07-26T09:56:00Z")

</div>

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 · Sequence / Core · GitLab](https://gitlab.com/reductech/edr/core/-/merge_requests/275)

This is the upload for that MR, it’s still showing the ‘Waiting for CI to complete’ error: [https://codecov.io/gitlab/reductech:edr/core/commit/dae9564c1b4ba404bf999184d8b73993dc9aa0b9](https://codecov.io/gitlab/reductech:edr/core/commit/dae9564c1b4ba404bf999184d8b73993dc9aa0b9)

---

<div class="post-metadata">

**Author:** ![antonyoni](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/antonyoni/32/1961_2.png) [@antonyoni](https://community.codecov.com/u/antonyoni)\
**Post date:** [July 26, 2021, 10:04am UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/9 "2021-07-26T10:04:59Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![smheidrich](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/smheidrich/32/1993_2.png) [@smheidrich](https://community.codecov.com/u/smheidrich)\
**Post date:** [July 27, 2021, 2:00pm UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/10 "2021-07-27T14:00:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![TungstenHeart](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tungstenheart/32/1651_2.png) [@TungstenHeart](https://community.codecov.com/u/TungstenHeart)\
**Post date:** [July 28, 2021, 8:28am UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/11 "2021-07-28T08:28:38Z")

</div>

no change with the team bot.

---

<div class="post-metadata">

**Author:** ![antonyoni](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/antonyoni/32/1961_2.png) [@antonyoni](https://community.codecov.com/u/antonyoni)\
**Post date:** [July 29, 2021, 10:27am UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/12 "2021-07-29T10:27:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [August 25, 2021, 3:51am UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/13 "2021-08-25T03:51:56Z")

</div>

@antonyoni apologies I lost track of this. Do you have a recent commit where this is not happening? I’ll take a look and see why global YAML is not working.

---

<div class="post-metadata">

**Author:** ![antonyoni](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/antonyoni/32/1961_2.png) [@antonyoni](https://community.codecov.com/u/antonyoni)\
**Post date:** [August 25, 2021, 11:53am UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/14 "2021-08-25T11:53:27Z")

</div>

Hi @tom

It turns out that it’s only our private repos that work with a codecov.yml. I’ve added a codecov.yml to one of our public repos, but still get a `Current Bot: None` in the settings:

- [Codecov](https://app.codecov.io/gl/reductech:edr:connectors/filesystem)
- [codecov.yml · main · Sequence / Connectors / FileSystem · GitLab](https://gitlab.com/reductech/edr/connectors/filesystem/-/blob/master/codecov.yml)

Here’s a recent MR, the codecov upload is successful, but the commit is showing up as ‘Unable to find commit in GitLab’ and no report is available in the MR: [Resolve "Remove stryker as a local tool" (!13) · Merge requests · Sequence / Connectors / FileSystem · GitLab](https://gitlab.com/reductech/edr/connectors/filesystem/-/merge_requests/13)

This is the codecov upload job for that MR: [code coverage dev (#1533258155) · Jobs · Sequence / Connectors / FileSystem · GitLab](https://gitlab.com/reductech/edr/connectors/filesystem/-/jobs/1533258155)

If I click on the [resultURL](https://codecov.io/gitlab/reductech:edr:connectors/filesystem/commit/6e89389fdc29e2ff91ebff2143f3699b6574f208) I get a Forbidden error, it asks me to log in even though I already am.

The reductech:edr:connectors group in codecov also has a global yaml with the bot: [Codecov](https://app.codecov.io/account/gl/reductech:edr:connectors/yaml)

This is the private repo that works with the codecov.yml: [Codecov](https://app.codecov.io/gl/reductech:edr:connectors/relativity)

Thanks, Antony

---

<div class="post-metadata">

**Author:** ![TungstenHeart](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tungstenheart/32/1651_2.png) [@TungstenHeart](https://community.codecov.com/u/TungstenHeart)\
**Post date:** [September 28, 2021, 9:35pm UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/15 "2021-09-28T21:35:24Z")

</div>

Hello, I’ve found something strange today.

To those who are still struggling with the issue,  
On Codecov website, check the _Settings_ tab, panel _Default Branch Name_.

The field for me contained the text `b'master'`.  
After changing it to `master`, the charts and the graph have reapeared auto-magically. 😅

`b'master'` looks like a git command, So maybe a kind of data corruption has occured at some point (end of June) ? Maybe something related to a bogus command line parsing ?

---

<div class="post-metadata">

**Author:** ![antonyoni](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/antonyoni/32/1961_2.png) [@antonyoni](https://community.codecov.com/u/antonyoni)\
**Post date:** [October 12, 2021, 8:55am UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/16 "2021-10-12T08:55:38Z")

</div>

Hi @TungstenHeart, glad you got this one sorted.

I had a look and all our repos have the correct main/master branch set in codecov, without any additional characters or quotes. We don’t have any issues with viewing the charts in codecov, but all our commits are still showing up as “Unable to find commit in Gitlab” and codecov is not updating any of our Merge Requests with a summary in GitLab.

Are you now seeing the codecov summaries in Merge Requests on GitLab?

---

<div class="post-metadata">

**Author:** ![TungstenHeart](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tungstenheart/32/1651_2.png) [@TungstenHeart](https://community.codecov.com/u/TungstenHeart)\
**Post date:** [October 12, 2021, 3:37pm UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/17 "2021-10-12T15:37:02Z")

</div>

Hello, to be clear, I still see the “Unable to find commit in Gitlab” messages but my main concern was that the graphs were not visible anymore.

About the summary, no I’ve never seen one. Maybe you mention that because I had reply to [Since 2 weeks - "Unable to find commit in Gitlab" - #16 by antonyoni](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/16). This was a simple mistake, e.g “oops wrong topic”.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [October 14, 2021, 8:23pm UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/18 "2021-10-14T20:23:21Z")

</div>

@antonyoni @TungstenHeart we made some changes on our side, can you see if you are getting this issue on new merge requests?

---

<div class="post-metadata">

**Author:** ![TungstenHeart](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tungstenheart/32/1651_2.png) [@TungstenHeart](https://community.codecov.com/u/TungstenHeart)\
**Post date:** [October 15, 2021, 9:00am UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/19 "2021-10-15T09:00:49Z")

</div>

Looks good to me, the list of commit does not show “Unable to find commit in Gitlab” anymore.

---

<div class="post-metadata">

**Author:** ![antonyoni](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/antonyoni/32/1961_2.png) [@antonyoni](https://community.codecov.com/u/antonyoni)\
**Post date:** [October 18, 2021, 6:51pm UTC](https://community.codecov.com/t/since-2-weeks-unable-to-find-commit-in-gitlab/2987/20 "2021-10-18T18:51:18Z")

</div>

Hi @tom - it’s looking good on our side too. We’re getting summaries posted to MRs and no more ‘Unable to find commit’ errors in codecov. Thank you!
