Uploaded image for project: 'Bamboo'
  1. Bamboo
  2. BAM-16324

JUnit parser makes unfair modification-date comparison.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 5.10.1.1
    • Component/s: None
    • Labels:
      None

      Description

      My error message is as follows:

      File /tai/bamboo/bamboo-agent-home/xml-data/build-dir/INF-CLEAN-CC61/cleanuptask.xml was ignored because it was modified (2015-09-08 15:45:50.000) before task started (2015-09-08 15:45:50.513)

      As you can see, the file time-stamp is only accurate to the exact second. Time stamps on the file system are truncated to the nearest second. Knowing when the task started is accurate to the millisecond. To compare one truncated number to a non-truncated number and that comparison causing a build failure is an unfair comparison.

      I recommend you detect whether that file was created before the task started, by using the task-start-time by truncating both numbers, as defined by the file system.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              twm Tyler Mace
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: