scala / scala-jenkins-infra

A Chef cookbook that manages Scala's CI infrastructure.
https://scala-ci.typesafe.com
Apache License 2.0
14 stars 17 forks source link

Scala 2.11 community build needs JDK 6 installed #242

Closed SethTisue closed 6 years ago

SethTisue commented 6 years ago

as seen at https://scala-ci.typesafe.com/view/scala-2.11.x/job/scala-2.11.x-integrate-community-build/950/

+ jvmSelect oracle 6
+ jvmFlavor=oracle
+ jvmMajorVersion=6
+ jvmRoot=/usr/lib/jvm/
++ find -L /usr/lib/jvm/ -name javac -type f -path '*6*oracle*'
+ eligibleCmds=
+ unset jdkHome
+ '[' -d '' ']'
+ echo 'Failed to locate oracle Java 6 in /usr/lib/jvm/, containing:'
Failed to locate oracle Java 6 in /usr/lib/jvm/, containing:
+ find /usr/lib/jvm/ -name java
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
/usr/lib/jvm/java-8-openjdk-amd64/bin/java
/usr/lib/jvm/java-9-openjdk-amd64/bin/java
+ exit 1
Build step 'Execute shell' marked build as failure

this is not urgent. there is no action in 2.11 land currently, and we have the 2.11.x-jdk8 build, and if we need to do a JDK 6 run for QA purposes we can always just do it on a laptop or whatever

SethTisue commented 6 years ago

in the meantime, some tips for running locally on MacOS:

UPDATE: https://github.com/SethTisue/community-builds/tree/2.11.x-jdk6-local-run has some further tweaks I'm using. (Including using a local Artifactory, it's agonizingly slow without one.)

SethTisue commented 6 years ago

@adriaanm I can ssh to the behemoths now, but I can't apt-get install because I can't sudo that voodoo that I do:

[sudo] password for jenkins:
adriaanm commented 6 years ago

jenkins can't sudo, that would be a huge security hole. You should log in as the admin user.

adriaanm commented 6 years ago

(no sudo make me a sandwich for you, jenkins)

adriaanm commented 6 years ago

regarding installing Java 6, I don't know how to get there. Oracle's distro requires a license. Old versions of OpenJDK are hard to install on modern debian.

SethTisue commented 6 years ago

You should log in as the admin user

works, thanks.

regarding installing Java 6, I don't know how to get there. Oracle's distro requires a license

uh, how is that even possible? it was free before, we had it installed before. confused

SethTisue commented 6 years ago

also what if we need to roll 2.11.13 (or, god forbid, 2.10.8) because of some security hole or something?

SethTisue commented 6 years ago

I now finally have a fully green 2.11.x/JDK6 build running locally on my Mac (see remarks above at https://github.com/scala/scala-jenkins-infra/issues/242#issuecomment-365815533), and I have an automated reminder that reminds me to run it every so often.

I think that's fine for now. We can cross the 2.11.13 bridge if we ever come to it.

SethTisue commented 6 years ago

having trouble letting this go...

reference on JDK 6 no longer being available via sudo add-apt-repository ppa:webupd8team/java plus sudo apt-get install oracle-java6-installer like used to work: http://www.webupd8.org/2017/06/why-oracle-java-7-and-6-installers-no.html

however Java 6 Update 45 does remain available from http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html

SethTisue commented 6 years ago

manually installed Java 6 Update 45 into /usr/lib/jvm

jvmSelect finds it as long as you specify the Java "flavor" as j (I thought jdk would work and it didn't so I tried j on a hunch and bingo)

changed the 2.11 job configuration to do that, and to run @daily

wiped out workspace, just in case

SethTisue commented 6 years ago

test run: https://scala-ci.typesafe.com/view/scala-2.11.x/job/scala-2.11.x-integrate-community-build/955/

SethTisue commented 6 years ago

green now at https://scala-ci.typesafe.com/job/scala-2.11.x-integrate-community-build/957/ (last piece was https://github.com/SethTisue/browse/commit/7852a85cc658c4bb89fea89db0fe49c3ee0cf09d)