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

GitLab CI PR decoration infinite loop with SSL certificates

    XMLWordPrintable

    Details

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

      Description

      Investigate community feedback : https://community.sonarsource.com/t/gitlab-ci-loop-of-empty-posts-for-pr-decoration-when-quality-gate-fails/19137

       

      We identified two cases that can produce an infinite loop :

      • The GitLab pagination is returning "next" link into the header, where there is no more results (as expressed here) so we go through an infinite number of page
      • GitLab return an empty payload with the "next" link pointing to the current page in loop

       

      The patch applied fix theses 2 uses cases, and add logs in DEBUG and TRACE level to allow us to better investigate what is happening if the issue is coming back.

        Attachments

          Activity

            People

            Assignee:
            pierre.guillot Pierre Guillot
            Reporter:
            pierre.guillot Pierre Guillot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: