Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trunk: git mirror -- periodically import svn into github or gitorious #2237

Closed
robocoder opened this issue Mar 28, 2011 · 10 comments
Closed
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@robocoder
Copy link
Contributor

Instead of migrating svn to git, this ticket proposes we periodically (e.g., nightly) import the latest svn trunk to a remote hosted git repository, as a mirror.

  • some developers prefer git (e.g., several third-party plugins are hosted on github.com)
  • github.com boasts "social coding" and Piwik's strength is its community
  • this might reduce load on dev.piwik.org's svn (and saves us from hosting our own git repository)
@halfdan
Copy link
Member

halfdan commented Mar 29, 2011

Setting up a git-repo (gitorious) is quite easy. Migrating to git would improve collaboration a lot, other developers will feel more comfortable contributing code as their name will not disappear in the commit history (git preserves the author).

SVN users could still use SVN through the git-svn tool.

Hosting everything on github.com will make it a lot easier to submit patches (pull request).

Only mirroring the repo on github won't make this possible as it always needs someone mergin in the changes from a pull request + commiting those changes back to svn (and the original author of the patch will again go into the void).

@robocoder
Copy link
Contributor Author

Let's treat this as a first step. Mirroring svn in git has the least impact on the current workflow of active committers, build scripts, continuous integration, and Trac performance.

We can re-evaluate migrating our repo later. For example, if we see a lot of pull requests with commit-ready patches.

@halfdan
Copy link
Member

halfdan commented Mar 31, 2011

I've setup a mirror for piwik on Github and added vipsoft as second owner. The repository is updated every 30 minutes.

http://github.com/piwik/piwik

vipsoft: I also pushed tags now.

@mattab
Copy link
Member

mattab commented Apr 1, 2011

halfdan thanks! is it ready to be used? is the sync SVN->GIT automatic every day?

I guess now we should advertise it on the site and close this ticket.
How could we maximise chance of users seeing this and suggesting patches etc ?
Also can you please add mattab as admin?

@robocoder
Copy link
Contributor Author

I've added mattab as a project owner on github.

Before we close the ticket, are there any thoughts on:

  • move the syncing process to one of our servers (e.g., dev6)
  • handling pull requests

@mattab
Copy link
Member

mattab commented Apr 4, 2011

I think it would make sense to have the syncing process run on dev.piwik.org itselg, except if it is really CPU (or disk) intensive and lasts for a while, but it shouldn't be...?

@halfdan
Copy link
Member

halfdan commented Apr 4, 2011

The initial import takes about an hour. From then all the updates are pretty fast.

@robocoder
Copy link
Contributor Author

I haven't found the source of the svn2git rebase problem, but I did see a related pull request for a patch in a fork of svn2git.

@robocoder
Copy link
Contributor Author

Can we close this ticket? Or do you want to run halfdan's script on the dev.piwik.org box?

@mattab
Copy link
Member

mattab commented Jan 25, 2012

if halfdan maintains his working it's all good.. if not we could run it on our server if it's easy

@robocoder robocoder added this to the Community and Marketing milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

3 participants