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.