Skip to content

Datadog CI Visibility broken with JUnit 5.13.0 #8920

@wendigo

Description

@wendigo

Tracer Version(s)

1.49.0

Java Version(s)

24.0.1

JVM Vendor

Eclipse Adoptium / Temurin

Bug Report

Details here: junit-team/junit-framework#4615

With the JUnit 5.13.0, JUnit platform 1.13.0 and surefire configured with:

-javaagent:${settings.localRepository}/com/datadoghq/dd-java-agent/${dep.dd-agent.version}/dd-java-agent-${dep.dd-agent.version}.jar -Ddd.service=stargate-CI -Ddd.civisibility.enabled=true

Tests are failing with:

[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 s <<< FAILURE! -- in JUnit Jupiter
[ERROR] JUnit Jupiter.JUnit Jupiter -- Time elapsed: 0 s <<< ERROR!
org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to execute tests
Caused by: org.junit.platform.commons.JUnitException: Error executing tests for engine junit-jupiter
Caused by: org.junit.platform.commons.PreconditionViolationException: No NamespacedHierarchicalStore was configured for this request

Removing dd agent or setting -Ddd.civisibility.enabled=false makes tests happy again :)

Expected Behavior

DD CI Visibility should work with JUnit 5.13.0

Reproduction Code

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions