This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 481514 - Move webtools.sourceediting repo to Gerrit
Summary: Move webtools.sourceediting repo to Gerrit
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.sse (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: wst.sse CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords:
Depends on: 485786
Blocks:
  Show dependency tree
 
Reported: 2015-11-05 09:29 EST by Mickael Istria CLA
Modified: 2016-01-14 11:14 EST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2015-11-05 09:29:25 EST
In order to make contribution easier to submit and review, the webtools.sourceediting repository should be moved to Gerrit.

The webtools.sourceediting.tests repository should remained untouched as there are short/mid-term plans to merge it into webtools.sourceediting. This webtools.sourceediting.tests repository will be deprecated after that.

The strategy to choose would be that:
* Anyone can submit patch via Gerrit review
* Committers are also allowed to push directly to the repository, using Gerrit remote URL
* The "regular" URL should be kept as a read-only one as possible (to avoid breaking older builds relying on it)

For committers, the change would be to:
1. Make sure Gerrit knows your SSH key by adding it to https://git.eclipse.org/r/#/settings/ssh-keys
2. Change remote URL for webtools.srouceediting to ssh://yourUserId@git.eclipse.org:29418/sourceediting/webtools.sourceediting (note that there are alternatives to use HTTPS if you don't like SSH: https://wiki.eclipse.org/Gerrit#Git_over_HTTPS ).
Comment 1 Nick Sandonato CLA 2015-11-05 13:51:42 EST
Hi Mickael,

Thanks for opening this defect. We also have https://bugs.eclipse.org/bugs/show_bug.cgi?id=480382 open to track moving over to Gerrit.

Alina has been looking at this work as well, in particular in regards to merging tests into source editing off the bat. But I like the idea of getting over to Gerrit first and then trying to merge our tests that way.
Comment 2 Lars Vogel CLA 2015-11-06 00:13:17 EST
Why moving the repo and not only enabling it for Gerrit? That is what we did in platform. It can be easily down by webmaster.
Comment 3 Mickael Istria CLA 2015-11-06 01:34:19 EST
@Nick: ok, I didn't notice the previous bug. Feel free to close this one as DUPLICATE then.

@Lars: the idea with moving repo to Gerrit instead of enabling Gerrit additionally to regular Git is that everyone who wants to contribute would have to use the same remote URL. This removes some confusion and makes the contribution process more consistent betweeen committers and 1-time contributors. Also, on longer-term, plain Git may be abandonned: See bug #452549 for details.
Comment 4 Victor Rubezhny CLA 2015-12-21 09:03:03 EST
The sourceediting repo is moved to Gerrit now.

What do we need to do to enable a Hudson Job for validating the contributions made through Gerrit for sourceediting?

After the sourceediting.tests repo is merged into sourceediting repository and maven project configuration is changed in order to reflect this change the project can be built by the following maven command:

mvn clean install -DskipTests=true -Pbuild-individual-bundles

and JUnit tests can be started with:

mvn clean varify -Pbuild-individual-bundles

As of today build and tests can be performed with success on my local environment.
Comment 5 Mickael Istria CLA 2015-12-21 09:08:35 EST
You'll need to find someone who has permissions to create jobs on WebTools HIPP instance. Unfortunately, I don't have those.
My recommendation for setting up such job for sourceediting would be to create the new sourceediting-gerrit job as a clone of jsdt-gerrit and to simply replace "jsdt" by "sourceediting" in the configuration. It should work immediately.
Comment 6 Mickael Istria CLA 2016-01-13 13:47:42 EST
(In reply to Mickael Istria from comment #5)
> You'll need to find someone who has permissions to create jobs on WebTools
> HIPP instance. Unfortunately, I don't have those.
> My recommendation for setting up such job for sourceediting would be to
> create the new sourceediting-gerrit job as a clone of jsdt-gerrit and to
> simply replace "jsdt" by "sourceediting" in the configuration. It should
> work immediately.

@Victor: did you manage to get a build validating incoming Hudson reviews for sourceediting?
Comment 7 Victor Rubezhny CLA 2016-01-13 14:19:54 EST
(In reply to Mickael Istria from comment #6)
> (In reply to Mickael Istria from comment #5)
> > You'll need to find someone who has permissions to create jobs on WebTools
> > HIPP instance. Unfortunately, I don't have those.
> > My recommendation for setting up such job for sourceediting would be to
> > create the new sourceediting-gerrit job as a clone of jsdt-gerrit and to
> > simply replace "jsdt" by "sourceediting" in the configuration. It should
> > work immediately.
> 
> @Victor: did you manage to get a build validating incoming Hudson reviews
> for sourceediting?

@Mickael, no, I didn't. Thanks for reminding.
I don't know who is able to do it, so I've created:

Bug 485786 - [job] create new Webtools SourceEditing job for Gerrit verify
Comment 8 Victor Rubezhny CLA 2016-01-14 08:15:49 EST
@Mickael, could you please look at https://bugs.eclipse.org/bugs/show_bug.cgi?id=485786#c1 - Mikael Barbero asks us to clarify the requirements for sourceediting gerrit job. My description may be unclear or not correct, so could you please look at and may be add some clarification on what we need.
Comment 9 Thanh Ha CLA 2016-01-14 09:28:19 EST
I created the job:
https://hudson.eclipse.org/webtools/job/sourceediting-gerrit/

Just need someone to test and confirm it works.
Comment 10 Victor Rubezhny CLA 2016-01-14 10:09:33 EST
Thanks to Thanh Ha, now we have the job https://hudson.eclipse.org/webtools/job/sourceediting-gerrit/ is created and working correctly:

- it's being triggered by a Gerrit change
- it executes JUnit tests for sourceediting repository.

We've tested it manually (see: https://hudson.eclipse.org/webtools/job/sourceediting-gerrit/1/) as well as by pushing a change into Gerrit (see: https://hudson.eclipse.org/webtools/job/sourceediting-gerrit/2/) - all worked fine for us.

As such I suppose that the move of webtools.sourceediting repository to Gerrit is done.
Comment 11 Mickael Istria CLA 2016-01-14 11:14:38 EST
Seems like sourceediting now has all the best infrastructure.