-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Default to the bundled JDK for integration tests in CI #40531
Comments
Pinging @elastic/es-core-infra |
Look like the `--retry` argument is not always affective. Closes elastic#40531
I have been thinking about how to get to a consistent setup here. The rule will be simple: we test everything with the same JDK we bundle ( or the actual bundled JDK when testing a distribution ), except for when a specific system property points to a different one, in which case that one will be used. We also have system properties for java versions which we use in the reproduction line printer to possibly raise awareness that some java version is relevant for the reproduction. There's quite a few places that use runtime java directly, so we'll have to look at all of them, and we'll need the ability to have a branch specific CI setup since we can't back-port this all the way. |
This PR adds build configuration to use the `jdk-download` plugin with unit tests when no runtime java is configured externally. It's a first part in a longer chain of changes described in elastic#40531.
* Addretries to the curl command Look like the `--retry` argument is not always affective. Closes #40531
We need to update CI to no longer pass |
This PR adds build configuration to use the `jdk-download` plugin with unit tests when no runtime java is configured externally. It's a first part in a longer chain of changes described in #40531.
This PR adds build configuration to use the `jdk-download` plugin with unit tests when no runtime java is configured externally. It's a first part in a longer chain of changes described in #40531.
With #51505 I think we can revisit this and remove usages of |
@mark-vieira is this issue still value? If so, what needs to be done? |
Pinging @elastic/es-delivery (Team:Delivery) |
I think we might still be setting |
We've cleaned up all remaining instances of us not using the bundled JDK. |
Right now we only test with the bundled JDK version in the packaging tests but for other integration tests when
RUNTIME_JAVA_HOME
is not set.Since we always set the lather in CI we don't get any coverage with respect to integration tests for the bundled JDK there.
We should move to default to the bundled JDK in CI for everything other than the specific java matrix testing. Since the integ test distribution does not bundle the jdk ( and we don't want it to ) we need a way in the build to provision and use the same jdk as the one we bundle for those tests.
The text was updated successfully, but these errors were encountered: