Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add [openjdk11] to Travis cross build #25675

Closed
wants to merge 1 commit into from

Conversation

sullis
Copy link
Contributor

@sullis sullis commented Sep 24, 2018

No description provided.

@akka-ci
Copy link

akka-ci commented Sep 24, 2018

Thank you for your pull request! After a quick sanity check one of the team will reply with 'OK TO TEST' to kick off our automated validation on Jenkins. This compiles the project, runs the tests, and checks for things like binary compatibility and source code formatting. When two team members have also manually reviewed and (perhaps after asking for some amendments) accepted your contribution, it should be good to be merged.

For more details about our contributing process, check out CONTRIBUTING.md - and feel free to ask!

@raboof
Copy link
Member

raboof commented Sep 24, 2018

OK TO TEST

@raboof
Copy link
Member

raboof commented Sep 24, 2018

I guess we can't merge this until #25449 is fixed

@akka-ci akka-ci added validating PR is currently being validated by Jenkins tested PR that was successfully built and tested by Jenkins and removed validating PR is currently being validated by Jenkins labels Sep 24, 2018
@akka-ci
Copy link

akka-ci commented Sep 24, 2018

Test PASSed.

@johanandren
Copy link
Member

Note that while useful, our travis build doesn't do much, where the actual ci is done is our own jenkins servers. We should probably update the JDK9/10 job to run on 11 instead given that is the LTS.

@chbatey
Copy link
Member

chbatey commented Sep 25, 2018

We have an 11 build it just doesn't compile :) https://jenkins.akka.io:8498/job/akka-nightly-jdk11/

@He-Pin
Copy link
Member

He-Pin commented Sep 26, 2018

This is a must:)

@johanandren
Copy link
Member

For reference it is blocked on a static forwarder methods conflict: scala/bug#11061

@johanandren
Copy link
Member

Oh, wait, that has been fixed now, I'll try out 2.12.7 with Java 11 right away.

@johanandren
Copy link
Member

johanandren commented Sep 26, 2018

Sorry for the noise, spoke too soon, 2.12.7 isn't out yet, so this should be fixed when it is.

We have a ticket tracking the compilation failure: #25449

Edit: which was already noted by Raboof earlier, I'll just shut up now.

@chbatey
Copy link
Member

chbatey commented Sep 28, 2018

@sullis now that 2.12.7 is released want to add it to this PR and see if it works in travis for JDK11?

I've kicked off with 2.12.7 now that genjavadoc has been released

@raboof
Copy link
Member

raboof commented Oct 1, 2018

@sullis it would be great if you could rebase this one!

@akka-ci akka-ci added validating PR is currently being validated by Jenkins tested PR that was successfully built and tested by Jenkins and removed tested PR that was successfully built and tested by Jenkins validating PR is currently being validated by Jenkins labels Oct 1, 2018
@akka-ci
Copy link

akka-ci commented Oct 1, 2018

Test PASSed.

@johanandren
Copy link
Member

Hmm, now it got this:

[error] Class jdk.internal.HotSpotIntrinsicCandidate not found - continuing with a stub.
[error] Class jdk.internal.HotSpotIntrinsicCandidate not found - continuing with a stub.
[error] Class jdk.internal.HotSpotIntrinsicCandidate not found - continuing with a stub.
[error] Class jdk.internal.HotSpotIntrinsicCandidate not found - continuing with a stub.
[error] Class jdk.internal.HotSpotIntrinsicCandidate not found - continuing with a stub.
[error] 5 errors found

Wasn't that what we saw in the community build? (@SethTisue ?)

@raboof
Copy link
Member

raboof commented Oct 2, 2018

Hm - might be interesting that it is failing for [info] Compiling 2 Scala sources and 1 Java source to /home/travis/build/akka/akka/akka-stream/target/CompileJdk9-classes - those classes should be compiled with -release 9

@SethTisue
Copy link
Contributor

Wasn't that what we saw in the community build? (@SethTisue ?)

Um, probably, I have trouble keeping all 180 projects straight in my head :-)

but a recent run is https://scala-ci.typesafe.com/view/scala-2.12.x/job/scala-2.12.x-jdk11-integrate-community-build/57/ and it has:

[akka] [error] Failed tests:
[akka] [error] 	akka.io.TcpConnectionSpec
[akka] [error] 	akka.io.UdpConnectedIntegrationSpec

in our config file we have:

      // idk why, but prevents dbuild-only sun.misc.Unsafe compile errors;
      // see https://github.com/scala/community-builds/issues/757
      "set scalacOptions in Compile in actor --= Seq(\"-release\", \"8\")"

but anyway actually we're currently frozen at your v2.15.16 tag, I figured I'd wait for this PR to get resolved, and then try master.

