r/programming • • Jul 26 '20

OpenJDK Migrates to Github

https://www.infoq.com/news/2020/07/openjdk-github-migration/
132 Upvotes

28 comments sorted by

25

u/stronghup Jul 26 '20

" Despite existing OpenJDK developers’ familiarity with Mercurial and the cost of migration, the Skara project members decided to move to Git. "

17

u/circlesock Jul 26 '20

Moving to git (which has largely "won", regardless of some arguable neat features of hg, bzr, etc.) and moving to github in particular are completely different propositions though. It seems a little odd that Oracle and IBM/Redhat would actually trust Microsoft enough to stick OpenJDK's primary, blessed public git repo on a Microsoft-owned platform. Given the Micrsoft/Java history and all.

And the giant players in Java sphere certainly could simply run their own in-house git hosting just for OpenJDK (kind of like git.kernel.org is for Linux) that would be as or more reliable than github, or use gitlab or bitbucket one of the others, rather than github.

Of course git is a true DVCS, it's just a matter of convention which repo you consider primary, they can move again, particularly if they avoid/ignore some of the more problematic centralised and non-git vendor-lockintastic features of github like issue tracking.

It's just an odd thing, Java canonically existing on Microsoft-controlled servers. But it's been an odd year.

74

u/pron98 Jul 26 '20

I work on OpenJDK. Here are some steps we've taken to not overly depend on GitHub:

  1. Issues stay on a self-hosted JIRA.

  2. For each PR, a bot automatically generate a patch that's posted to the mailing list, and all comments are two-way mirrored between GH and the mailing list.

  3. All links to commits in issues don't point directly at GH but at an indirection through our domain.

  4. All bots work on both GH and GitLab

This means that we can move off of GH pretty much instantly if the need arises. But self hosting just wouldn't serve our goals. We want speed all around the world, and we don't want to spend resources on administration.

1

u/stronghup Jul 26 '20

Does anyone know if JDK needs to pay money for GitHub? If it's free that would be a good deal, right?

3

u/anonveggy Jul 27 '20

Wth are you expecting Microsoft to do? It's a distributed system... If Ms tries to pull something shady, they can just push to another remote and work as if nothing happened. Issues are still in jira and PR data can be copied and archived

3

u/[deleted] Jul 27 '20

t seems a little odd that Oracle and IBM/Redhat would actually trust Microsoft enough to stick OpenJDK's primary, blessed public git repo on a Microsoft-owned platform. Given the Micrsoft/Java history and all.

"Trust"? What, do you think MS would inject Clippy into OpenJDK code ?

1

u/Lamat Jul 27 '20

Oracle was already on github for a lot of open source stuff anyways.

1

u/zergling_Lester Jul 31 '20

But it's been an odd year.

2020 is an even year ;^)

1

u/[deleted] Jul 26 '20

They moved to GitHub because that’s where people are.

0

u/[deleted] Jul 26 '20

[deleted]

-24

u/circlesock Jul 26 '20

Hard to say. They could implement some irritating stochastic sabotage / statistical failures that would be hard to prove definitively, particularly given modern a/b testing setups that give innocent excuses for variations from client to client.

"fucking hell this java repo takes ages to just clone, I hate working with it". "yeah well it is a big old legacy project.".

Maybe Microsoft aren't as tricksy as they once were, but then again Microsoft.

18

u/OctagonClock Jul 26 '20

Microsoft is nowhere near stupid enough to even think about doing something like this

8

u/Kaarjuus Jul 26 '20

Maybe they've changed for good now, but such fuckery is EXACTLY what they have engaged in before. Like deliberately blocking all browsers other than IE from Microsoft sites, following with even more nefarious targeted sabotage: https://en.wikipedia.org/wiki/History_of_the_Opera_web_browser#First_MSN.com_controversy

1

u/Dull-Criticism Jul 26 '20

Considering they never had AARD activated in any released product, it's a poor example.

-2

u/Tsarbomb Jul 26 '20

This is truly some next level conspiracy garbage. You must think COVID is a conspiracy too.

-7

u/anengineerandacat Jul 26 '20

Really depends, they could for instance monetize PR's; X amount of PR's allowed to be generated per week for free and anything more requires XYZ plan.

They could charge the organization of the repo X cents for every commit.

They could alter their TOS to indicate they have some inherent rights to any and all code that receives a new commit post-acceptance.

