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

NUnit Plugin complains (falsely) about clocks out of sync

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: nunit-plugin
    • Labels:
      None
    • Environment:
      Jenkins master installed on CentOS. Agents are running on several Virtual Machines (Windows) on a Ubuntu Linux host
    • Similar Issues:

      Description

      Since few days, nunit-plugin started to complain about clocks being out of sync after the test report is generated correctly.

      In fact, initially it was right, clocks drifted about 4 or 5 seconds and I took the measures to avoid that (they syncronize with an NTP server every hour, just to assure the synchronization throghout the day). However, nunit-plugin still complains, and now all the clocks are synchronized.

       

      This is the exact message I get:

      Recording NUnit tests results
      ERROR: Step ‘Publish NUnit test result report’ failed: Clock on this slave is out of sync with the master, and therefore
      I can't figure out what test results are new and what are old.
      Please keep the slave clock in sync with the master.

       

      There are two things that can be wrong here:

      • The message, since it is basically false (clocks are NOT out of sync)
      • The way this plugin checks the synchronization between the clocks

      Also, as a side note, in my opinion I don't fully understand why is necessary to have the clocks synchronized to the millisecond since all the testing process takes place on the Agent. I only want the report.xml to be parsed and shown regardless its time. In fact, since the entire workspace is cleaned out before starting the tests, the only existing report.xml has to be the most recent --> just take it!

        Attachments

          Activity

          Hide
          mikeberryfr Michael Berry added a comment -

          I'm seeing this exact issue today as well. 
          Clocks are in sync but Nunit Publisher is failing the build. 

          Show
          mikeberryfr Michael Berry added a comment - I'm seeing this exact issue today as well.  Clocks are in sync but Nunit Publisher is failing the build. 

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            carlosgarcia Carlos Garcia
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: