Bug 1768782 - Pipeline Run duration is not shown
Summary: Pipeline Run duration is not shown
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.3.0
Assignee: Abhinandan Das
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-05 09:40 UTC by Yadan Pei
Modified: 2020-01-23 11:11 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-23 11:10:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
DurationWhenRunning (43.68 KB, image/png)
2019-11-18 08:44 UTC, Yadan Pei
no flags Details
DurationWhenFinished (61.17 KB, image/png)
2019-11-18 08:44 UTC, Yadan Pei
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 3301 0 'None' closed Bug 1768782: fix(pipeline-run-row) | Duration field in PipelineRun Row List 2021-01-12 21:52:32 UTC
Red Hat Product Errata RHBA-2020:0062 0 None None None 2020-01-23 11:11:05 UTC

Description Yadan Pei 2019-11-05 09:40:30 UTC
Description of problem:
on Pipeline Runs list page, Duration column are not set with value

Version-Release number of selected component (if applicable):
4.3.0-0.nightly-2019-11-04-210904

How reproducible:
Always

Steps to Reproduce:
1. Install OpenShift Pipelines operator and create Pipelines
1) Install OpenShift Pipeline Operator
2) Create Pipeline, Task, PipelineResource
$ oc new-project pipelines-tutorial
$ oc get serviceaccount   # should list pipeline
$ oc create -f https://raw.githubusercontent.com/openshift/pipelines-tutorial/master/petclinic/manifests.yaml    //Create the Kubernetes objects for deploying the PetClinic app on OpenShift
$ oc create -f https://raw.githubusercontent.com/openshift/tektoncd-catalog/release-v0.7/openshift-client/openshift-client-task.yaml    // install openshift-client task
$ oc create -f https://raw.githubusercontent.com/openshift/pipelines-catalog/release-v0.7/s2i-java-8/s2i-java-8-task.yaml     // install s2i-java task
$ oc create -f https://raw.githubusercontent.com/openshift/pipelines-tutorial/master/pipeline/01-build-deploy.yaml     // create pipeline
$ oc create -f https://raw.githubusercontent.com/openshift/pipelines-tutorial/master/pipeline/02-resources.yaml    // create pipeline resource
3) Trigger some Pipeline Runs and Task Runs
$ tkn pipeline start petclinic-deploy-pipeline \
        -r app-git=petclinic-git \
        -r app-image=petclinic-image \
        -s pipeline
2. Check Pipeline Runs details on console
steps: Pipelines -> Pipeline Runs
3. Check Pipeline Runs info via tkn CLI and oc
$ tkn pipelinerun list
NAME                                  STARTED          DURATION    STATUS      
petclinic-deploy-pipeline-nx5ceh      11 minutes ago   2 minutes   Failed      
petclinic-deploy-pipeline-run-hwbtp   37 minutes ago   3 minutes   Succeeded
$ oc describe pipelinerun petclinic-deploy-pipeline-run-hwbtp 
.......
    petclinic-deploy-pipeline-run-hwbtp-deploy-9wqjm:
      Pipeline Task Name:  deploy
      Status:
        Completion Time:  2019-11-05T08:07:42Z
        Conditions:
          Last Transition Time:  2019-11-05T08:07:42Z
          Message:               All Steps have completed executing
          Reason:                Succeeded
          Status:                True
          Type:                  Succeeded
        Pod Name:                petclinic-deploy-pipeline-run-hwbtp-deploy-9wqjm-pod-489156
        Start Time:              2019-11-05T08:07:24Z
        Steps:
          Container:  step-oc
          Image ID:   quay.io/openshift/origin-cli@sha256:d53c01fda01be6fa6762ff4337f1d7559566d5e98fa7152e4ad131e573c90ad6
          Name:       oc
          Terminated:
            Container ID:  cri-o://e3641f0482a8201773e63c6ce29ad0f762df85cb5f4558d9cb85a8309b95a254
            Exit Code:     0
            Finished At:   2019-11-05T08:07:41Z
            Reason:        Completed
            Started At:    2019-11-05T08:07:39Z
Events:
  Type    Reason     Age   From                 Message
  ----    ------     ----  ----                 -------
  Normal  Succeeded  74m   pipeline-controller  All Tasks have completed executing


Actual results:
2. No data is shown in Duration column

Expected results:
2. The duration should be calculated and show in Duration column 

Additional info:

Comment 1 Abhinandan Das 2019-11-08 09:29:32 UTC
PR for the fix https://github.com/openshift/console/pull/3301 is under review

Comment 3 Yadan Pei 2019-11-18 08:43:44 UTC
Now Duration in  Pipeline Runs is calculated correctly

Verified on 4.3.0-0.nightly-2019-11-17-224250

Comment 4 Yadan Pei 2019-11-18 08:44:20 UTC
Created attachment 1637234 [details]
DurationWhenRunning

Comment 5 Yadan Pei 2019-11-18 08:44:45 UTC
Created attachment 1637235 [details]
DurationWhenFinished

Comment 7 errata-xmlrpc 2020-01-23 11:10:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:0062


Note You need to log in before you can comment on or make changes to this bug.