No devops platform configured

Must-share information (formatted with Markdown):

  • SonarQube Developer v9.9.6 (build 92038)
  • Docker
  • Merge Request Decorator
  • New API Token / Different User

Our merge request decorator used to work quite well, but for some reason, it has recently stopped. We did note that the API Token had expired, so we created a new one but we are still unable to get the merge request decorator to work.

Based on the logs, the merge decorator is working?

2024.08.15 15:54:26 INFO  ce[AZFWvd_H0X3ezGK6Luqr][o.s.c.t.p.a.p.PostProjectAnalysisTasksExecutor] Webhooks | globalWebhooks=0 | projectWebhooks=0 | status=SUCCESS | time=697ms
2024.08.15 15:54:26 INFO  ce[AZFWvd_H0X3ezGK6Luqr][o.s.c.t.p.a.p.PostProjectAnalysisTasksExecutor] Pull Request decoration | status=SUCCESS | time=0ms
2024.08.15 15:54:26 INFO  ce[AZFWvd_H0X3ezGK6Luqr][o.s.c.t.p.a.p.PostProjectAnalysisTasksExecutor] Report branch Quality Gate status to devops platforms | status=SUCCESS | time=1ms
2024.08.15 15:54:28 INFO  ce[AZFWvd_H0X3ezGK6Luqr][o.s.c.t.CeWorkerImpl] Executed task | project=<MASKED> | type=REPORT | branch=test_build_delete_me | branchType=BRANCH | id=AZFWvd_H0X3ezGK6Luqr | submitter=colin-werner32328 | status=SUCCESS | time=90570ms

Here are some other, perhaps relevant, observations:

The configuration with GitLab appears to be valid from a Global Administration level:
image

The configuration with GitLab appears to be valid from a project level:
image

I did notice that not all the branches and MRs are being recognized as part of the project, eg the branch I created to test this issue with (test_build_delete_me) is not appearing when I search:
image

Yet, the job that is run as part of the CI/CD pipeline gives me the following link, which works: https://MASKED/dashboard?id=MASKED&pullRequest=1892. So now I actually can see the branch / MR:

Yet, note the curious warning:

At a bit of a loss now, considering either creating a new project OR updating to 10.6.0-developer?

Hey there!

Indeed that does look pretty bizarre.

What environment are you running your merge request analysis in? GitLab CI? Something else?

A few other notes:

  • While, of course, you’re welcome to use v10.6, it shouldn’t be necessary to get this working
  • You don’t need to have the branch analyzed in order to analyze/decorate the pull request (that merges that branch into another)
  • Although ce.log says SUCCESS next to Pull Request decoration, unfortunately, it also says that when the decoration is not even attempted.
  • Creating a new project would be a great troubleshooting step to see if the issue is isolated to a specific project

GitLab CI.

I will try another project…

I tried another project and we are observing the exact same behaviour. Thoughts?

Hm.

I’m going to send you a private message so I can ask you to query an API and send me the exact response.

Hi Colin,

Thank you for the detailed explanation of the issue. I’ve done some investigations, and it’s hard to say what might be the issue in this case.

I can suggest one thing:

Please double-check the project key value in the SQ web UI and the link from the CI tool - they need to match.
By the project key, I mean the id value in the URL.
http://sq.local.com/dashboard?id=test-sq
It might be a case of a typo in a CI config.

If that’s not the case, please create a new message on this topic. I’ll then write you a private message and ask for debug logs for further analysis.

Best regards,
Pawel