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

On parallel execution stages are not marked according to threshold values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • xunit-plugin
    • None
    • 3.0.6

      We use xunit in a parallel pipeline to analyze test report files.

      When there are multiple test failures, xunit only marks the first calling stage as unstable. All other stages are marked as passed.

      Here is an stage overview of a MWE illustrating the problem:

      All three stages perform the xunit analysis on the same test report file which contains one failing test. The xunit call is like so:

      xunit thresholds: [failed(unstableThreshold: '0')],
                                      tools: [GoogleTest(deleteOutputFiles: true,
                                          failIfNotNew: false,
                                          pattern: "*.xml",
                                          skipNoTestFiles: false,
                                          stopProcessingIfError: true)]
      

      The only difference between the stages is a delay before calling xunit which has been swapped between the three stages for each run.

      I would expect all three stages to be marked unstable, like so:

       


       

      We use xunit version 3.0.5,  and Jenkins Core 2.319.3

            nfalco Nikolas Falco
            keksmaster O B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: