# After upload from Gitlab, CI indicated as failed even if not

**URL:** <https://community.codecov.com/t/after-upload-from-gitlab-ci-indicated-as-failed-even-if-not/3941>\
**Category:** Support\
**Created:** [October 30, 2022, 5:46pm UTC](https://community.codecov.com/t/after-upload-from-gitlab-ci-indicated-as-failed-even-if-not/3941 "2022-10-30T17:46:45Z")\
**Posts on this page:** 12\
**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:** [October 30, 2022, 5:46pm UTC](https://community.codecov.com/t/after-upload-from-gitlab-ci-indicated-as-failed-even-if-not/3941/1 "2022-10-30T17:46:45Z")

</div>

### Description

Since a few days it seems that gitlab does not work with codecov anymore

1. spurious red cross on codecov website indicating that the CI has failed
2. message saying “commit message unavailable” on the codecov website
3. on [gitlab.com](http://gitlab.com) codecov bot does not publish a comment anymore in the merge requests

### CI/CD URL

- [Codecov](https://app.codecov.io/gl/styx-lang/styx/commit/4a4f962114412fa03cb275257ae9e59712284baa)
- [test (#3220735666) · Jobs · styx-lang / styx · GitLab](https://gitlab.com/styx-lang/styx/-/jobs/3220735666#L3229)

### Additional Information

- Possibly caused by Gitlab changes in their latest release, e.g API changes, that typically happens at the end of each month, the 22, although that seemed to work fine 6 days ago (24).
- Probably not the cause of the problem but because of docker images, the codecov uploader version I use is not necessarily up-to-date. In the present case it is the version that was live on the 11 of August.

---

<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 31, 2022, 9:27pm UTC](https://community.codecov.com/t/after-upload-from-gitlab-ci-indicated-as-failed-even-if-not/3941/2 "2022-10-31T21:27:28Z")

</div>

@TungstenHeart I know we’ve been doing some upgrades for GitLab. What I’m seeing right now is that a [Codecov team bot](https://docs.codecov.com/docs/team-bot) is not being set. Do you mind just double-checking that?

---

<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:** [November 1, 2022, 2:36pm UTC](https://community.codecov.com/t/after-upload-from-gitlab-ci-indicated-as-failed-even-if-not/3941/3 "2022-11-01T14:36:01Z")

</div>

the teambot is set now but that does not fix the problem, as seen for the latest [push](https://app.codecov.io/gitlab/styx-lang/styx/commit/3d2b247d024406ecd394509f4f0319f16bbe7953)

---

<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:** [November 10, 2022, 7:47pm UTC](https://community.codecov.com/t/after-upload-from-gitlab-ci-indicated-as-failed-even-if-not/3941/4 "2022-11-10T19:47:20Z")

</div>

@TungstenHeart it looks like this might be a lingering issue from this [topic](https://community.codecov.com/t/gitlab-private-repositories-token-refresh-issues/3692/3). The issue I’m seeing is that there is not refresh token information from the bot, and so we are unable to retrieve the necessary information from GitLab.

Can you

1. Log in and log out of Codecov as the teambot
2. Delete all Codecov cookies
3. Log back in as the teambot
4. Push another commit/PR?

---

<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:** [January 2, 2023, 6:26pm UTC](https://community.codecov.com/t/after-upload-from-gitlab-ci-indicated-as-failed-even-if-not/3941/7 "2023-01-02T18:26:52Z")

</div>

This is still broken. So one monht ago, what you suggested to try had not work.  
Today i’ve tried

- again
- delete data ( 🥲)
- revoke codecov, accept it again
- other user name as team bot
- use latest uploader, not the one from the docker image

and it is still broken. @tom I have two questions:

- Cant you fix that manually ?
- Are the API requests logged (thos sent by your service) and could you check that the addresses are good ? Actually upload is correct, analysis of the gcov files is too. The problem seems to be simply that requests are not done at the right place.

---

<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:** [January 16, 2023, 8:25pm UTC](https://community.codecov.com/t/after-upload-from-gitlab-ci-indicated-as-failed-even-if-not/3941/8 "2023-01-16T20:25:01Z")

</div>

Hi @TungstenHeart, sorry for the delay. Taking a look at this, and I’ll let you know if I have more information this week.

---

<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:** [January 20, 2023, 11:34pm UTC](https://community.codecov.com/t/after-upload-from-gitlab-ci-indicated-as-failed-even-if-not/3941/9 "2023-01-20T23:34:34Z")

</div>

Hi @TungstenHeart looks like there might be a bug on our end. We are still investigating and trying to find the root cause.

---

<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:** [February 6, 2023, 7:13pm UTC](https://community.codecov.com/t/after-upload-from-gitlab-ci-indicated-as-failed-even-if-not/3941/10 "2023-02-06T19:13:57Z")

</div>

@TungstenHeart I actually think I figured this out. You need to set up a [team bot](https://docs.codecov.com/docs/team-bot)

---

<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:** [February 9, 2023, 2:28am UTC](https://community.codecov.com/t/after-upload-from-gitlab-ci-indicated-as-failed-even-if-not/3941/11 "2023-02-09T02:28:52Z")

</div>

I told you on the [22 of November](https://community.codecov.com/t/after-upload-from-gitlab-ci-indicated-as-failed-even-if-not/3941/3) that it is set now

---

<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:** [February 9, 2023, 3:17am UTC](https://community.codecov.com/t/after-upload-from-gitlab-ci-indicated-as-failed-even-if-not/3941/12 "2023-02-09T03:17:21Z")

</div>

I’ve noticed something. Maybe the problem is that the your service expects the team bot to have the “admin” role. But this cant work on [gitlab.com](http://gitlab.com), only on the self-hosted gitlab. On [gitlab.com](http://gitlab.com) users own their repos, have write access, etc. but are never “admin”.

I see myself as a “developper” here [Codecov](https://app.codecov.io/members/gl/styx-lang), this is also the team bot account for the org… which cant be admin.

---

<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:** [February 9, 2023, 3:28am UTC](https://community.codecov.com/t/after-upload-from-gitlab-ci-indicated-as-failed-even-if-not/3941/13 "2023-02-09T03:28:36Z")

</div>

Sorry, you’re right. I didn’t remember this.

I don’t know enough about GitLab right now, but what I do know is that the user set as the bot does not have sufficient permissions. Does that ring any bells?

---

<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:** [March 6, 2023, 11:12am UTC](https://community.codecov.com/t/after-upload-from-gitlab-ci-indicated-as-failed-even-if-not/3941/14 "2023-03-06T11:12:39Z")

</div>

I see a little better since a few days, thanks for the update, it looks like the problem is solved now.
