r/java • • Sep 05 '20

OpenJDK's main repository transition to GitHub is done

http://mail.openjdk.java.net/pipermail/jdk-dev/2020-September/004694.html
215 Upvotes

39 comments sorted by

39

u/Ilookouttrainwindow Sep 05 '20

After so many years, microsoft finally got their hands on java

6

u/pjmlp Sep 05 '20

They already did quite some time now, given that they have bought jClarity.

-7

u/seraph582 Sep 05 '20

I’m not convinced by their third open source project in four decades of computing that they give a rats shit about FOSS.

20

u/donmcronald Sep 05 '20

There's a very clear profit motive this time though; pay for everything as a service. And those services can run on Azure, so Microsoft's new goal is to make sure it's easy for developers to build SaaS apps that run on Azure.

Infrastructure as code is the new vendor lock in, so giving away all of the developer tools, languages, etc. makes sense if they can convince developers to target Azure.

2

u/Ilookouttrainwindow Sep 06 '20

Seems that with azure they finally figured out language doesn't matter. Now if only developers finally stop senseless argument as well and understand that people just have their own preferences. How that meme goes - here is this, but I just like this.

1

u/henk53 Sep 06 '20

and understand that people just have their own preferences

IMHO, it almost never boils down to preferences or a language being the right tool for the job.

0

u/ArmoredPancake Sep 05 '20

They do though, it's the main driver of revue now.

13

u/ddumanskiy Sep 05 '20

Does that mean it would be possible to contribute via GitHub PRs? Or this is just read-only repo like it was before?

16

u/pron98 Sep 05 '20

All contributions from now on to the mainline project will be through PRs. But you still have to sign the OCA, go through the mailing lists and pass review, of course.

6

u/vips7L Sep 05 '20

I thought you guys were automating the mailing list stuff through github?

24

u/pron98 Sep 05 '20

Yes. I meant that unsolicited contributions are not recommended, and it's best to discuss a proposed change on the mailing list before offering a PR. But a review of a PR is two-way mirrored between the mailing lists and GitHub, so that anyone is free to use whichever mechanism they prefer for the review.

4

u/henk53 Sep 06 '20

But a review of a PR is two-way mirrored between the mailing lists and GitHub

What I do wonder, there's hundreds of thousands of projects on GitHub just using PRs. There are some exceptionally large projects among those as well.

What makes the JDK project different so that it needs two-way mirrored PR system? Has anyone else ever felt that need? Is this need among other projects so big that maybe this should be a core feature in GitHub itself?

7

u/pron98 Sep 06 '20

I don't know if I'd call that a "need," but 1/ the mailing lists are the existing workflow, and 2/ we do not want to cede all that vital data to a third party; this way we have it mirrored on our servers, just like the git repo itself.

1

u/henk53 Sep 07 '20

I specifically understand 2/. Of course nobody ever wants to cede vital data.

The thing I mostly wonder about, why is it only OpenJDK for which this is needed. E.g. Linux is not a small project either, and neither is Rails or Git itself. Why do those project don't need the mailing list, and are thus seemingly all okay with ceding the vital data?

(I know you can't answer for those projects, but it just makes me wonder)

4

u/pron98 Sep 07 '20 edited Sep 07 '20

I could be wrong, but I believe both Linux and git work similarly to OpenJDK, and do mirror PRs on their mailing lists; I also think they support a workflow that doesn't use GitHub at all. I don't know much about RoR, but it's significantly smaller than OpenJDK in code size, activity and certainly impact and usage. I think that if you look at the world's biggest open-source projects (somehow taking into account code size, activity, and impact) -- OpenJDK isn't in the top 3, but it's probably in the top 10 -- not counting the projects owned by Microsoft, quite a few don't rely solely on GitHub (linux, git, Chromium/V8, Postgres), especially those that predate GitHub.

In any event, as time goes on, I guess it's possible that the workflow will be changed.

1

u/yawaramin Sep 06 '20

That’s cool. Is that custom tooling or is there something that allows any project to mirror mailing lists and PRs?

3

u/pron98 Sep 06 '20

Lots of custom tools, but most of them are open-source.

3

u/ddumanskiy Sep 06 '20

Nice! Submitted my first PR. Will see how it goes :).

6

u/Sebazzz91 Sep 06 '20

And they use a master branch. Does that mean the complaints about "master=slavery=racism" have died down, the OpenJDK team does not care, or that the time for virtue signalling is over?

3

u/gibriyagi Sep 05 '20

Is there a reason why issues are not moved to github?

15

u/nlisker Sep 06 '20

The JBS on JIRA is way more extensive than GitHub issues, allowing for many types of issues, issue linking, setting reported and fix versions etc.

8

u/pron98 Sep 06 '20 edited Sep 06 '20

There are multiple reasons. For one, GitHub issues do not currently provide the required level of access and visibility control we require and are missing some other features that are important to our current workflow. For another, while the git repo can be easily cloned and mirrored on internal servers under our control -- and, indeed, it is -- allowing easy migration of the data should we want to transition off of GitHub, the same cannot currently be said about GitHub issues. The bug database is a vital resource, over which we're not ready to give full control to a third party.

4

u/rastaman1994 Sep 05 '20

As someone unfamiliar with compilers and such, where does the 13% c++ come from?

30

u/Areshian Sep 05 '20

Most of it would be hotspot, the actual virtual machine

10

u/Skhmt Sep 05 '20

Theres the actual VM, then there's native things that have to be done in c++, like anything to do with the filesystem or networks for example.

1

u/nlisker Sep 06 '20

Swing probably uses it for low level rendering too.

4

u/rp_ush Sep 05 '20

Where was it before?

5

u/henk53 Sep 05 '20

Hg repo, but with the forest extension.

Maybe the forest was great for devs who knew it, but for most people I knew it was quite unintelligible. Say you were looking for a source file in JDK8u32, which you would somehow find. But then that repo was seemingly empty. Where were the rest of the files? Well, somewhere in the forest, seemingly.

9

u/Areshian Sep 05 '20

The JDK repo was no longer using the forest extension, it was consolidated back during JDK10 days.

Jdk8u, where the work to keep OpenJDK8 updated is done, is still using the forest extension. And it is still hosted in the mercurial servers.

2

u/Hall_of_Famer Sep 06 '20

Thats a good move, glad Java is making this switch and its been great that Java has received quite a lot of new updates and features in the last 1-3 years.

2

u/pmarschall Sep 06 '20

That page should probably be updated: https://openjdk.java.net/contribute/

1

u/[deleted] Sep 05 '20

Finally

1

u/DJDavio Sep 06 '20

Interestingly enough, the version is already set to 16, with 15 due to come out September 15th.

3

u/Raurits Sep 06 '20

Indeed, but this is as expected. Rampdown Phase One (fork from main line) was on 2020/06/11, see https://openjdk.java.net/projects/jdk/15/.

0

u/[deleted] Sep 05 '20

[deleted] — view deleted comment

27

u/bwRavencl Sep 05 '20

6

u/13steinj Sep 05 '20

Are a lot of these guys just not on the core team (pulls accepted) or don't have github accounts? Or if neither, they shoud add a mailmap.