Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-8835

sorting taskruns by completion time, not actual duration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • Pipelines 1.21.0
    • None
    • UI
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      Included in 1.21: https://github.com/openshift/openshift-docs/pull/100818

      The taskrun duration was getting sorted according to completionTime instead of the duration. So this fix ensures we first compute the durations and then sort the task runs
      Show
      Included in 1.21: https://github.com/openshift/openshift-docs/pull/100818 The taskrun duration was getting sorted according to completionTime instead of the duration. So this fix ensures we first compute the durations and then sort the task runs
    • Bug Fix
    • Done
    • Pipelines Sprint Pioneers 41

      Description of problem:
      Sorting TaskRuns by duration sorts the completion time instead of the actual duration. For example, a TaskRun with duration "6 minutes 5 seconds" may appear above "50 seconds," and "3 minutes 10 seconds" may appear below "1 minute 5 seconds."

      Prerequisites (if any, like setup, operators/versions):

      • OpenShift version: 4.16.36
      • OpenShift Pipelines (Red Hat) version: 1.18.0

      Steps to Reproduce:

      1. Have multiple TaskRuns with a wide range of durations (from seconds to several minutes).
      1. Navigate to:
        https://console-openshift-console.../pipelines/all-namespaces/task-runs?orderBy=desc&sortBy=Duration
      1. Observe the order of the TaskRun durations in the list.

      Actual results:

      • TaskRun durations are not sorted by elapsed time but by their completion time.
      • This results in incorrect ordering, e.g., "6 minutes 5 seconds" shown above "50 seconds."

      Expected results:

      • TaskRuns should be sorted based on the actual elapsed time in seconds (or equivalent numeric representation), not by their completion time.

      Reproducibility (Always/Intermittent/Only Once):
      Always

              rh-ee-apalit Anwesha Palit
              rh-ee-apalit Anwesha Palit
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: