[JIRA] (JENKINS-61843) Timestamp missing for trailing lines in view as plain text mode.

0 views
Skip to first unread message

Rocha@Stratovan.com (JIRA)

unread,
Apr 8, 2020, 2:17:02 PM4/8/20
to jenkinsc...@googlegroups.com
John Rocha created an issue
 
Jenkins / Task JENKINS-61843
Timestamp missing for trailing lines in view as plain text mode.
Issue Type: Task Task
Assignee: Unassigned
Components: timestamper-plugin
Created: 2020-04-08 18:16
Environment: Widows 10
Jenkins 2.222.1
Timestamper 1.11.2
Labels: timestamp
Priority: Major Major
Reporter: John Rocha

I upgrade Jenkins and it's plugins once a month, and 2 days ago, 04/06/2020 was that day.

After upgrading plugins and Jenkins I noticed that the timestamper output isn't always working.

The web 'console' view works. It shows timestamps all the way to the last line, for example:

2020-04-08 07:25:53 
2020-04-08 07:25:53 TestCommon_32R.exe ....
2020-04-08 07:25:53 Build was aborted
2020-04-08 07:25:53 Archiving artifacts
2020-04-08 07:25:53 Triggering a new build of GetLogFile-Trigger
2020-04-08 07:25:53 Finished: FAILURE

However if I select the "View as plain text" link the timestamps stop part way through the output, and the timestamps don't match the web 'console' output. This is illustrated below:

2020-04-08 07:25:53  [2020-04-08_14-12-41.142000]:BBBB_MSG:INFO Id=LowRiskCCC msg="Device Registration Received from Airport Network" DEVICE=6CBE031B.140A.4901.911B.CF997C5CCCDB TOKEN=6D1DF198.8E10.474E.AE32.9FBBE10CAE2E
2020-04-08 07:25:53  [2020-04-08_14-12-41.157000]:BBBB_MSG:INFO DDDDDDDD=PM_UnitTestFFF Location=###.###.###.###:#### msg=Received Message=EEE_ANNOUNCE_CAPABILITIES, Device=[1,6CBE031B.140A.4901.911B.CF997C5CCCDB]
2020-04-08 07:25:53  [2020-04-08_14-12-41.157000]:BBBB_MSG:INFO DDDDDDDD=PM_UnitTestFFF Location=###.###.###.###:#### msg=FFF_REC_MSG Device=[1,6CBE031B.140A.4901.911B.CF997C5CCCDB] Type=[EEE_ANNOUNCE_CAPABILITIES,10004] RemoteHost=###.###.###.###:#### CurState=1
  [2020-04-08_14-12-41.157000]:BBBB_MSG:INFO DDDDDDDD=PM_UnitTestFFF Location=###.###.###.###:#### msg=Sent Message=EEE_CAPABILITIES_RESPONSE, Device=[1,6CBE031B.140A.4901.911B.CF997C5CCCDB]
  [2020-04-08_14-12-41.188000]:BBBB_MSG:INFO DDDDDDDD=PM_UnitTestFFF Location=###.###.###.###:#### msg=Received Message=EEE_CONFIGURATION_REQUEST, Device=[1,6CBE031B.140A.4901.911B.CF997C5CCCDB]
  [2020-04-08_14-12-41.188000]:BBBB_MSG:INFO DDDDDDDD=PM_UnitTestFFF Location=###.###.###.###:#### msg=FFF_REC_MSG Device=[LowRiskCCC,1,6CBE031B.140A.4901.911B.CF997C5CCCDB] Type=[EEE_CONFIGURATION_REQUEST,20000] RemoteHost=###.###.###.###:#### CurState=2
  [2020-04-08_14-12-41.188000]:BBBB_MSG:INFO DDDDDDDD=PM_UnitTestFFF Location=###.###.###.###:#### msg=Sent Message=EEE_CONFIGURE_DEVICE_REQUEST, Device=[1,6CBE031B.140A.4901.911B.CF997C5CCCDB]

The output bove shows the line

