Page MenuHomePhabricator

Install rename-project plugin
Closed, ResolvedPublic

Description

A new plugin was created upstream to support renaming projects. See https://gerrit.googlesource.com/plugins/rename-project/

2.15 support is being added in https://gerrit-review.googlesource.com/c/plugins/rename-project/+/192750

git clone https://gerrit.googlesource.com/plugins/rename-project

Build instructions: https://gerrit.googlesource.com/plugins/rename-project/+/refs/heads/stable-3.2/src/main/resources/Documentation/build.md

Some instruction as to how we build Gerrit https://wikitech.wikimedia.org/wiki/Gerrit#Build_Gerrit

Event Timeline

Paladox changed the task status from Open to Stalled.Aug 14 2018, 7:09 PM

Stalled until notedb is supported in the plugin.

hashar subscribed.

Seems like the plugin had a lot of activity recently. Might be worth looking at again.

I had a few cases for renaming projects, though it is set in stone that we can not rename them so we have adapted :)

Looks like the plugin has been updated?

Looks like the plugin has been updated?

According to @Paladox at T212180#4839151 the plugin does not support NoteDb yet.

@Paladox Does the plugin support NoteDB now (or whichever storage we will be using in the next gerrit upgrade?) Thanks.

Given the plugin does not support NoteDB, there is no point in installing it and I am thus declining this task.

I have filled another task to fulfill renaming repositories in Gerrit, which might or not end up using the plugin. It is a more generic task: T239693: Support renaming repositories in Gerrit

It looks like it also has other limitations that might make the plugin unusable in our install as well.

@hashar it supports NoteDB as of a few weeks ago, but does have some limitations anyways.

Reopening so. Thank you both :]

I have build the plugin locally, blocked on upload it to Archiva cause I lack access. T263721

Change 630548 had a related patch set uploaded (by Hashar; owner: Hashar):
[operations/software/gerrit@deploy/wmf/stable-3.2] Add rename-project plugin stable-3.2-0-g7f89635

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

$ ./deploy_artifacts.py --version stable-3.2-0-g7f89635 plugins/rename-project.jar 

[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------< org.wikimedia:gerrit >------------------------
[INFO] Building Gerrit artifact uploader 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-deploy-plugin:2.7:deploy-file (default-cli) @ gerrit ---
Uploading to wikimedia.releases: https://archiva.wikimedia.org/repository/releases/com/googlesource/gerrit/plugins/rename-project/stable-3.2-0-g7f89635/rename-project-stable-3.2-0-g7f89635.jar
Uploaded to wikimedia.releases: https://archiva.wikimedia.org/repository/releases/com/googlesource/gerrit/plugins/rename-project/stable-3.2-0-g7f89635/rename-project-stable-3.2-0-g7f89635.jar (54 kB at 16 kB/s)
Downloading from wikimedia.releases: https://archiva.wikimedia.org/repository/releases/com/googlesource/gerrit/plugins/rename-project/maven-metadata.xml
Uploading to wikimedia.releases: https://archiva.wikimedia.org/repository/releases/com/googlesource/gerrit/plugins/rename-project/maven-metadata.xml
Uploaded to wikimedia.releases: https://archiva.wikimedia.org/repository/releases/com/googlesource/gerrit/plugins/rename-project/maven-metadata.xml (357 B at 213 B/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.861 s
[INFO] Finished at: 2020-09-28T11:13:17+02:00
[INFO] ------------------------------------------------------------------------

Change 630548 abandoned by Hashar:

[operations/software/gerrit@deploy/wmf/stable-3.2] Add rename-project plugin @ a880148

Reason:

This need to be redone after I have changed the logic to have extra plugins attached as submodules in our wmf/stable-3.2 branch. The artifact is then build by CI and we should use that.

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

Change 995035 had a related patch set uploaded (by Hashar; author: Hashar):

[operations/software/gerrit@wmf/stable-3.7] Add rename-project plugin

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

Change 997437 had a related patch set uploaded (by Hashar; author: Hashar):

[operations/software/gerrit@deploy/wmf/stable-3.7] Add rename-project plugin

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

Change 995035 merged by jenkins-bot:

[operations/software/gerrit@wmf/stable-3.7] Add rename-project plugin

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

Change 997437 merged by jenkins-bot:

[operations/software/gerrit@deploy/wmf/stable-3.7] Add rename-project plugin

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

Mentioned in SAL (#wikimedia-operations) [2024-02-05T14:44:38Z] <hashar@deploy2002> Started deploy [gerrit/gerrit@79dc8f5]: Add rename-project plugin - T201953

Mentioned in SAL (#wikimedia-operations) [2024-02-05T14:44:45Z] <hashar@deploy2002> Finished deploy [gerrit/gerrit@79dc8f5]: Add rename-project plugin - T201953 (duration: 00m 07s)

hashar claimed this task.

I have build / deployed the plugin solving this task. The process to rename the repositories is to be defined in the parent task: T239693: Support renaming repositories in Gerrit