Page MenuHomePhabricator

SonarQube should analyze all Search Platform projects
Closed, ResolvedPublic8 Estimated Story Points

Description

As a developer, I want timely feedback on the quality of my code so that I can correct it before merging when needed.

Most of our projects are analyzed by SonarQube, but we still don't have SonarQube analysis on:

AC:

  • discovery/analytics project is analyzed by SonarQube
  • MjoLniR is analyzed by SonarQube

Event Timeline

@zeljkofilipin is interested in getting more knowledge on this area, please add him to any code review on this work.

EBernhardson set the point value for this task to 8.Oct 19 2020, 5:12 PM
Gehel triaged this task as High priority.Oct 28 2020, 1:28 PM

@Zbyszko for the python code in discovery/analytics you might find the config I have in research/mwaddlink useful, but I still haven't solved the code coverage import bit.

Thanks @kostajh - I'll definitely look into that.

Change 669769 had a related patch set uploaded (by ZPapierski; owner: ZPapierski):
[wikimedia/discovery/analytics@master] Add sonar scanner to discolytics

https://gerrit.wikimedia.org/r/669769

Change 669770 had a related patch set uploaded (by ZPapierski; owner: ZPapierski):
[integration/config@master] Add sonar scanner to discolytics

https://gerrit.wikimedia.org/r/669770

Change 669769 merged by ZPapierski:
[wikimedia/discovery/analytics@master] Add sonar scanner to discolytics

https://gerrit.wikimedia.org/r/669769

Change 669770 merged by jenkins-bot:
[integration/config@master] Add sonar scanner to discolytics

https://gerrit.wikimedia.org/r/669770

Change 671122 had a related patch set uploaded (by Hashar; owner: Hashar):
[integration/config@master] Update workdir for tox sonar scanner

https://gerrit.wikimedia.org/r/671122

Change 671122 merged by jenkins-bot:
[integration/config@master] Update workdir for tox sonar scanner

https://gerrit.wikimedia.org/r/671122

Change 671142 had a related patch set uploaded (by ZPapierski; owner: ZPapierski):
[integration/config@master] Do not set target on master sonar analysis

https://gerrit.wikimedia.org/r/671142

Change 671142 merged by jenkins-bot:
[integration/config@master] Do not set target on master sonar analysis

https://gerrit.wikimedia.org/r/671142

Change 672667 had a related patch set uploaded (by ZPapierski; owner: ZPapierski):
[integration/config@master] Bump sonar scanner version

https://gerrit.wikimedia.org/r/672667

Change 672686 had a related patch set uploaded (by ZPapierski; owner: ZPapierski):
[integration/config@master] Bump sonar-scanner version for tox with sonar jobs

https://gerrit.wikimedia.org/r/672686

Change 672686 merged by jenkins-bot:
[integration/config@master] Bump sonar-scanner version for tox with sonar jobs

https://gerrit.wikimedia.org/r/672686

Change 673022 had a related patch set uploaded (by ZPapierski; owner: ZPapierski):
[integration/config@master] Add verbose logging for sonar

https://gerrit.wikimedia.org/r/673022

Change 673022 merged by jenkins-bot:
[integration/config@master] Add verbose logging for sonar

https://gerrit.wikimedia.org/r/673022

Change 673518 had a related patch set uploaded (by Gehel; owner: Gehel):
[integration/config@master] search/python: add proper options for sonar bot commenting

https://gerrit.wikimedia.org/r/673518

Change 673518 merged by jenkins-bot:
[integration/config@master] search/python: add proper options for sonar bot commenting

https://gerrit.wikimedia.org/r/673518

Change 677613 had a related patch set uploaded (by ZPapierski; author: ZPapierski):

[search/MjoLniR@master] Add sonar properties and coverage config

https://gerrit.wikimedia.org/r/677613

Change 677813 had a related patch set uploaded (by ZPapierski; author: ZPapierski):

[integration/config@master] jjb:Enable Sonar analysis for mjolnir builds

https://gerrit.wikimedia.org/r/677813

Change 677813 merged by jenkins-bot:

[integration/config@master] jjb: Enable Sonar analysis for mjolnir builds

https://gerrit.wikimedia.org/r/677813

Mentioned in SAL (#wikimedia-releng) [2021-05-06T02:52:44Z] <James_F> jjb: Enable Sonar analysis for mjolnir builds T264877

Change 677613 merged by Gehel:

[search/MjoLniR@master] Add sonar properties and coverage config

https://gerrit.wikimedia.org/r/677613