Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] CodeCov Not Working #335

Closed
TheCedarPrince opened this issue Mar 26, 2024 · 10 comments
Closed

[BUG] CodeCov Not Working #335

TheCedarPrince opened this issue Mar 26, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@TheCedarPrince
Copy link
Member

What happened?

Hey @DilumAluthge ,

Thanks for helping @cncastillo and co here for KomaMRI get set-up over here on JuliaHealth! Carlos and I were speaking however and it seems that their CodeCov no longer works properly. Both the codecov.yml file and ci.yml look perfectly fine to me. I also checked the CodeCov permissions here and all access permissions are granted to the GitHub app.

It is quite curious as all my normal debugging has failed for this and I am a bit stumped. Is there some setting in JuliaHealth that I am not aware of that might be breaking CodeCov here?

Thanks!

~ tcp 🌳

Environment

On the latest response from a webhook to CodeCov, we see this:


{"detail":"You do not have permission to perform this action."}
@DilumAluthge
Copy link
Member

On the latest response from a webhook to CodeCov, we see this:


{"detail":"You do not have permission to perform this action."}

@TheCedarPrince What steps do you perform before you receive this error message?

@TheCedarPrince
Copy link
Member Author

Hey @DilumAluthge, I'll let @cncastillo and @beorostica comment more here but with KomaMRI's set-up, currently, it uses a webhook to send out a codecov request. Carlos was saying this was previously working fine when they were not within JuliaHealth so it seems like something may have gone wrong in the transition over to here.

It seems like whenever a PR is made or updated, a request gets sent via the webhook but this permission error keeps popping up.

@cncastillo
Copy link
Member

cncastillo commented Mar 26, 2024

Thanks @DilumAluthge!

Just to complement this answer, the codecov info. is being sent correctly to https://app.codecov.io/gh/JuliaHealth/KomaMRI.jl, but the bot that creates the reports (like the one below) stopped working.

image

Edit: and also the CodeCov workflow.

image

The PRs look good to me, so I approved them. @beorostica could you look at them?

@DilumAluthge
Copy link
Member

Let's try this: I'm going to:

  1. Remove the GitHub app from this repo
  2. Delete the webhook
  3. Reinstall the GitHub app on this repo

Let's see if that does anything.

@DilumAluthge
Copy link
Member

Okay, I got the Codecov comment to be posted in #343

@DilumAluthge
Copy link
Member

Okay and the Codecov commit statuses have now been created on #343

@TheCedarPrince
Copy link
Member Author

So out of curiosity, what went wrong here @DilumAluthge ? Could you track down where things broke exactly? Or did you just reset all of CodeCov for the repository?

@DilumAluthge
Copy link
Member

I'm not sure what broke specifically. But the combination of the above three steps seems to have been sufficient.

@cncastillo
Copy link
Member

Thanks @DilumAluthge and @TheCedarPrince for all your time 🙏. I wouldn´t have been able to fix it alone.

What a weird bug. I read in other places that the turn-it-on-and-off approach also worked for them. We will just double-check that everything works today (@beorostica), and I will close this issue 😄.

@cncastillo
Copy link
Member

cncastillo commented Mar 27, 2024

Ok, the CodeCov is also working in #342 so I am closing this issue. Thanks again!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants