[JIRA] (JENKINS-54689) Incorrect display build duration time

2 views
Skip to first unread message

max.v.kolesnikov@gmail.com (JIRA)

unread,
Nov 18, 2018, 7:09:02 PM11/18/18
to jenkinsc...@googlegroups.com
Maksim Kolesnikov created an issue
 
Jenkins / Bug JENKINS-54689
Incorrect display build duration time
Issue Type: Bug Bug
Assignee: Unassigned
Components: metrics-plugin
Created: 2018-11-19 00:08
Priority: Minor Minor
Reporter: Maksim Kolesnikov

I see an incorrect display of task execution time.

For example, 

This run spent:

  • 11 min waiting;
  • 13 min build duration;
  • 13 min total from scheduled to completion.

In fact, the build was executed in just 2 minutes, but i see 13 minutes (waiting + exec time).

JSON contains correct timings:

"buildableTimeMillis":702663,"buildingDurationMillis":832158,"executingTimeMillis":129299.

 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

max.v.kolesnikov@gmail.com (JIRA)

unread,
Nov 18, 2018, 7:25:01 PM11/18/18
to jenkinsc...@googlegroups.com
Maksim Kolesnikov updated an issue
Change By: Maksim Kolesnikov
Priority: Minor Trivial
Environment: Jenkins 2.138.3

max.v.kolesnikov@gmail.com (JIRA)

unread,
Nov 18, 2018, 7:29:02 PM11/18/18
to jenkinsc...@googlegroups.com

stephenfrench9@gmail.com (JIRA)

unread,
Jan 22, 2019, 3:06:02 PM1/22/19
to jenkinsc...@googlegroups.com
Stephen French assigned an issue to Stephen French
Change By: Stephen French
Assignee: Stephen French

stephenfrench9@gmail.com (JIRA)

unread,
Jan 22, 2019, 3:06:02 PM1/22/19
to jenkinsc...@googlegroups.com
Stephen French started work on Bug JENKINS-54689
 
Change By: Stephen French
Status: Open In Progress

stephenfrench9@gmail.com (JIRA)

unread,
Jan 22, 2019, 3:07:02 PM1/22/19
to jenkinsc...@googlegroups.com
Stephen French stopped work on Bug JENKINS-54689
 
Change By: Stephen French
Status: In Progress Open

stephenfrench9@gmail.com (JIRA)

unread,
Jan 28, 2019, 6:14:02 PM1/28/19
to jenkinsc...@googlegroups.com
Stephen French commented on Bug JENKINS-54689
 
Re: Incorrect display build duration time

I am working on reproducing this error. 

Can you clarify which two reports of build time disagree?

Which display of task execution time are you speaking of? (The pipeline dashboard? For example, I browse to my Jenkins server running on an aws instance at  http://54.198.76.254:8080/ , and then click on my project, to take me to the pipeline dashboard. I named my project 'foo'. So the final address in my browser is http://54.198.76.254:8080/job/foo/. This page gives me times for all the different stages of my Jenkins pipeline)

And the second source for build time (the JSON source), are you finding this at $BUILD_URL/api/json? For example, when I go to http://54.198.76.254:8080/job/foo/1/api/json?pretty=true I can see a "duration" entry with a value of 17994.

max.v.kolesnikov@gmail.com (JIRA)

unread,
Feb 7, 2019, 4:24:10 AM2/7/19
to jenkinsc...@googlegroups.com
Maksim Kolesnikov updated an issue
Change By: Maksim Kolesnikov
Attachment: Screenshot 2019-02-07 at 12.23.35.png

max.v.kolesnikov@gmail.com (JIRA)

unread,
Feb 7, 2019, 4:30:03 AM2/7/19
to jenkinsc...@googlegroups.com

max.v.kolesnikov@gmail.com (JIRA)

unread,
Feb 7, 2019, 4:40:01 AM2/7/19
to jenkinsc...@googlegroups.com

max.v.kolesnikov@gmail.com (JIRA)

unread,
Feb 7, 2019, 4:43:02 AM2/7/19
to jenkinsc...@googlegroups.com
Maksim Kolesnikov commented on Bug JENKINS-54689
 
Re: Incorrect display build duration time

I run several builds and some of them are queued. 

On the screen build was in the queue for 90 second. 

The build worked about 138 seconds. But on build page I see 3 min 49 sec build duration.

Сause it shows all time given the queue time, not the net execution time.

Also this wrong time is shown in the build list:

 

I think on these places we must use "executingTimeMillis" value.

Values from JSON for my example are:

"executingTimeMillis":138877

max.v.kolesnikov@gmail.com (JIRA)

unread,
Feb 7, 2019, 4:44:02 AM2/7/19
to jenkinsc...@googlegroups.com
Maksim Kolesnikov edited a comment on Bug JENKINS-54689
I run several builds and some of them are queued. 

!Screenshot 2019-02-07 at 12.23.35.png|width=344,height=91!


On the screen build was in the queue for 90 second. 

!build.png|width=598,height=66!


The build worked about 138 seconds. But on build page I see 3 min 49 sec build duration.

Сause it shows all time given the queue time, not the net execution time.

Also this wrong time is shown in the build list:

!spisok.png|width=376,height=202!


 

I think on these places we must use "executingTimeMillis" value.

Values from JSON for my example are:

"executingTimeMillis":138877


"buildableTimeMillis":90665

"buildingDurationMillis":229616

m.winter@sap.com (JIRA)

unread,
Jan 21, 2020, 6:39:02 AM1/21/20
to jenkinsc...@googlegroups.com

Technically the duration is the time the job started until it finished. We have pipeline jobs here, they start without the need of an executor, so they usually do not spent any time in the queue. So I assume the job was waiting in between to get a free slot on an agent. So what me might need is an additional column with Execution time.

 

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages