Skip to contentSkip to conversation

The OpenVPN git repositories

Openvpn-devel David Sommerseth 3 participants 4 messages Oct 16, 2015 – Oct 17, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

During the last OpenVPN hackathon in Delft 2015, I brought up the question if we should merge and clean up our git repositories somewhat.

Currently our primary git repositories are:

sourceforge.net - openvpn.git
sourceforge.net - openvpn-testing.git

And we have a partly merged version on github too.

The history of these splits
===========================

Back in 2009-2010-ish I got involed in the OpenVPN community where I pulled down the only available public SVN repository into git. The idea was that James Yonan would use SVN until he was ready to switch to git at some later point. In the mean time, we had a lot of patches lingering on this -devel ML. So we started giving those patches some attention.

Stability and predictability have always been very important for us. So we decided to do all the experimental stuff in a 'testing' repository. This was the community playground. The master branch was meant to be synced with the official 'stable' (openvpn.git) tree, which again was synced against SVN. Each experimental patch set we had would go into a 'feature branch'. Once they were properly tested and as far as possible reviewed, they got merged into the master branch. When doing releases the master branches between the stable and testing repository would be merged and tagged.

This worked very well in the beginning, as we had plenty of feature branches, most significantly the IPv6 transport and IPv6 payload braches. Plus many fixes which had been lingering too long on the mailing list got reviewed, tested and got into our first OpenVPN 2.2 release.

But time changes .....
======================

... and so does our needs. We don't used SVN any more, as James have switched to git as well, a long time ago. In addition, it is in the vast majority of the community developers which works on the OpenVPN 2.x code base these days. In addition, the developer community have grown since the 2009-ish. And we see more patches from even more contributors now. This is truly wonderful!

The whole time we have had a fairly strict regime for accepting patches.
This we do not want to change much at all. We do need to improve the
review process, but among the developers there is a mutual agreement that all reviewed patches *MUST* go to the mailing list. No exceptions.
But we will discuss better arenas for reviewing patches; that's
something will be brought up at a later point.

So what want to propose is to get rid of the openvpn-testing.git repository and merge it into the stable openvpn.git and github repositories.

The reasons are that we have not used any feature branches in several years. Most of them have not even been rebased to the latest master. They are completely outdated. And master branches on both stable and testing repositories are these days basically identical and all new code hits the master branch directly when the patch review results in an ACK.

On the other hand, we do not want to have just a single git repository.
That is to better safe-guard us against situations similar to what the
Linux kernel community experienced a few years ago, where a public git tree got manipulated by an outsider. By having several publicly available git repositories, it will hopefully be easier to discover if something bad has happened - especially for those not necessarily directly involved in the developers community.

As a side note, both Gert and I have commit access to the public repositories, and we also do pushes to private git repositories as well
- as an extra layer of repository validation.

What needs to be done
=====================

- Push needed/interesting branches from openvpn-testing to the stable git repos - both on sourceforge.net and github
- Update developers documentation on the wiki page
- Review any documented processes we may have documented elsewhere
- Remove the openvpn-testing.git repository from sourceforge.net

Does anyone have any opinions on this?

Signature · 3 lines
kind regards,

David Sommerseth
#1 lore raw

Hi,

Quoted 6 lines

The whole time we have had a fairly strict regime for accepting patches.
This we do not want to change much at all. We do need to improve the
review process, but among the developers there is a mutual agreement that all reviewed patches *MUST* go to the mailing list. No exceptions.
But we will discuss better arenas for reviewing patches; that's
something will be brought up at a later point.

Sorry, I could not resist to bring this up now instead of later :). We will need to think about these things anyways when OpenVPN 3 is published in GitHub, which should happen Real Soon(tm). Having a similar review / patch management process for both 2.x and 3.x would make sense in my opinion.

Imho using the mailing list for patch review breaks down when we can't review patches immediately/very soon after they arrive. More often than not patches are _not_ reviewed immediately and then get forgotten about or otherwise linger on the mailing list for a long time. As there is currently no real-time centralized source of information for patch status, every developers needs to track status individually, which adds to everyone's workload.

Afaics there are two benefits to using the mailing list for review discussion. First, one can fairly easily see most of the discussion around a patch. I say most, because oftentimes patch discussions happen on IRC, too, and these often leave no visible traces. Second, the mails get propagated to several mailing list archives, so we don't lose patch history very easily. say, GitHub, goes offline or commit URLs are arbitrarily changed.

In Delft it was suggested to start using GitHub for patch reviews. I'm not very familiar with the GitHub review system, but I'm in favor of anything that saves developer resources for productive work. So I think we should give GitHub reviews a go and figure out a process where we don't loose the good what's good in current mailing list-based reviews. Probably much of the information what's now in review mails could be merged to the commit message and to inline comments in the code. I believe the idea of sending the final(?) reviewed patch to the openvpn-devel mailing list was also brought up.

And just to be clear: I fully agree that patch acceptance criteria should _not_ be relaxed. That part of the current review system has worked very well.

Quoted 3 lines

So what want to propose is to get rid of the openvpn-testing.git repository and merge it into the stable openvpn.git and github repositories.

+1. I don't see the need for openvpn-testing.git in SF.net either.

Quoted 7 lines

On the other hand, we do not want to have just a single git repository.
That is to better safe-guard us against situations similar to what the
Linux kernel community experienced a few years ago, where a public git tree got manipulated by an outsider. By having several publicly available git repositories, it will hopefully be easier to discover if something bad has happened - especially for those not necessarily directly involved in the developers community.

Agreed. The stunts SourceForge has been pulling off lately make me happy for having the repositories in GitHub also.

Quoted 3 lines

As a side note, both Gert and I have commit access to the public repositories, and we also do pushes to private git repositories as well
- as an extra layer of repository validation.

I believe Git itself should complain loudly if someone has been rewriting history of a (remote) repository maliciously.

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock
#2 lore raw
Quoted 10 lines · Samuli Seppänen
Quoted 7 lines
Quoted 7 lines

On the other hand, we do not want to have just a single git repository.
That is to better safe-guard us against situations similar to what the
Linux kernel community experienced a few years ago, where a public git tree got manipulated by an outsider. By having several publicly available git repositories, it will hopefully be easier to discover if something bad has happened - especially for those not necessarily directly involved in the developers community.

Agreed. The stunts SourceForge has been pulling off lately make me happy for having the repositories in GitHub also.

Well, we should always have our git repos hosted on at least two independent sites. I also have opinions about GitHub, but they're more religious than technical, so I'll refrain to enter that discussion now.

Quoted 6 lines
Quoted 3 lines
Quoted 3 lines

As a side note, both Gert and I have commit access to the public repositories, and we also do pushes to private git repositories as well
- as an extra layer of repository validation.

I believe Git itself should complain loudly if someone has been rewriting history of a (remote) repository maliciously.

That is right, but unless there are multiple official sources only Gert and I will notice this when we do pushes.

If there are multiple public sources and concerned users pull down both into their own single local repository, they can also quickly spot if
one of them have diverged or not. Which is why I highly recommend at
least two public sources.

Signature · 3 lines
kind regards,

David Sommerseth
#3 lore raw
In reply to David Sommerseth
Quoted 8 lines · On Friday 16 October 2015 16:03:25 David Sommerseth wrote:

What needs to be done
=====================

- Push needed/interesting branches from openvpn-testing to the stable git repos - both on sourceforge.net and github
- Update developers documentation on the wiki page
- Review any documented processes we may have documented elsewhere
- Remove the openvpn-testing.git repository from sourceforge.net

Wouldn't it make sense to have the repo for the GUI in the same project on Github then? Especially with a OpwnVPN Windows team in mind this makes sense as both repos will be affected by changes.

Heiko

Sophos Technology GmbH, Amalienbadstraẞe 41/Bau 52, D-76227 Karlsruhe, Deutschland
Tel +49 (0)721 25516 0 Fax +49 (0)721 25516 200 E-Mail [email protected]... www.sophos.de
Sitz der Gesellschaft: Karlsruhe, Amtsgericht Mannheim HRB 712658
Geschäftsführer: Nicholas Bray, Pino von Kienlin, Wolfgang Hilpert, Jennifer Onslow.
Sophos GmbH, Gustav-Stresemann-Ring 1, 65189 Wiesbaden, Deutschland
Tel +49 (0) 611 5858-0 Fax +49 (0) 611 5858-1042 E-Mail [email protected]... www.sophos.de
Sitz der Gesellschaft: Wiesbaden, Amtsgericht Wiesbaden HRB 25915 Geschäftsführer: Nicholas Bray, Wolfgang Hilpert, Pino von Kienlin, Jennifer Onslow