Any of the above would be something I could see a big company doing at some point, even more if they wanted to shed some of the weight on the platform but it would basically spell the forever death of it and a mass migration to other platforms.

Honestly though, I don't really see Microsoft doing something like that; they are capable of collecting millions of email addresses, work metrics, code metrics, analysis for future tools, deep integration into their cloud platform, easy source for potential hires, etc.

It's a proverbial goldmine of data; just needs someone to write some tools to process it all up and some sales group to figure out how to profit off it.

6

u/bheklilr Jul 27 '20

They could charge the organization of the repo X cents for every commit.

Well that sounds like a distopian nightmare, and one that would cause a mass migration off the platform.

2

u/IceSentry Jul 27 '20

If they ever do any of that, I can't imagine anyone using github. Git is very easy to self host. Sure github has nice features and it's nice to have a centralized place for code, but it's very easy to not use it.

0

u/[deleted] Jul 26 '20

[deleted]

1

u/uw_NB Jul 27 '20

Their arguments were pretty much gut feelings with very little merit though.

  • Shits like IDE support does not really fly as Mecurial also has decent IDE supports... so is Gitlab/Bitbucket vs Github.

  • PR Workflow being good is a bonker claim as Github does not even support force push and review on Commit Messages.

  • Performance of Mercurial was on-par with Git but they refused to upgrade Mercurial on their managed server. So they ended up running on a very old version of Mercurial and complaint about the slowness...

This is pretty much a top-down political move and they tried to make up reasons to claim that the move was beneficial. Its shitty.

-12

u/reinoudz Jul 26 '20

I don't understand why anyone would like to move from Mercurial to git; especially with the liability of github

11

u/sysop073 Jul 26 '20

The main reasons to move to Git are the size of the version control system metadata and the availability of both tooling and hosting. JEP 357: Migrate from Mercurial to Git describes the motivation for Git in detail.

GitHub was chosen because of the performance, API, and expanded community. JEP 369: Migrate to GitHub explains the reasons for the move to GitHub.

0

u/MikeMitterer Jul 26 '20

Don't you think you are a bit narrow minded?

-9

u/vprise Jul 26 '20

As usual... Late to the party... Better late than never.

6

u/kpatryk91 Jul 26 '20 edited Jul 26 '20

This would be true if hg would be one of the worst VC system in the world.

But it is no so bad, but Git won the VC war and with this step the OpenJDK development will be more open, because I would not be so happy if I had to learn hg just for Java.

1

u/vprise Jul 27 '20

Why isn't it true?

Oracle wasted years of traction and followers in a source control purgatory. The source control aspect of git isn't what matters... It's the community interaction.
Other companies such as Google dumped their own repo systems and moved to github ages ago. Even Oracle dumped java.net and still didn't migrate to github for their most important asset.

1

u/kpatryk91 Jul 27 '20

Ok, switching to a more open source platform what community like would have been better.

But Google switched to Github because they had to, the JS ecosystem is mostly on Github (Angular for example). Like Microsoft, now this company loves everything because they had to, not because they want to. Linux, open source etc.

2

u/vprise Jul 27 '20

You're saying that they missed the boat too. They should have gone to github before MS bought them... So far the fact that MS bought them didn't really change much. On the contrary, services got cheaper. So I'm no fan of MS but I won't explicitly exclude a service because they own it. I don't care about MS's reasoning, they're a corporation not a person. No worse or better than Oracle, Google etc.

If your point about JS had validity Google wouldn't have migrated Android etc. to github. They standardized on the "de-facto" standard as did pretty much the entire industry.

I'm not saying it's good, I'm saying it's way better than a niche SC system with zero discoverability or ecosystem. With an issue tracker that's a nightmare to search and navigate.

1

u/kpatryk91 Jul 27 '20

I would have moved to Github long ago, but I like Git and I have learned it carefully so for me it is way better than SVN or that shitty ClearCase, but Mercurial is very similar to Git so I want to say that it is not so bad compared to the others.

But I am happy that they are moving in this direction. Git is the de-facto VC and Github is a popular site with community and for eaxmple the hipsters would use this, so this was a good decision.

" You're saying that they missed the boat too. " Maybe, but I don't undestand what they missed. I don't think they had to move from Mercurial so fast. The system has been developed this way for x years and it worked.

1

u/vprise Jul 27 '20

Community traction and engagement. That's the value github delivers here.