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

Raw log with timestamps is cut short

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: timestamper-plugin
    • Labels:
      None
    • Environment:
      Timestamper 1.8.8
      Jenkins 1.651.3
    • Similar Issues:

      Description

      Viewing the consoleText log with timestamps works, but viewing the plaintext log with time stamps does not work properly. The log is cut short, and the time stamps ends too early.

      Console text has proper time stamps:

      00:40:41.937 Finished: SUCCESS
      

      Plain text (.../timestamps?appendLog) does not:

      00:40:41.937  make[3]: Entering directory '/buildroot/otp-OTP-19.2/erts/lib_src'
        make[3]: Nothing to be done for 'all'.
      

      The number of timestamps is about 16k, but there are 26k lines in the log. I can see that some parts of the log, e.g. what looks like empty lines, is handled differently in the consoleText part compared to the plaintext part:

      consoleText skips empty lines:

      00:00:16.744 Sending build context to Docker daemon 19.46 kB
      
      
      00:00:16.834 Step 1 : FROM openjdk:8u131-jre-alpine
      

      /timestamps does not:

      00:00:16.744  Sending build context to Docker daemon 19.46 kB
      00:00:16.834  
      00:00:16.834  
      00:00:16.835  Step 1 : FROM openjdk:8u131-jre-alpine
      

      Here the time stamp becomes skewed.

      It looks like the code which presents the plaintext output does not match the code for the consoleText in some cases which skews the times. This makes the plain text timestamp output essentially useless for most logs.

        Attachments

          Activity

          gunnar Gunnar Strand created issue -
          stevengbrown Steven G Brown made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              stevengbrown Steven G Brown
              Reporter:
              gunnar Gunnar Strand
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: