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

    • 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.

          [JENKINS-48583] Junit test reports are dropped if they have a timestamp within the same second as another test report

          Sanae Rosen created issue -
          Nikolas Falco made changes -
          Link New: This issue is related to JENKINS-52057 [ JENKINS-52057 ]
          Kevin Neal made changes -
          Assignee New: Kevin Neal [ khneal ]
          Kevin Neal made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Kevin Neal made changes -
          Link New: This issue is duplicated by JENKINS-18696 [ JENKINS-18696 ]
          Kevin Neal made changes -
          Released As New: https://github.com/jenkinsci/junit-plugin/releases/tag/junit-1.30
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Rick Oosterholt made changes -
          Link New: This issue causes JENKINS-63490 [ JENKINS-63490 ]

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

              Created:
              Updated:
              Resolved: