Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55115

shard / stage in pipeline test name cannot be disabled

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: xunit-plugin
    • Labels:
      None
    • Environment:
      jenkins 2.149
      xunit plugin 2.31
      junit plugin 1.26.1
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          simonmweber Simon Weber created issue -
          simonmweber Simon Weber made changes -
          Field Original Value New Value
          Epic Link JENKINS-45818 [ 184028 ]
          nfalco Nikolas Falco made changes -
          Issue Type Bug [ 1 ] Improvement [ 4 ]

            People

            Assignee:
            nfalco Nikolas Falco
            Reporter:
            simonmweber Simon Weber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: