Difference between revisions of "Talk:PMC proposals/Move Apertium to Github"
(Created page with "<h1><a id="Apertium_on_GitHub_0"></a>Apertium on GitHub</h1> <h2><a id="Reasons_to_Switch_2"></a>Reasons to Switch</h2> <ol> <li>GitHub’s excellent issue tracker</li> <li>Mo...") |
(→Cons) |
||
(20 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
== Reasons to Switch == |
|||
<h1><a id="Apertium_on_GitHub_0"></a>Apertium on GitHub</h1> |
|||
* GitHub’s excellent issue tracker |
|||
<h2><a id="Reasons_to_Switch_2"></a>Reasons to Switch</h2> |
|||
* More people outside Apertium are far more familiar with Git vs. SVN (especially younger folks, see GCI/GSoC) |
|||
<ol> |
|||
* More people outside Apertium have GitHub accounts, easier to start-up for a new user |
|||
<li>GitHub’s excellent issue tracker</li> |
|||
* GitHub’s interface is far superior to SourceForge’s interface |
|||
<li>More people are far more familiar with Git vs. SVN (especially younger folks, see GCI/GSoC)</li> |
|||
* Avoids SourceForge’s downtime (not so bad lately) |
|||
<li>More people have GitHub accounts, easier to start-up for a new user</li> |
|||
* SourceForge gives an awful impression |
|||
<li>GitHub’s interface is far superior to SourceForge’s interface</li> |
|||
* More visibility as an FOSS project |
|||
<li>Avoids SourceForge’s downtime (not so bad lately)</li> |
|||
** GitHub has become the de-facto host for open source: people searches for "github apertium" to find apertium's code |
|||
<li>SourceForge gives an awful impression</li> |
|||
<li>More visibility as an FOSS project (people browse GitHub)</li> |
|||
== Prevailing Approaches == |
|||
</ol> |
|||
Common pros/cons are excluded for the sake of brevity. |
|||
<h2><a id="Prevailing_Approaches_11"></a>Prevailing Approaches</h2> |
|||
<p>Common pros/cons are excluded for the sake of brevity.</p> |
|||
=== Approach 1 === |
|||
<p>A monorepo with all the lingustic data, pairs and language modules. Other folders in SVN like the core engine and peripheral tools (e.g. APy) would live in their own repos.</p> |
|||
==== Variant A ==== |
|||
<h4><a id="Pros_18"></a>Pros</h4> |
|||
A monorepo with all the lingustic data, pairs and language modules. Other folders in SVN like the core engine and peripheral tools (e.g. APy) would live in their own repos. |
|||
<ul> |
|||
<li>Large-scale editing of e.g. 15 pairs is easy.</li> |
|||
==== Pros ==== |
|||
<li>There are no meta-repos or submodules to deal with.</li> |
|||
* Large-scale editing of e.g. 15 pairs is easy. |
|||
<li>GitHub’s interface can be used directly.</li> |
|||
* There are no meta-repos or submodules to deal with. |
|||
</ul> |
|||
* GitHub’s interface can be used directly. |
|||
<h4><a id="Cons_23"></a>Cons</h4> |
|||
* Less need for extremely complicated git commands |
|||
<ul> |
|||
* Possible to do partial checkouts using SVN |
|||
<li>The monorepo would be massive (> 3 GB). |
|||
** This removes completely possible pro #1 |
|||
<ul> |
|||
<li>Most devs (aside from the couple core devs) would have to use GitHub’s SVN bridge to work on a pair. |
|||
==== Cons ==== |
|||
<ul> |
|||
* The monorepo would be massive (> 3 GB). |
|||
<li>This is highly contradictory to working on GitHub</li> |
|||
** Most devs (aside from the couple core devs) would have to use GitHub’s SVN bridge to work on a pair. |
|||
<li>People will have to learn SVN, negating some reasons to switch</li> |
|||
*** This is highly contradictory to working on GitHub |
|||
</ul> |
|||
*** People new to Apertium will have to learn SVN, negating some reasons to switch |
|||
</li> |
|||
*** '''ALTERNATIVE VIEWPOINT:''' there is no "learning SVN", it's three commands. |
|||
<li>Diluted usefulness of branches, PRs and hooks</li> |
|||
** Diluted usefulness of branches, PRs and hooks |
|||
<li>GitHub doesn’t necessarily allow repos larger than 1 GB (unclear whether this limit refers to bare repo). If GitHub decides to stop us at some point after we switch, that’s really bad.</li> |
|||
** GitHub doesn’t necessarily allow repos larger than 1 GB (unclear whether this limit refers to bare repo). If GitHub decides to stop us at some point after we switch, that’s really bad. |
|||
</ul> |
|||
* Everyone will disable email notifications (“watching” a repo) since there will be too much spam |
|||
</li> |
|||
* Massive number of issue labels to curate and apply (non-members cannot tag an issue when submitting), reducing the effectiveness of the issue tracker |
|||
<li>Everyone will disable email notifications (“watching” a repo) since there will be too much spam</li> |
|||
* Commit access will continue to give write access to everything |
|||
<li>Massive number of issue labels to curate and apply (non-members cannot tag an issue when submitting), reducing the effectiveness of the issue tracker</li> |
|||
* Contradictory to the Git/GitHub philosophy (bad impression) |
|||
<li>Commit access will continue to give write access to everything</li> |
|||
* Given that the usual recovery/fix for repo inconsistencies is to wipe and re-clone, having to re-clone a huge monorepo would greatly exacerbate those kinds of issues |
|||
<li>Contradictory to the Git/GitHub philosophy (bad impression)</li> |
|||
</ul> |
|||
==== Variant B ==== |
|||
<h3><a id="Approach_2_35"></a>Approach 2</h3> |
|||
Several monorepos, one for each of: |
|||
<p>Individual repos for each pair, language module and tools. A couple of “meta-repos” that contain submodules pointing to collections of repos, e.g. <code>apertium-staging</code> would contain ~8 submodules pointing to each of the pairs in SVN’s /staging and <code>apertium-all</code> would have submodules to <code>apertium-staging</code>, <code>apertium-incbuator</code>, <code>apertium-languages</code>, etc. This hierarchy would be maintained via GitHub’s repo tags (a.k.a. “topics”), i.e. apertium-xxx-yyy could be marked with the <code>incubator</code> tag to end up in <code>apertium-incubator</code>.</p> |
|||
* incubator |
|||
<h4><a id="Pros_38"></a>Pros</h4> |
|||
* pairs |
|||
<ul> |
|||
* languages |
|||
<li>Usable issue tracker for each repo</li> |
|||
* tools |
|||
<li>Fits into the Git/GitHub philosophy</li> |
|||
<li>Everyone can contribute using Git (no need for SVN bridge)</li> |
|||
==== Pros ==== |
|||
<li>Familiar branching, PR and hooks that work as expected</li> |
|||
* Large-scale editing of e.g. 15 pairs is easy. |
|||
<li>Email notifications and watching repos is useful</li> |
|||
* There are no meta-repos or submodules to deal with. |
|||
<li>Granular permissions (not everyone has access to literally everything, especially useful for GCI/GSoC) |
|||
* GitHub’s interface can be used directly. |
|||
<ul> |
|||
* Less need for extremely complicated git commands |
|||
<li><strong>RESPONSE:</strong> Could be considered more bureaucratic</li> |
|||
* Possible to do partial checkouts using SVN |
|||
</ul> |
|||
</li> |
|||
==== Cons ==== |
|||
</ul> |
|||
* All the cons in ''Variant A'', minus: |
|||
<h4><a id="Cons_47"></a>Cons</h4> |
|||
** Repos will be smaller than the massive monorepo |
|||
<ul> |
|||
* Moving a package between release states and preserving history is complicated (can be scripted) |
|||
<li>Harder for people who make changes to lots of pairs at the same time (i.e. couple of core devs) |
|||
<ul> |
|||
==== Variant C ==== |
|||
<li>Commands are more gnarly (<code>git submodule</code> can be pretty unintuitive) |
|||
Several repos: |
|||
<ul> |
|||
* One for each of the modules in languages/ |
|||
<li><strong>RESPONSE:</strong> Possible to mitigate with aliases and cheat sheets</li> |
|||
* One for all the released pairs |
|||
</ul> |
|||
* One for incubator |
|||
</li> |
|||
* One for each of the core tools |
|||
<li>An analogous change to 15 pairs will result in 15 different commits, each repo has its own history.</li> |
|||
</ul> |
|||
=== Approach 2 === |
|||
</li> |
|||
Individual repos for each pair, language module and tools. A couple of “meta-repos” that contain submodules pointing to collections of repos, e.g. <code>apertium-staging</code> would contain ~8 submodules pointing to each of the pairs in SVN’s /staging and <code>apertium-all</code> would have submodules to <code>apertium-staging</code>, <code>apertium-incbuator</code>, <code>apertium-languages</code>, etc. This hierarchy would be maintained via GitHub’s repo tags (a.k.a. “topics”), i.e. apertium-xxx-yyy could be marked with the <code>incubator</code> tag to end up in <code>apertium-incubator</code>. |
|||
<li>Somewhat harder for people who use the meta-repos |
|||
<ul> |
|||
==== Pros ==== |
|||
<li><strong>RESPONSE:</strong> It’s really not that difficult to checkout (<code>git submodule update --recursive --init</code>) and pull updates to a meta-repo (<code>git pull --recurse-submodules</code>) and with aliases it can be even shorter.</li> |
|||
* Usable issue tracker for each repo |
|||
</ul> |
|||
* Fits into the Git/GitHub philosophy |
|||
</li> |
|||
* People who wish to use Git can contribute using that (while it's still possible to use the SVN bridge for those who want that) |
|||
<li>Requires tooling to keep meta-repos up-to-date |
|||
* Familiar branching, PR and hooks that work as expected |
|||
<ul> |
|||
* Email notifications and watching repos is useful |
|||
<li><strong>RESPONSE:</strong> These are super simple scripts based on GitHub’s reliable API. Sushain is willing to write them and Tino is willing to host (and perhaps code review).</li> |
|||
* An analogous change to 15 pairs will result in 15 different commits, each repo has its own history (''both pro and con''). |
|||
</ul> |
|||
* Granular permissions (not everyone has access to literally everything, especially useful for GCI/GSoC) |
|||
</li> |
|||
** <strong>RESPONSE:</strong> Could be considered more bureaucratic |
|||
<li>GitHub doesn’t provide a nice interface to view repos in a tree format |
|||
*** Re-response: not really. Granular permissoins are a (good) option, but it's not mandatory. We could use "org" permissions instead of "repo" permissions |
|||
<ul> |
|||
* Empowerment for package maintainers: |
|||
<li><strong>RESPONSE:</strong> Sushain will though! See this <a href="https://rawgit.com/sushain97/apertium-on-github/master/source-browser.html">page</a> that can be trivially finished to cover all our repos and is a very simple single HTML file (and pretty nice IMO).</li> |
|||
** They could enforce workflows (code reviews, etc) for specific packages, and accept easily patches from other people (via pull requests) before requesting commit access. |
|||
</ul> |
|||
</li> |
|||
==== Cons ==== |
|||
</ul> |
|||
* Harder for people who make changes to lots of pairs at the same time (i.e. couple of core devs) |
|||
** Commands are more gnarly (<code>git submodule</code> can be pretty unintuitive) |
|||
*** <strong>RESPONSE:</strong> Possible to mitigate with aliases and cheat sheets |
|||
** An analogous change to 15 pairs will result in 15 different commits, each repo has its own history (''both pro and con''). |
|||
*** <strong>RESPONSE:</strong> Already happening for most of the people. Almost no-one has the whole SVN repo, but multiple SVN subfolders. |
|||
* Somewhat harder for people who use the meta-repos |
|||
** <strong>RESPONSE:</strong> It’s really not that difficult to checkout (<code>git submodule update --recursive --init</code>) and pull updates to a meta-repo (<code>git pull --recurse-submodules</code>) and with aliases it can be even shorter. |
|||
* Requires tooling to keep meta-repos up-to-date |
|||
** <strong>RESPONSE:</strong> These are super simple scripts based on GitHub’s reliable API. Sushain is willing to write them and Tino is willing to host (and perhaps code review). |
|||
* GitHub doesn’t provide a nice interface to view repos in a tree format |
|||
** <strong>RESPONSE:</strong> Sushain will though! See this [https://rawgit.com/sushain97/apertium-on-github/master/source-browser.html page] that can be trivially finished to cover all our repos and is a very simple single HTML file (and pretty IMO). This page is automatically generated from the repo tags. |
|||
== Related Concerns == |
|||
* Mailing lists - should probably be preserved on SourceForge for now until/unless we choose to switch to another solution or self-host them. |
|||
* Existing issues - Sushain volunteers to manually transpose (or find an automatic solution) to moving our existing issues (pretty small #) |
Latest revision as of 17:55, 1 February 2018
Contents
Reasons to Switch[edit]
- GitHub’s excellent issue tracker
- More people outside Apertium are far more familiar with Git vs. SVN (especially younger folks, see GCI/GSoC)
- More people outside Apertium have GitHub accounts, easier to start-up for a new user
- GitHub’s interface is far superior to SourceForge’s interface
- Avoids SourceForge’s downtime (not so bad lately)
- SourceForge gives an awful impression
- More visibility as an FOSS project
- GitHub has become the de-facto host for open source: people searches for "github apertium" to find apertium's code
Prevailing Approaches[edit]
Common pros/cons are excluded for the sake of brevity.
Approach 1[edit]
Variant A[edit]
A monorepo with all the lingustic data, pairs and language modules. Other folders in SVN like the core engine and peripheral tools (e.g. APy) would live in their own repos.
Pros[edit]
- Large-scale editing of e.g. 15 pairs is easy.
- There are no meta-repos or submodules to deal with.
- GitHub’s interface can be used directly.
- Less need for extremely complicated git commands
- Possible to do partial checkouts using SVN
- This removes completely possible pro #1
Cons[edit]
- The monorepo would be massive (> 3 GB).
- Most devs (aside from the couple core devs) would have to use GitHub’s SVN bridge to work on a pair.
- This is highly contradictory to working on GitHub
- People new to Apertium will have to learn SVN, negating some reasons to switch
- ALTERNATIVE VIEWPOINT: there is no "learning SVN", it's three commands.
- Diluted usefulness of branches, PRs and hooks
- GitHub doesn’t necessarily allow repos larger than 1 GB (unclear whether this limit refers to bare repo). If GitHub decides to stop us at some point after we switch, that’s really bad.
- Most devs (aside from the couple core devs) would have to use GitHub’s SVN bridge to work on a pair.
- Everyone will disable email notifications (“watching” a repo) since there will be too much spam
- Massive number of issue labels to curate and apply (non-members cannot tag an issue when submitting), reducing the effectiveness of the issue tracker
- Commit access will continue to give write access to everything
- Contradictory to the Git/GitHub philosophy (bad impression)
- Given that the usual recovery/fix for repo inconsistencies is to wipe and re-clone, having to re-clone a huge monorepo would greatly exacerbate those kinds of issues
Variant B[edit]
Several monorepos, one for each of:
- incubator
- pairs
- languages
- tools
Pros[edit]
- Large-scale editing of e.g. 15 pairs is easy.
- There are no meta-repos or submodules to deal with.
- GitHub’s interface can be used directly.
- Less need for extremely complicated git commands
- Possible to do partial checkouts using SVN
Cons[edit]
- All the cons in Variant A, minus:
- Repos will be smaller than the massive monorepo
- Moving a package between release states and preserving history is complicated (can be scripted)
Variant C[edit]
Several repos:
- One for each of the modules in languages/
- One for all the released pairs
- One for incubator
- One for each of the core tools
Approach 2[edit]
Individual repos for each pair, language module and tools. A couple of “meta-repos” that contain submodules pointing to collections of repos, e.g. apertium-staging
would contain ~8 submodules pointing to each of the pairs in SVN’s /staging and apertium-all
would have submodules to apertium-staging
, apertium-incbuator
, apertium-languages
, etc. This hierarchy would be maintained via GitHub’s repo tags (a.k.a. “topics”), i.e. apertium-xxx-yyy could be marked with the incubator
tag to end up in apertium-incubator
.
Pros[edit]
- Usable issue tracker for each repo
- Fits into the Git/GitHub philosophy
- People who wish to use Git can contribute using that (while it's still possible to use the SVN bridge for those who want that)
- Familiar branching, PR and hooks that work as expected
- Email notifications and watching repos is useful
- An analogous change to 15 pairs will result in 15 different commits, each repo has its own history (both pro and con).
- Granular permissions (not everyone has access to literally everything, especially useful for GCI/GSoC)
- RESPONSE: Could be considered more bureaucratic
- Re-response: not really. Granular permissoins are a (good) option, but it's not mandatory. We could use "org" permissions instead of "repo" permissions
- RESPONSE: Could be considered more bureaucratic
- Empowerment for package maintainers:
- They could enforce workflows (code reviews, etc) for specific packages, and accept easily patches from other people (via pull requests) before requesting commit access.
Cons[edit]
- Harder for people who make changes to lots of pairs at the same time (i.e. couple of core devs)
- Commands are more gnarly (
git submodule
can be pretty unintuitive)- RESPONSE: Possible to mitigate with aliases and cheat sheets
- An analogous change to 15 pairs will result in 15 different commits, each repo has its own history (both pro and con).
- RESPONSE: Already happening for most of the people. Almost no-one has the whole SVN repo, but multiple SVN subfolders.
- Commands are more gnarly (
- Somewhat harder for people who use the meta-repos
- RESPONSE: It’s really not that difficult to checkout (
git submodule update --recursive --init
) and pull updates to a meta-repo (git pull --recurse-submodules
) and with aliases it can be even shorter.
- RESPONSE: It’s really not that difficult to checkout (
- Requires tooling to keep meta-repos up-to-date
- RESPONSE: These are super simple scripts based on GitHub’s reliable API. Sushain is willing to write them and Tino is willing to host (and perhaps code review).
- GitHub doesn’t provide a nice interface to view repos in a tree format
- RESPONSE: Sushain will though! See this page that can be trivially finished to cover all our repos and is a very simple single HTML file (and pretty IMO). This page is automatically generated from the repo tags.
Related Concerns[edit]
- Mailing lists - should probably be preserved on SourceForge for now until/unless we choose to switch to another solution or self-host them.
- Existing issues - Sushain volunteers to manually transpose (or find an automatic solution) to moving our existing issues (pretty small #)