elastic / elastic-otel-java

Apache License 2.0
8 stars 7 forks source link

Fix disabling of inferred spans tests with openJ9 #294

Closed JonasKunz closed 5 days ago

JonasKunz commented 1 week ago

The integration tests for inferred-spans would occasionally crash for openJ9: OpenJ9 support is experimental in async-profiler and seems to be a bit racy, making the JVM crash sometimes.

here is an example of such a failed run.

For that we reason, we already exclude openj9 from async-profiler tests. For the integration tests, the @DisabledOnOpenj9 annotation isn't sufficient though, because there we start the agent via JVM parameters, which potentially can already crash the JVM before JUnit even gets to run.

This PR adds a config option to gradle to exclude projects from running with openJ9 for tests.