-
Improvement
-
Resolution: Won't Do
-
Minor
-
None
-
jenkins 2.149
xunit plugin 2.31
junit plugin 1.26.1
Newer versions of the xdist plugin set pipeline information like parallel branch and stage into the test name itself (I believe as of https://issues.jenkins-ci.org/browse/JENKINS-45826).
This is helpful in some cases, but can cause problems:
- upgrading from an older version breaks test history (since its name has changed)
- in situations where branch isn't relevant to the results (eg parallelizing a test suite with dynamically-named branches) it's difficult to visually group failing tests, since they're broken up by branch name
So, I'd like to disable this behavior, but as far as I can tell it can't currently be done. Using step([$class: 'XUnitPublisher' instead of xunit([... is close, but also seems to cause race conditions such as:
java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901) at java.util.ArrayList$Itr.next(ArrayList.java:851) at hudson.tasks.junit.TestResult.tally(TestResult.java:705) at hudson.tasks.junit.TestResult.merge(TestResult.java:319)
Interestingly, this naming behavior only happens on one of two of our Jenkins instances, despite the core + plugin versions all matching, running identical pipeline code, and processing identical xml. I'm not sure why that'd be.