@ktoso ktoso added the t:jdk-next Issues related to future JDK versions label Oct 4, 2018
@johanandren
Copy link
Member

Late answer here for @SethTisue but, those test failures we know about but have yet to look into (#25733)

@patriknw
Copy link
Member

What is the status here? Still waiting for some known issue?

@johanandren
Copy link
Member

I think this should be working by now, just retriggered the build

@dwijnand
Copy link
Member

Nope:

[info] Compiling 2 Scala sources and 1 Java source to /home/travis/build/akka/akka/akka-stream/target/CompileJdk9-classes ...
[error] Class jdk.internal.HotSpotIntrinsicCandidate not found - continuing with a stub.
[error] Class jdk.internal.HotSpotIntrinsicCandidate not found - continuing with a stub.
[error] Class jdk.internal.HotSpotIntrinsicCandidate not found - continuing with a stub.
[error] Class jdk.internal.HotSpotIntrinsicCandidate not found - continuing with a stub.
[error] Class jdk.internal.HotSpotIntrinsicCandidate not found - continuing with a stub.
[error] 5 errors found

@johanandren
Copy link
Member

johanandren commented Nov 14, 2018

We have a nightly jenkins job on JDK 11 which compiles fine (https://jenkins.akka.io:8498/job/akka-nightly-jdk11/ ) so it is not a general compile-on-jdk-11-problem. So I guess it is something about the travis infra and finding JDK versions probably, because of the trix we do to compile the Flow APIs.

I don't think getting the travis job up is super important, even if it would be useful.

@SethTisue
Copy link
Contributor

in the context of the community build, where we are building your v2.5.18 tag, I'm still seeing the "Class jdk.internal.HotSpotIntrinsicCandidate not found" errors. I'm still interested in resolving this somehow, since it's the top blocker (most downstream projects blocked) in the 2.12-on-JDK11 community build

@SethTisue
Copy link
Contributor

SethTisue commented Dec 7, 2018

I've been staring at this and fiddling with it all morning, to no avail... but then I finally had a hunch: maybe using -release 11 instead of -release 9 would fix it? trying it at #26078

as for what the cause might be, maybe it depends on whether the machine you're on has 9 installed in addition to 11? perhaps the Akka Jenkins has both 9 and 11 but Travis-CI has dropped 9 from the image we're using? (that wouldn't account for why I can reproduce the problem on my laptop inside dbuild but not outside, but there could be some separate cause for that.)

@SethTisue
Copy link
Contributor

yeah so Travis went green over at #26078

that's good enough for me to get akka-stream green in the Scala 2.12-on-JDK11 community build, so I'd prefer to stop there and not to take this work any further myself. I suggest y'all follow through by dropping support for building on JDK 9 and 10 and make everything consistently 8 and 11

@patriknw
Copy link
Member

patriknw commented Jan 4, 2019

I'm closing this because we have other jobs that are running full tests on JDK 11 and I don't see much value in adding build cycles to Travis build which doesn't do much. And we should use Adopt JDK as in #26170

@patriknw patriknw closed this Jan 4, 2019
@jrudolph
Copy link
Member

We are now also seeing this but only on some machines.

I've been staring at this and fiddling with it all morning, to no avail... but then I finally had a hunch: maybe using -release 11 instead of -release 9 would fix it? trying it at #26078

Yes, that seems to work but we don't really know what the exact effect of changing that setting is. Is that explained somewhere, @SethTisue?

as for what the cause might be, maybe it depends on whether the machine you're on has 9 installed in addition to 11? perhaps the Akka Jenkins has both 9 and 11 but Travis-CI has dropped 9 from the image we're using? (that wouldn't account for why I can reproduce the problem on my laptop inside dbuild but not outside, but there could be some separate cause for that.)

We experimented with that and think that we can rule that out, as least it's not as simple as that.

@SethTisue
Copy link
Contributor

Yes, that seems to work but we don't really know what the exact effect of changing that setting is. Is that explained somewhere, @SethTisue?

see scala/scala#6362

fwiw, I doubt it's worthwhile to get to the bottom of this, there's no reason to use -release 9 anymore that I can see when you could be using -release 11 instead; I think it's fine (and in fact, best) to pretend that JDK 9 and JDK 10 never existed, certainly that's what we're doing for Scala itself

@jrudolph
Copy link
Member

Thanks, @SethTisue, I learned something there.

fwiw, I doubt it's worthwhile to get to the bottom of this, there's no reason to use -release 9 anymore that I can see when you could be using -release 11 instead; I think it's fine (and in fact, best) to pretend that JDK 9 and JDK 10 never existed, certainly that's what we're doing for Scala itself

Agreed.

@jrudolph jrudolph mentioned this pull request Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t:jdk-next Issues related to future JDK versions tested PR that was successfully built and tested by Jenkins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet