jenkinsci / opentelemetry-plugin

Monitor and observe Jenkins with OpenTelemetry.
https://plugins.jenkins.io/opentelemetry/
Apache License 2.0
93 stars 47 forks source link

[Regresion] testFreestyleJob_with_ant_plugin test is failling #775

Closed kuisathaverat closed 6 months ago

kuisathaverat commented 6 months ago

Jenkins and plugins versions report

After merging a Jenkin core bump at https://github.com/jenkinsci/opentelemetry-plugin/pull/756 the test io.jenkins.plugins.opentelemetry.JenkinsOtelPluginFreestyleIntegrationTest.testFreestyleJob_with_ant_plugin it is failing

java.lang.AssertionError: 

Expected: is "jenkins-core"
     but: was "ant"
    at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
    at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
    at io.jenkins.plugins.opentelemetry.BaseIntegrationTest.assertBuildStepMetadata(BaseIntegrationTest.java:237)
    at io.jenkins.plugins.opentelemetry.JenkinsOtelPluginFreestyleIntegrationTest.testFreestyleJob_with_ant_plugin(JenkinsOtelPluginFreestyleIntegrationTest.java:204)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:655)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.lang.Thread.run(Thread.java:829)

What Operating System are you using (both controller, and any agents involved in the problem)?

CI

Reproduction steps

run the CI on master or the PR

Expected Results

the test must pass

Actual Results

the test fail

Anything else?

No response

Are you interested in contributing a fix?

No response

cyrille-leclerc commented 6 months ago

Fixed by