Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 458554

Summary: Move core repository to platform
Product: [Eclipse Project] e4 Reporter: Jonas Helming <jhelming>
Component: ToolsAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: denis.roy, Lars.Vogel, webmaster
Version: 0.17   
Target Milestone: ---   
Hardware: PC   
OS: Windows NT   
Whiteboard:
Bug Depends on:    
Bug Blocks: 452061    

Description Jonas Helming CLA 2015-01-27 11:51:05 EST
Move this repository to the platform project please.
Comment 1 Denis Roy CLA 2015-01-27 13:55:13 EST
Which repo?
Comment 2 Jonas Helming CLA 2015-01-27 13:56:29 EST
Sorry, forgot the link:

https://git.eclipse.org/r/#/admin/projects/e4/org.eclipse.e4.tools.core
Comment 3 Denis Roy CLA 2015-01-27 14:07:14 EST
Not that I don't trust what you're doing, but can we get someone on platform to +1 this?  It would help me sleep better at night.
Comment 5 Jonas Helming CLA 2015-01-27 14:08:46 EST
As an example, Lars has +1 it
Comment 6 Lars Vogel CLA 2015-01-27 14:19:29 EST
+1 for the move to platform, this was suggested by the PMC
Comment 7 Denis Roy CLA 2015-01-27 15:13:21 EST
I'm not entirely sure how to move a project that is enabled for Gerrit.  I can't assume that simply mv'ing the directory will actually work. Matt do you know something I don't?
Comment 8 Eclipse Webmaster CLA 2015-01-27 16:00:42 EST
I agree we'd need to do more than just move things in the filesystem.  I found a post[1] by Shawn P. that may indicate where we need to change the DB(although he was splitting data).

A quick tour of Google turned up this[2] which links to a code patch here[3], so they do appear to be 'working on it', in some fashion

-M.

[1]https://groups.google.com/d/msg/repo-discuss/jbhIe4sIUZo/8g3J773avgQJ
[2]http://code.google.com/p/gerrit/issues/detail?id=560
[3]https://gerrit-review.googlesource.com/#/c/42247/
Comment 9 Jonas Helming CLA 2015-02-01 12:39:36 EST
Is there anything, we can help with?
Comment 10 Jonas Helming CLA 2015-02-10 03:19:26 EST
Are there any news on this? Sorry to push a little bit, the development of the e4 core tools is blocked by the whole procedure (including preparation) since 4 weeks now. This is of course not your fault, but it would be great to have an accessible repo and the integration in the platform build asap.
Thanks!
Comment 11 Denis Roy CLA 2015-02-10 09:59:53 EST
Sorry, this is the first time we move a Gerrit repo. We don't want to just rush through it and screw everything up.
Comment 12 Denis Roy CLA 2015-02-10 10:30:51 EST
So here's what I think needs to happen.  Once I've done it in this bug we'll document the process internally.

This was a good resource:
https://groups.google.com/forum/#!topic/repo-discuss/ltIxBipUPKI


a) have $oldprojectname and $newprojectname figured out.  This is typically the path beyond /gitroot/gerrit, and typically looks like "e4/org.eclipse.e4.tools.core.git"

In this case:

$oldprojectname = "e4/org.eclipse.e4.tools.core"
$newprojectname = "platform/org.eclipse.e4.tools.core"


b) validate: SELECT * FROM changes where dest_project_name = "$oldprojectname"

c) if correct: update changes set dest_project_name = "$newprojectname" where dest_project_name = "$oldprojectname"

UPDATE ACCOUNT_PROJECT_WATCHES SET PROJECT_NAME='$newprojectname' WHERE PROJECT_NAME='oldprojectname';

UPDATE CHANGES SET DEST_PROJECT_NAME='projecttorename.new' WHERE DEST_PROJECT_NAME='projecttorename.old';

d) cd /gitroot; mv $oldprojectname.git $newprojectname.git

e) Move/recreate the symlink: cd /gitroot/gerrit; rm $oldprojectname.git then create the new one in the correct location

f) ssh -p 29418 adminusername@gerrit-hostname gerrit flush-caches --all

g) Reindex Gerrit

Stop Gerrit.

java -jar /home/gerrit/review_site/bin/gerrit.war reindex -d /home/gerrit/review_site

Start Gerrit.

 

7. Update permission inheritance (Rights Inherit From), if necessary 

Web UI > Projects > Select projecttorename.new > Access > Edit

 

8. Optional: Clone project

To verify your project was renamed, clone it (projecttorename.new) to your local machine.
Comment 13 Denis Roy CLA 2015-02-10 16:08:19 EST
Oddly, this project did not have any Gerrit changes, so there was nothing to do there.

So the new project is now here:
https://git.eclipse.org/r/#/admin/projects/platform/org.eclipse.e4.tools.core

Do you wish to rename it, or keep it like that?
Comment 14 Jonas Helming CLA 2015-02-12 06:55:07 EST
Great, thank you! The name be kept (IMHO).
There are no gerrit changes, because the repo was created from scratch and I only committed the bundles to be moved (including their history).

Can we close this issue?
Comment 15 Denis Roy CLA 2015-02-12 08:01:29 EST
Yes, looks like we're done.  Thank you for your patience.
Comment 16 Lars Vogel CLA 2015-02-12 10:44:08 EST
(In reply to Denis Roy from comment #13)
> Do you wish to rename it, or keep it like that?

Looking at the other repos in platform I think we should rename it. I opened Bug 459798 for the discussion.