Page MenuHomePhabricator

Install rename-project plugin
Open, LowPublic

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 added a subscriber: hashar.

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] ------------------------------------------------------------------------