SonarQube - cannot report status back on GitHub pull requests with more than 100 commits

Hi,

the SonarQube server cannot decorate commits on GitHub Pull Requests with more than a 100 commits. The report can be accessed only on the SonarQube server itself.

It was tested with PRs with 50, 99, 100, 105 and 130 commits. The PRs with 50, 99 and 100 commits were decorated successfully, while the ones with 105 and 130 commits had the following warning in SonarQube:

Pull request decoration did not happen. Commit ‘xxx’ not found in pull request ‘xxx’

with the appropriate hash and PR name.

Can it be confirmed that this is a bug of SonarQube?

Steps to reproduce

  1. Create a PR with 105 commits in GitHub
  2. Wait for the Sonar scan to complete
  3. Observe no status reported back to GitHub, but the report present on the SonarQube server with a warning.

Versions

SonarQube Developer Edition Version 8.3.1 (build 34397)
SonarQube Scanner for Jenkins - 2.11

1 Like

Hi,

Thanks for reporting this. I spent some time checking our code and was able to confirm that we have a bug when handling GitHub P/Rs with more than 100 commits.
Details here: https://jira.sonarsource.com/browse/SONAR-13451

Unfortunately I don’t see any possible workarounds, I hope we can fix it soon.

Thank you for confirming. These sonar checks are used in branch protection rules, so this bug does impede the CI code delivery workflow we recently adopted with SonarQube.

Hope it can be fixed soon.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.