SonarCloud / Github PR Analysis remains in "pending" state

We are using SonarCloud with Github for all our repos. A PR-level SonarCloud analysis is run every time a PR is created or updated. We have recently observed that sometimes SonarCloud does not return the analysis results to Github and so the PR-level check does not pass/fail but instead stays in a “pending” state forever. In the SonarCloud console, the PR state shows the results correctly.

A work-around is to submit an empty commit to the PR which re-triggers the SonarCloud analysis.

Template for a good new topic, formatted with Markdown:

  • ALM used: GitHub
  • CI system used: Jenkins
  • Scanner command used when applicable (private details masked): N/A (Using the Github integration)
  • Languages of the repository: JavaScript, Scala and others
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting): PR-level status check in Github stays in a “pending” state forever
  • Steps to reproduce: Not reproducible always
  • Potential workaround: Add an empty commit to the PR

Hi @ndesaiest and welcome to the community.

Can you please tell us when did that occur ? Do you have any date/time, and, if possible, a background task id so that we can have a look at our internal logs.


Thanks, I will send out some details shortly.

The latest instance occurred today (May 15) at ~4:40 pm Pacific. I do not have a task id but here’s the PR on a private github repo for which this happened:

When we look at the SonarCloud console, the “job” seems to have completed but the github PR check is not updated with the results.

Note: As a work-around we add an empty commit and that re-triggers the SonarCloud analysis on the PR.