GitHub check "SonarCloud Code Analysis" never clears

  • ALM used: GitHub
  • CI system used: GitHub Workflow Actions
  • Scanner command used when applicable: sonarcloud-github-action - we’re using hakimio’s work around to trigger off pull requests because we had some reporting issues when generating PRs from branches. Looks like that’s “in” now but no release has been made since merging.
  • Languages of the repository: JavaScript/TypeScript
  • Error observed:

The message “SonarCloud Code Analysis Expected — Waiting for status to be reported” never resolves which means pull requests are never marked as mergeable. However, the status of the code analysis is added as a comment in the pull request and meets all the requirements. I can’t figure out any reason for the comment to appear but the check never clear.

  • Steps to reproduce: So far, create or update a pull request.
  • Potential workaround: Kicking the job sometimes works but even that has been rare lately

If you can reproduce this easily, and provide the following details, I could check if there are problems while creating the Check on GitHub:

  • Analysis ID where this happens: you can find this on the Background Tasks page on SonarCloud
  • Organization key
  • Project key
  • Pull Request number on GitHub
  • Link to the PR on GitHub, if public

If your organization is private, then I will open a private thread where you can share the above.

I’ve been heads down on other tasks for quite a while and haven’t had a chance to follow up on this. We are still experiencing the issue and the “work around” is still not always successful.

We are a private organization so if you can open a private thread, that would be great.

Sorry for the long silence. I believe this is the same issue that we are investigating on another thread. See this post for a workaround, until we have a better solution. I close this thread now as it’s a duplicate, please follow the other one instead.