Can someone suggest what the issue here might be? I can’t seem to find any documentation around the status reset option on the quality gate so it’s unclear what this should be set to.
We are currently facing the same issue since version 1.42 of the SonarCloud extensions for Azure DevOps. The code analysis report is shown as “passed” in the pipeline run and within SonarCloud, but the quality gate keeps waiting.
Ok I’ll be having a look in our logs. Can you share with me the most recent Analysis ID on which you have that issue ? And an approximate date/time when it happened ?
This will help me find what happened to it
I can confirm it is not a token/configuration issue on your side.
It seems like a temporary issue with Azure DevOps, their API is sending us some timeout error code in this case.
Do you have this issue often/for a long time?
It seems we don’t have this issue anymore since the 12th of August.
We are still experiencing this issue. This occurred on the 10th of august.
This analysis ID, AYn5TKw2eHqLgI1naP8X , is from 10 minutes ago (15 aug 2023 on 13:10 UTC) were the quality gate for the PR is again waiting. This is the issue on all the PR’s we open since the 10th.
I’ve looked over the documentation and from what I can see the Azure DevOps PAT is configured as stated
At organisation level in SonarCloud
Within its expiration period
Contains the permissions ‘Code (Read & Write)’
The organisation setting Azure Active Directory Conditional Access Policy Validation (which has been renamed to Enable IP Conditional Access policy validation on non-interactive flows since the documentation was last updated) is also disabled.
I’ve addressed some warnings I can see in SonarCloud background tasks around shallow fetch being enabled by not setting the fetch depth and while those warnings are now gone, we still see issues with PR status’s not updating
Is there any more verbose logging you can share that will help find the root cause of this? Particularly around the PAT if that’s where you see errors.
Here is a more recent analysis ID from today that is impacted:
AYquCv2xPYZqBSNoJYvE