-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
Packaging tests use Java 8 #13422
Packaging tests use Java 8 #13422
Conversation
To do this we: 1. All the rpm based distros we test support Java 8. We just ask to install it. 2. There is a ppa that works for the Ubuntus. We just add that for them. 3. Debian Jessie has Java 8 in its backports. We just add that repository. 4. Debian Wheezy doesn't have Java 8 easily accessible so we drop it. We could add it back with Orache Java 8 at a later date but that will take a few more backflips and won't support things like vagrant-cachier. This required a ton of rebuilding of vagrant boxes so it also fixes: 1. apt-get update is run too frequently 2. Lots of weird warning messages are spit out of apt-get 3. Switch from the chef provided based images to those provided by boxcutter. The chef images has left vagrant atlas! Closes elastic#13366
Because this contains a few cleanup operations I'll likely backport this to 2.x and 2.0 without the Java 8 portions once this is merge to master. |
Am I doing it wrong? Running
Is the default java on those VMs somewhat old? Should I delete my VMs? Anything potentially cached? |
end | ||
# Wheezy's backports don't contain Openjdk 8 and the backflips required to | ||
# get the sun jdk on there just aren't worth it. We have jessie for testing | ||
# debian and it works fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debian 7 is an officially supported OS for elasticsearch (see https://www.elastic.co/subscriptions/matrix) so I think we should really keep it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes sense to add it back once there is proper java 8 support for it by a backporting repo and this release is released and not just master for development... If we dont have java 8 on the VM, we should ignore for now, thus +1000 for the comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with dropping it because Wheezy is no longer Debian stable. And this is master which won't be released for a while.
I was playing around with it - I can get Oracle Java 8 on there if I spend some more time on it but I'd love to get this in so the master tests are sane again. We can add an issue for wheezy if we really want it back.
I hit the same error as @spinscale even if I destroy the VMs first. |
Weird. I certainly wasn't seeing that error but I've been destroying and rebuilding those VMs a ton of times. So you probably have to destroy the VMs first, honestly. |
Oh! Now I don't know. |
running |
Hurray! I'm playing with it again and coming to the same conclusion. You should be able to run |
Destroying works for me. @tlrx, does destroying it work for you? If it does we can either:
|
Just to keep things moving I'll merge this on Monday morning if I haven't heard from you. Its an improvement if the vagrant tests work in master for anyone because right now they work for no one. |
Unfortunately it still does not work for me:
I destroyed the VMS using It looks like the VMs are still using java 7. If it's just on my computer I think you can merge, but that would be nice to check that it works on more than 2 (yours & @spinscale's) computers. |
I manually remove the LGTM then |
That is rough ! Thanks for tricking that down!
|
Ok - now that I think about this - I can just backport this 100% for 2.0 and 2.x. It won't hurt anything to use Java 8 everywhere and, eventually, we can be a bit more picky. Maybe when working on #13392. Any objections to me just backporting this cleanly and getting those branches onto Java 8 for now? |
@nik9000 I don't have any objections |
Will do then. |
Backported to 2.x. Starting on 2.0. |
Backported to 2.0. Found #13557 in the process. Fun. |
To do this we:
it.
could add it back with Orache Java 8 at a later date but that will take a
few more backflips and won't support things like vagrant-cachier.
This required a ton of rebuilding of vagrant boxes so it also fixes:
The chef images has left vagrant atlas!
Closes #13366