2020-04-08 07:25:53  [2020-04-08_14-12-41.142000]:BBBB_MSG:INFO Id=LowRiskCCC msg="Device Registration Received from Airport Network" DEVICE=6CBE031B.140A.4901.911B.CF997C5CCCDB TOKEN=6D1DF198.8E10.474E.AE32.9FBBE10CAE2E

at 2020-04-08 07:25:53. However, the 'web console' output shows that with a timestamp of 2020-04-08 07:12:41

I'm not sure if this makes a difference but the log output is very large. The web 'console' view indicates that it is 1,013KB

The timestamping in the 'plain text' view stopped at line 8673 of the output, approximately 1,281,994 charters into the output. 716 lines of the plain text output does not have a timestamp.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

me@basilcrow.com (JIRA)

unread,
Apr 8, 2020, 2:49:03 PM4/8/20
to jenkinsc...@googlegroups.com
Basil Crow assigned an issue to Basil Crow
 

Hi John Rocha, thanks for reporting this. To assist me in reproducing this and determining the cause, can you please provide the following additional information:

  • Is this a Freestyle job or Pipeline job?
  • If Freestyle, was the -Dtimestamper-consolenotes=true option set (unlikely)?
  • If Pipeline, was the "Enabled for all Pipeline builds" option set, or was a timestamps step used?
  • Can you please provide the contents of the build directory (i.e., ${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_NUMBER), sanitized if necessary? This will be key for me to be able to reproduce the problem.
Change By: Basil Crow
Assignee: Basil Crow

Rocha@Stratovan.com (JIRA)

unread,
Apr 8, 2020, 3:49:02 PM4/8/20
to jenkinsc...@googlegroups.com

Rocha@Stratovan.com (JIRA)

unread,
Apr 8, 2020, 3:50:03 PM4/8/20
to jenkinsc...@googlegroups.com
John Rocha commented on Task JENKINS-61843
 
Re: Timestamp missing for trailing lines in view as plain text mode.
  • This is a freestyle job
  • I don't think -Dtimestmper-consolenotes=true has been set. Where would this option reside. It is not being set from the CLI when jenkins is started (jenkins is not running as a service).
  • Requested informtaion has been attached as
    buildFolder.7z
    A 7-zip archive
    Also, my company has some very strict rules for sharing of this information so I was very aggressive with the sensitization. Essentially all letters were changed to 'a' and all numbers were changed to '#'.
    If this doesn't work, I might be able to do less sanitizing.

me@basilcrow.com (JIRA)

unread,
Apr 8, 2020, 5:26:04 PM4/8/20
to jenkinsc...@googlegroups.com

Thank you, John Rocha. I was able to load the build on my local machine and confirmed the expected behavior occurs in version Timestamper 1.11 and the problematic behavior started occurring in Timestamper 1.11.1. At this point I have gathered all the state I need. The next step is to distill your build folder into a minimal reproducible example (MRE) and then of course to find the cause and implement a fix.

Rocha@Stratovan.com (JIRA)

unread,
Apr 8, 2020, 5:28:02 PM4/8/20
to jenkinsc...@googlegroups.com

That sounds great Basil Crow. Is there anything more you need from me?

me@basilcrow.com (JIRA)

unread,
Apr 8, 2020, 5:32:03 PM4/8/20
to jenkinsc...@googlegroups.com

No, I do not need anything more at present. Thanks again!

me@basilcrow.com (JIRA)

unread,
Apr 9, 2020, 11:48:05 PM4/9/20
to jenkinsc...@googlegroups.com

me@basilcrow.com (JIRA)

unread,
Apr 10, 2020, 1:06:02 AM4/10/20
to jenkinsc...@googlegroups.com

Rocha@Stratovan.com (JIRA)

unread,
Apr 10, 2020, 10:39:03 AM4/10/20
to jenkinsc...@googlegroups.com

Hello Basil Crow, how do i "try the incremental build"?

I looked at Jenkins and I don't see an update for the timestamper plugin, so I'm guessing this hasn't been released yet. How do I install your changes in order to test?

Thank you.

me@basilcrow.com (JIRA)

unread,
Apr 10, 2020, 10:48:02 AM4/10/20
to jenkinsc...@googlegroups.com

Rocha@Stratovan.com (JIRA)

unread,
Apr 10, 2020, 11:13:02 AM4/10/20
to jenkinsc...@googlegroups.com

Thank you for the instructions on uploading a plugin .hpi file.

Next question. How do I get the timestamper .hpi file?

You shared a link for jenkinsci/timestamper-plugin#59. What are the steps I do not to download a .hpi file from the link? I don't see any obvious way to do that from the link shared.

me@basilcrow.com (JIRA)

unread,
Apr 10, 2020, 11:18:02 AM4/10/20
to jenkinsc...@googlegroups.com

Rocha@Stratovan.com (JIRA)

unread,
Apr 10, 2020, 11:30:03 AM4/10/20
to jenkinsc...@googlegroups.com

Rocha@Stratovan.com (JIRA)

unread,
Apr 10, 2020, 11:31:04 AM4/10/20
to jenkinsc...@googlegroups.com
John Rocha commented on Task JENKINS-61843
 
Re: Timestamp missing for trailing lines in view as plain text mode.

Thank you for your patience and tutelage. I installed the incremental plugin.

And I can confirm that I know observe the expected timestamps. Thank you.

Also, for my own education. How did you navigate from the #59 plugin link to the HPI link? I suspect that could be useful for me to learn/know for the future.

Thanks again!

Cheers.

Rocha@Stratovan.com (JIRA)

unread,
Apr 10, 2020, 11:32:03 AM4/10/20
to jenkinsc...@googlegroups.com
John Rocha edited a comment on Task JENKINS-61843
Thank you for your patience and tutelage. I installed the incremental plugin.
!installed.png .png !

And I can confirm that I know observe the expected timestamps. Thank you.

Also, for my own education. How did you navigate from the #59 plugin link to the HPI link? I suspect that could be useful for me to learn/know for the future.

Thanks again!

Cheers.

me@basilcrow.com (JIRA)

unread,
Apr 10, 2020, 11:35:02 AM4/10/20
to jenkinsc...@googlegroups.com

No problem. Thank you for reporting the issue and confirming that it has been resolved! I will merge the PR and release 1.11.3 shortly. I had actually linked to the .hpi from the words "this incremental build" in my preceding comment, but missing that is completely understandable since the CSS styling on this page doesn't make hyperlinks very obvious.

me@basilcrow.com (JIRA)

unread,
Apr 10, 2020, 11:37:03 AM4/10/20
to jenkinsc...@googlegroups.com

Rocha@Stratovan.com (JIRA)

unread,
Apr 13, 2020, 11:14:04 AM4/13/20
to jenkinsc...@googlegroups.com
John Rocha commented on Task JENKINS-61843
 
Re: Timestamp missing for trailing lines in view as plain text mode.

Good Morning Basil Crow. I noticed that I am also having this problem on Linux systems even with your patch applied.

How do you want me to proceed? Open a new JIRA or update this one? If updating, what information do you need?

me@basilcrow.com (JIRA)

unread,
Apr 13, 2020, 11:25:02 AM4/13/20
to jenkinsc...@googlegroups.com

Hi John, can you please open a new issue with as much information as possible, ideally including the steps to reproduce the issue from scratch.

Rocha@Stratovan.com (JIRA)

unread,
Apr 14, 2020, 1:33:04 PM4/14/20
to jenkinsc...@googlegroups.com

Hi Basil Crow, I made a mistake. It is working fine on Linux. That one system hadn't been restarted yet. It is working once I restarted with the plugin update you provided.

Thank you for your patience.

me@basilcrow.com (JIRA)

unread,
Apr 14, 2020, 1:40:02 PM4/14/20
to jenkinsc...@googlegroups.com

No problem. I'm glad things are working for you. Feel free to let me know if there are any further issues. If there are no further issues, I'll shoot for a release of 1.11.3 toward the end of the week.

me@basilcrow.com (JIRA)

unread,
Apr 17, 2020, 10:54:02 AM4/17/20
to jenkinsc...@googlegroups.com
 

Released in Timestamper 1.11.3.

Change By: Basil Crow
Status: Fixed but Unreleased Resolved
Released As: 1.11.3
Reply all
Reply to author
Forward
0 new messages