Azure Devops Quality Gate Never Completes on Pull Requests

Starting 3/25, all of our pull requests are getting stuck on waiting for the quality gate to finish on our Azure Devops Pull Requests. The build works fine, which includes the “Publish Quality Gate Result” step.

My issue is similar to this person’s issue. I tried the things mentioned in this post but I don’t see the settings in the sonar config UI that are referenced.

AzureDevOps “SonarCloud/quality gate” status check is not being updated in the pull requests - SonarQube Cloud - Sonar Community

Even though it was not expired, I redid the PAT token (with code read/write perms) - no dice.

….and this has been my repeated experience with Sonar Cloud: A couple days later it starts working again (no changes on our end of course), and no help Sonar support.

This service has been so frustrating due to how unreliable/buggy it is. Every day we have at least one PR that has some random sonar error in sonar analyze or publish steps. Granted we still get value from it, and we will continue to use it, but we are the complete mercy of the system when it decides not to work for an hour, or a day or longer… and there is nothing we can do about it, and we cannot get any quick help from Sonar.

Hi Eric - thanks for the note & understand that this isn’t the best experience. We are constantly improving the systems and in fact, in Q2 my teams roadmap is heavily focused on platform stability and these intermittent bugs.

Kind regards,
Shubham

Well it’s happening again. All of our pull requests are stuck again, for almost a week now. I created a new PAT again but no luck.

I really need help from support to fix this issue ASAP please!!! Please contact me and let me know what information you need to troubleshoot this.

Hi @EricCarlson,

Thanks for reaching out again. I’m sorry you still encounter some issues with SonarQube Cloud PR decoration.

In case you have to it, I highly encourage you to engage with our support team through one of their dedicated channel: Sonar Commercial Support | Sonar

That being said, I might be able to help you out here. Can you please share the following information with me first:

  1. Your SonarQube Cloud organization key and plan (Free, Team, Enterprise)
  2. Some of your faulty SonarQube Cloud project key
  3. A detailed explanation (including snapshots) of the faulty behavior.

Best

Philippe, thanks for the quick response.

  1. Org key = techficient, Plan = Team

  2. One of our projects (project key): techficient_dynamic

  3. It looks like all pull requests complete the yaml build successfully in Azure Devops (which includes sonar analysis and publish steps), and in the Sonar UI we can see the pull request and the final results, but back in Azure Devops the pull request is ALMOST always stuck waiting for the final response from Sonar, and no comments are added to the PR from Sonar: