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

GraalVM native tests failing with 5.10.0 version #3405

Closed
jeanbisutti opened this issue Jul 27, 2023 · 1 comment
Closed

GraalVM native tests failing with 5.10.0 version #3405

jeanbisutti opened this issue Jul 27, 2023 · 1 comment

Comments

@jeanbisutti
Copy link

Version: 5.10.0

The daily GraalVM native tests of the OpenTelemetry Instrumentation for Java project are failing from the bump of org.junit:junit-bom from 5.9.3 to 5.10.0.

To reproduce:

git clone https://github.com/open-telemetry/opentelemetry-java-instrumentation.git

cd opentelemetry-java-instrumentation

./gradlew nativeTest

The addition of the following initializations at the build time fixes the issue:

--initialize-at-build-time=org.junit.platform.launcher.core.LauncherConfig

--initialize-at-build-time=org.junit.jupiter.engine.config.InstantiatingConfigurationParameterConverter

It seems that JUnit 5 code is doing theses initializations for testing.

One way to make JUnit 5.10.0 works with GraalVM native could be the addition of a native-image.properties file with these initializations in a Junit 5 jar.

@marcphilipp
Copy link
Member

Yes, that's correct 5.10.0 requires additional flags as stated in the release notes.

I've just checked and it seems these have already been added by @melix in graalvm/native-build-tools#471.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants