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

SurefireArchiver ignores updated results when multiple testing plug-ins use the same reports directory

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None

      This problem occurs if the POM configures multiple testing plug-ins which all output to the same directory and the previous results are still present in the reports directory when the build starts. The SurefireArchiver remembers all existing result files when processing the first test MOJO execution, which misleads it to ignoring updated results produced by subsequent test MOJO executions in the same build.

      One solution would be to record both the existing file and its last modified timestamp and on processing subsequent test MOJOs only reject the same file if its timestamp is unchanged.

      I have prepared a fix, for which I am awaiting legal approval to submit a Pull Request.

          [JENKINS-31524] SurefireArchiver ignores updated results when multiple testing plug-ins use the same reports directory

          Adrian Price created issue -
          Adrian Price made changes -
          Link New: This issue is related to JENKINS-31258 [ JENKINS-31258 ]
          Adrian Price made changes -
          Description Original: This problem occurs if the POM configures multiple testing plug-ins which all output to the same directory and the previous results are still present in the reports directory when the build starts. The SurefireArchiver remembers all existing result files when processing the first test MOJO execution, which misleads it to ignoring updated results produced by subsequent test MOJO executions in the same build.

          One solution would be to record both the existing file and its last modified timestamp and on processing subsequent test MOJOs only reject the same file if its timestamp is unchanged.
          New: This problem occurs if the POM configures multiple testing plug-ins which all output to the same directory and the previous results are still present in the reports directory when the build starts. The SurefireArchiver remembers all existing result files when processing the first test MOJO execution, which misleads it to ignoring updated results produced by subsequent test MOJO executions in the same build.

          One solution would be to record both the existing file and its last modified timestamp and on processing subsequent test MOJOs only reject the same file if its timestamp is unchanged.

          I have prepared a fix, for which I am awaiting legal approval to submit a Pull Request.
          Adrian Price made changes -
          Summary Original: SurefireArchiver ignores updated results when multiple testing plug-ins configured New: SurefireArchiver ignores updated results when multiple testing plug-ins use the same reports directory
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 166939 ] New: JNJira + In-Review [ 198075 ]

            Unassigned Unassigned
            adrianp Adrian Price
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: