Page MenuHomePhabricator

Self-hosted SonarQube
Closed, DeclinedPublic

Description

At some point, if we want this integration to move beyond proof-of-concept, we'll need to install and maintain our own SonarQube instance.

Our (Code-Health-Metrics) current thinking is:

  1. continue to use sonarcloud.io for per-patch analysis and on postmerge
  2. also on postmerge, analyze patches with our self-hosted SonarQube instance

That way, we will maintain control of our historical data in our self-hosted instance. We can't use the self-hosted instance for per-patch analysis without paying a lot of money for a license.

Event Timeline

AFAIK, tools isn't a good place for this since the home directories are not secure. Is there another option here?

kostajh renamed this task from Install SonarQube on tools.wmflabs.org to Self-hosted SonarQube.Jun 4 2019, 1:38 PM
kostajh updated the task description. (Show Details)
kostajh updated the task description. (Show Details)

I think having one or several (HA) VPS nodes is way better than having them in toolforge. We have more control over the node. I might be able to setup something quickly. Is there a help on how to setup a standalone service?

I think having one or several (HA) VPS nodes is way better than having them in toolforge. We have more control over the node. I might be able to setup something quickly. Is there a help on how to setup a standalone service?

@Ladsgroup I would start here https://docs.sonarqube.org/latest/setup/overview, does that help?

kostajh added a subscriber: Jrbranaa.

It's unclear to me if we actually want this, so I am declining. We would need someone (or a team) to take on installation and maintenance, and maintaining a dual setup (sonarcloud.io for patch review, sonar.wikimedia.org for archives) would definitely be confusing. We'd also need to rewire CI configuration to publish to the self hosted instance. cc @Jrbranaa

@kostajh @Jrbranaa on a related topic, do you know if/how we can/should use sonarcloud.io for Toolforge-hosted projects? (T285622)