Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332970 - Host official mirrors at GitHub
Summary: Host official mirrors at GitHub
Status: RESOLVED FIXED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: Git (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Chris Aniszczyk CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-20 14:01 EST by Chris Aniszczyk CLA
Modified: 2011-11-08 20:44 EST (History)
16 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Aniszczyk CLA 2010-12-20 14:01:17 EST
We should find a way for eclipse.org projects to have their code mirrored at GitHub. While GitHub doesn't support mirroring out of the box [1], it's still possible to do by pushing the repository on git.eclipse.org to a clone on GitHub via a cron job.

I envision projects entering metadata in portal.eclipse.org that is required for the cronjob to properly mirror things at GitHub.

[1] - http://support.github.com/discussions/repos/684-how-to-create-repository-in-mirror-mode
Comment 1 Glyn Normington CLA 2010-12-20 14:11:36 EST
Please could you explain the use case you have in mind. Currently, anyone can fork an eclipse.org git project to github, but you may have in mind contributing back via a github pull request. Or you might be thinking of mirroring svn projects on github so that git users can clone them easily. Or...
Comment 2 Shawn Pearce CLA 2010-12-20 14:20:05 EST
Like Glyn, I don't get why this matters.  If its to offload work from the
foundation servers onto free hosting from GitHub, we should get them to
setup an official "eclipse" user and webmaster should just mirror all of
the Git repositories they host.  No need for projects to configure it.
Comment 3 Gunnar Wagenknecht CLA 2010-12-20 16:23:35 EST
GitHub offers great usability. Integrating both communities sounds like the right thing to do. 

The idea is to setup mirror of all Eclipse Git repositories at github.com/eclipse similar to what GitHub has for Apache (github.com/apache). 

From my understanding nothing is necessary from thefFoundation side other than asking GitHub to create a mirror of a repo XYZ. The GitHub mirror works using pull.
Comment 4 Gunnar Wagenknecht CLA 2010-12-20 16:24:32 EST
BTW, there already is https://github.com/eclipse with *some* Git repositories. It really should contain all or nothing.
Comment 5 Ketan Padegaonkar CLA 2010-12-20 20:03:24 EST
Is there something that the foundation or individual projects need to do?

AFAIK all that needs done is to open a ticket with github to set this up.
Comment 6 Denis Roy CLA 2011-03-10 14:42:06 EST
ping?
Comment 7 Chris Aniszczyk CLA 2011-03-10 14:44:03 EST
I'm not sure what to do here besides somehow getting GitHub's attention to do something similar for what they did with apache...

http://github.com/apache

Do I open a ticket with them?
Comment 9 Chris Aniszczyk CLA 2011-03-30 15:09:54 EDT
We are one step closer with this.

Wayne (thanks) and I spent some time today and have the proper input needed by the GitHub team... 

http://eclipse.org/projects/git-repos.php

I created a wiki page for now that needs to be expanded a bit once this is online.

http://wiki.eclipse.org/Git/GitHub
Comment 10 Chris Aniszczyk CLA 2011-04-01 12:50:51 EDT
Woot, we are done with this one!

https://github.com/eclipse

The only caveat now is that we have to bug support@github.com every time we need to add some mirrors. They are working on a fully automated solution.

Thanks to Wayne for helping with the portal metadata wrangling and Ketan to give the keys up to the github.com/eclipse organization.
Comment 11 Henrik Rentz-Reichert CLA 2011-04-21 02:12:37 EDT
Two questions:

How can the appearance of a project on the https://github.com/eclipse overview page be changed to show a short description and commit statistic like e.g. egit-github?

Is there already a wiki page on a typical workflow for the integration of contributions on github?
Comment 12 Wayne Beaton CLA 2011-04-21 09:38:29 EDT
(In reply to comment #11)
> Two questions:
> 
> How can the appearance of a project on the https://github.com/eclipse overview
> page be changed to show a short description and commit statistic like e.g.
> egit-github?

I'm not sure why some have this and others do not. I'll dig into it.

> Is there already a wiki page on a typical workflow for the integration of
> contributions on github?

http://wiki.eclipse.org/Development_Resources/Handling_Git_Contributions
Comment 13 Wayne Beaton CLA 2011-04-21 09:45:09 EDT
(In reply to comment #12)
> > How can the appearance of a project on the https://github.com/eclipse overview
> > page be changed to show a short description and commit statistic like e.g.
> > egit-github?
> 
> I'm not sure why some have this and others do not. I'll dig into it.

I decided to check and see what Apache's "organization" page looked like. It seems that--like our organization page--only the top 15 projects have this information. 

The sort order doesn't seem alphabetical. I wonder if it's reasonable to assume that the repositories are listed based on activity? I assume that there is a cost associated with generating those graphs and "top 15" is an arbitrarily-selected reasonable maximum.
Comment 14 David Carver CLA 2011-04-21 13:01:39 EDT
(In reply to comment #11)
> Two questions:
> 
> How can the appearance of a project on the https://github.com/eclipse overview
> page be changed to show a short description and commit statistic like e.g.
> egit-github?
> 
> Is there already a wiki page on a typical workflow for the integration of
> contributions on github?

Another option if you want to see a Commit history, is to setup your project to be analysised by https://www.ohloh.net/.   This of course doesn't show up on the GitHub page, but I believe Wayne is right, the graphs are based on most active.
Comment 15 Roland Schulz CLA 2011-11-08 17:15:06 EST
(In reply to comment #10)
> The only caveat now is that we have to bug support@github.com every time we
> need to add some mirrors. They are working on a fully automated solution.

What should projects do which have migrated and would like to be mirrored? Write directly to support@github.com, open a bug against Community->Git, write here, or just wait? 

(PTP has migrated and we would like to be mirrored.)
Comment 16 Chris Aniszczyk CLA 2011-11-08 20:24:03 EST
(In reply to comment #15)
> What should projects do which have migrated and would like to be mirrored?
> Write directly to support@github.com, open a bug against Community->Git, write
> here, or just wait? 
> 
> (PTP has migrated and we would like to be mirrored.)

Did you update the portal metadata for your project and list your git repository?
http://wiki.eclipse.org/Git/GitHub

http://eclipse.org/projects/git-repos.php

Looks like you have three ptp repositories, is that correct?
Comment 17 Roland Schulz CLA 2011-11-08 20:44:39 EST
(In reply to comment #16)
> (In reply to comment #15)
> > What should projects do which have migrated and would like to be mirrored?
> > Write directly to support@github.com, open a bug against Community->Git, write
> > here, or just wait? 
> > 
> > (PTP has migrated and we would like to be mirrored.)
> 
> Did you update the portal metadata for your project and list your git
> repository?
Yes.

> Looks like you have three ptp repositories, is that correct?
Yes.