by giomasce · 6y ago · 0 comments
It's perfectly fine to say that they are moving to GitHub hosting, but not to put it on the same level as Mercurial: Mercurial and Git are applications/protocols, while GitHub is a hosting service. You should compare application with application and hosting service with hosting service.
- Migrate from Mercurial to Git - https://openjdk.java.net/jeps/357
- Migrate to GitHub - https://openjdk.java.net/jeps/369
And also in JEP 369 at the and there is:
> In order to prevent the Skara tooling from depending upon a particular provider's API, support for multiple external providers has been a strict requirement from the beginning. All of the tooling is also required to work with the open-source GitLab Community Edition (GitLab CE).
GitHub is as much a tool here as Git itself.
Unfortunate really, as Git should be the panacea of distributed systems, open source. Instead we took that, centralised it all on a single big host, and became dependent on its proprietary features.
Still, these systems come and go. Remember SourceForge anyone?
But what probably differs today is that these modern services seem so much more complex they have an increasing gravity/lock in effect.
And all developers on a project have a backup on their local computer. It might not track the master/main HEAD from Github, but in the event of a disaster you still have backups to recover from.
The nature of git's descentralized nature is misunderstood and I fear the misunderstanding comes from people that did not work with CVS/Subversion.
In any case you still need a source of truth from which releases are cut. And Github has been damned convenient to use as one and you can easily take your git repo and move elsewhere if you want to.
Sure, you can't migrate the links, the project's stars, etc, but that's not part of git. On the bright side, given you can mirror the code, you can keep the Github repo as read-only, which afaik is what the Linux kernel has done.
The huge importance of all that data "that's not part of Git", and the workflow and skill set around it.
Add to that a growing body of developers who don't actually know Git, but do know how to press the button in GitHub.
I don't make any claim for the particular JDK project here, but people _are_ migrating to GitHub, not Git.
Putting it in those terms, questions like the storage requirements of an SCM can't be answered (because GH is a hosting service) and usability of a hosting service can't be answered either (because Mercurial is an SCM). Ultimately, it doesn't allow the fundamental question to be answered - was it a matter of SCM, of hosting service, or both?
As a matter of fact, the article is imprecise/confusing, as it partly mixes issues that were originally separate (although later it expands on this).
See the two separate JEPs:
- [JEP 357: Migrate from Mercurial to Git](https://openjdk.java.net/jeps/357)
- [JEP 369: Migrate to GitHub](https://openjdk.java.net/jeps/369)
Based on a quick reading, the main driver has been the SCM.
I get what you're saying, and if this project in question just wants a "hosting service" and to never touch any of its features, then ok.
But the broader point is that these are not hosting services; they're full-on toolsets and workflows that people are migrating to (or towards, in this case).
So when someone says they're migrating "from Mercurial to GitHub", I'm left wondering: what were they previously using for code reviews, issue tracking, etc?
From the article:
> OpenJDK has used the Mercurial source code management solution since 2008 to store source code and conduct code reviews
This doesn't make sense. Mercurial doesn't provide a code review feature, and neither does Git. So what do they currently use for code reviews?
I had to dig in to the site a bit, but the workflow is described in https://openjdk.java.net/guide/codeReview.html. It looks like they use a (Korn!) shell script called "webrev" that will "generate a set of web pages to display the differences", and they then scp over the static html files to a shared public web server. Here's an example I pulled out of their Atom feed: https://cr.openjdk.java.net/~pbansal/8249548/webrev00/. It's not really clear to me how they comment on each others' diffs, but I guess this must be done out-of-band (maybe via email, chat or walking over to their desk).
It really feels like Git is a relatively small part of the migration. Mercurial and Git support more-or-less the same set of features, and neither one is really much better than the other (tbh I like Mercurial slightly better). Moving to GitHub as a code review tool (and possibly other things too) is going to have a much larger impact on the developer workflow than the version control tool.
And talking about forges I hope we will look beyond just Github and consider all of them (gitlab, gitea, sourcehut, gogs, pagure, gitern, etc.) and focus on their interoperability!
Just mentioned in another comment, but ForgeFed [1] could be the solution to achieve this, creating a federation of forges where it doesn't matter which software one prefers.
> The goal of this Project is to investigate alternative SCM and code review options for the JDK source code, including options based upon Git rather than Mercurial, and including options hosted by third parties.
> Two JEPs are planned for this investigation, first JEP 357: Migrate from Mercurial to Git [2] and second JEP 369: Migrate to GitHub. . [3]
[1] https://openjdk.java.net/projects/skara/
For more detailed information, the OpenJDK mailing lists archive is a good source.
Edit: I was specifically thinking on this main point they mentioned: "Programmatic APIs to enable process assistance and automation of review and processes", which to me means PR and Actions. I was just assuming that they will probably also use the Issues feature too.
The first time I heard about git and github in 2008 I thought this.
Recently, I was searching for a Git - fork project (i.e. a project forked from git itself) which allowed separate machine based accounts for Git branches. It was quite famous, I had used it about 4 years back and I don't remember its name now.
Now, this is the worst case scenario for the search engines -
• 'git fork project' would bring numerous github forked projects.
• 'git original source' would bring the mirror of git in github, but then again there are hundreds of fork.
After, lot of time spent on this in vain, I gave up.
UPDATE: While writing this comment I remembered the USP of that project was 'Branch specific permissions', so I gave a fresh attempt at finding it and I did via SO! It's Gitolite[1].
-github
to your search queries?Just like we can discuss all day about POSIX, UNIX and various implementations of them, while most people would relate to Ubuntu.
https://blogs.windows.com/windowsdeveloper/2016/03/30/run-ba...
Especially early on when the compatibility layer was only fully tested with a specific version of Ubuntu.
It's pretty bothering that most people equate a distributed open-source code versioning system with a centralized Microsoft service, isn't it?
Excluding the contributors to such small projects as KDE, Gnome, Freedesktop, Debian, Arch Linux, Drupal all of which are self hosting Gitlab.
I would think at this point most developers should know that there are services like GitLab and BitBucket, and thus even if they are not totally aware of how Git works as a protocol they should be aware that Git is not directly tied to GitHub.
That all said ... well good on them, its about time.