Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-14906

Coverage rounding discrepancy on Pull Requests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9.0
    • Component/s: Branch & PR
    • Labels:
    • Edition:
      Developer
    • Production Notes:
      None

      Description

      When coverage figures for an analysed PR are rounded in SQ, a discrepancy can happen.

      For example, our GH check can fail with a rounded coverage value, stating that 

      85.0% is less than 85%

      Whereas, if we check this information in SQ, the actual coverage percentage may be 84.5%, meaning that the check should pass.

      This is affecting (not exclusively):

      • Gitlab Merge Request comments
      • Github checks
      • SQ PR and Project overview

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              zipeng.wu Zipeng Wu
              Reporter:
              belen.pruvost Belén Pruvost
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: