Github actions check stopped working unexpectedly?

Hi,

We are happily using Sonarcloud with Github, but we’ve been encountering a recurring problem the last two days that I can’t put my finger on.

We are using the https://github.com/SonarSource/sonarcloud-github-action, and we have a workflow that blocks merges unless the Sonar Quality Gate’s is green.

We have had several occurences where the analysis is triggered, runs well and is green, and even adds a comment to the Pull Request, but the CI check does not pass.

I would think of a misconfiguration of my part, but the PR comment makes me think that Sonarcloud has all the access it needs :confused:

Any idea on what I could try? For now, the workaround is for devs to ask a user with Github admin privileges to bypass the checks, as the SonarCloud PR comment is readily available, it’s not too much hassle, but still.

Here is a reference to a task if it helps : https://sonarcloud.io/api/ce/task?id=AXRZmHaRwrvDq_VMVTAI

The PR is on a private repo, but here is its URL : https://github.com/ibizasoftware/paie/pull/183

6 Likes

This seems to be affecting us also, we’re using the Sonar Scanner CLI in Azure DevOps and the bot will post a message but isn’t setting the check anymore on the PR.

Hi,

Thanks for the reports.
We have identified the issue and are working on a fix.
We’ll update this thread when it is available.

Benoit

4 Likes

We’re facing the same issue.

1 Like

Is there a way we can identify whether we’re having the same issue? Something to look for in the logs? I’ve just tried setting up PR decorations with checks. While everything seems to be working fine, and we’re receiving comments in the PR, there is no check appearing.

Well, if the PR comments are working, you should have the check working as well when the issue is resolved. Not much else to check I can think of.

We are facing the same issue here in one of our repositories (private).

we are facing same issue here with GB, 40+ repos impacted and blocked =/, is there a link we can track the bugfix pls?

This is taking much longer than expected.

Also, when the fix is done, I hope there will be adequate tests to try to avoid such regression in the future. That’s the kind of thing we use sonar to verify on our applications.

Fix has just been deployed, it should work fine now! Can you please verify?

2 Likes

Seems to work here!

Thank you!

1 Like

working fine for us. thanks

1 Like

Working here too. Thank you!

This issue seems to have resurfaced. This time it’s sporadic though. Both the analysis summary and check status is updated correctly at times. But for other PRs, neither comes through although the analysis itself completes and can be observed on sonarcloud.io.

Sometimes just re-running the analysis does the trick.

Hi @gazal-k,

Can you share the background task id of the analysis that decoration did not happen? I would like to check it.

Best,
Marcin

Here’s one: AXbR0NJ5bFqLft9M_djq

same Here.
suddenly decoration doesnt work for one of our repository .
PR analyzed successfully but no decoration on the PR and no status check.

if needed- AXbSPf9RzlCf6szqor6C

10x

Hello @gazal-k and @Levi,

Thanks for notifying us of this bug. We have identified the cause and are working on the fix.
You can follow the resolution here. We will also update this thread once the issue has been fixed.

Apologies for the inconvenience

2 Likes

@TomVanBraband thanks for getting on this quick. Can you guys please add a test for that functionality so that it doesn’t regress?

Hello @gazal-k and @Levi,

This has now been resolved, you should receive a SonarCloud check and summary comment on every pull request again now.

We will take internal actions to better prevent this functionality from breaking again