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

Junit test reports are dropped if they have a timestamp within the same second as another test report

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • junit-plugin
    • None

      The problem is in this line of code:

      https://github.com/jenkinsci/junit-plugin/blob/master/src/main/java/hudson/tasks/junit/TestResult.java#L297

      If two test reports have the same timestamp field, one of them is ignored.  However, those timestamp fields are only accurate to the second.  We parallelize our test runs and so occasionally two different files will have the same timestamp for a given job. 

      Our workaround is to add a unique number to the timestamp field.

            khneal Kevin Neal
            sanaerosen Sanae Rosen
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: