Page MenuHomePhabricator

Add Gerrit support to Striker (toolsadmin)
Open, NormalPublic

Description

Striker (https://toolsadmin.wikimedia.org/) can link tools to Diffusion repositories, and even automatically create them on behalf of the tool’s administrator(s). By contrast, creating a new Gerrit repository for a tool requires administrative action, to be requested on https://www.mediawiki.org/wiki/Gerrit/New_repositories/Requests. If we want to stop using Differential (T191182), Striker should make it at least as easy to set up a source code repository on Gerrit as it currently does for Diffusion.

We could do something similar with Gerrit. Roughly:

  • create the git repository under a Gerrit namespace such as labs/tools/ or wmcs/toolforge or whatever name really
  • create a Gerrit group named upon the repository (eg labs-tools-Foobar-owner or wmcs-toolforge-Foobar-owner ) which contains the user that created the repository
  • add that group as the project owner which should grant all permissions on the repo, including push? If not we could enable push right to project owners on the parent repo and that right will be inherited to the other.

Of course, that requires some amount of work to happen on Striker side which is some decent amount of work.

In #wikimedia-cloud on 2019-05-30, @Paladox wrote:
It shouldn't be hard to convert striker to create gerrit repos.
it's a simple post to gerrit's rest api to create an repository.

Event Timeline

Paladox claimed this task.May 30 2019, 4:21 PM
Paladox triaged this task as Normal priority.May 31 2019, 4:56 PM
Siridech set Due Date to Jun 6 2019, 12:00 AM.Jun 6 2019, 8:50 AM
Restricted Application changed the subtype of this task from "Task" to "Deadline". · View Herald TranscriptJun 6 2019, 8:50 AM
Restricted Application changed the subtype of this task from "Deadline" to "Task". · View Herald TranscriptJun 6 2019, 8:57 AM
Dzahn removed a subscriber: Dzahn.Tue, Jul 9, 9:11 PM
bd808 moved this task from Backlog to Doing on the Striker board.Tue, Jul 9, 9:58 PM