Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-36658

OpenShift Pipelines / Tekton Results shows TaskRuns from previous PipelineRuns of the same name

XMLWordPrintable

    • No
    • 1
    • ODC Sprint 3270
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, a `TaskRun` for a particular Pipelinerun was fetched based on the PipelineRun name. If any two PipelineRuns had the same name, the `TaskRun` for both PipelineRuns was fetched and displayed. With this release, the `TaskRun` for the particular PipelineRun will be fetched based on PipelineRun UID instead of PipelineRun name. (link:https://issues.redhat.com/browse/OCPBUGS-36658[OCPBUGS-36658])
      Show
      * Previously, a `TaskRun` for a particular Pipelinerun was fetched based on the PipelineRun name. If any two PipelineRuns had the same name, the `TaskRun` for both PipelineRuns was fetched and displayed. With this release, the `TaskRun` for the particular PipelineRun will be fetched based on PipelineRun UID instead of PipelineRun name. (link: https://issues.redhat.com/browse/OCPBUGS-36658 [ OCPBUGS-36658 ])
    • Bug Fix
    • Done

      Description of problem:

      OpenShift Pipelines / Tekton Results shows TaskRuns from previous PipelineRuns of the same name

      Version-Release number of selected component (if applicable):

      OpenShift Pipelines 1.14.4

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create Pipeline foo with Task bar
      2. Create PipelineRun with name myplr using Pipeline foo
      3. Wait until completion (spawns TaskRun myplr-bar)
      4. In OpenShift web UI for PipelineRun myplr can see TaskRun myplr-bar
      5. Delete PipelineRun myplr
      6. Repeat step 2 & 3
      

      Actual results:

      In OpenShift web UI for PipelineRun myplr can see TaskRun myplr-bar twice - one with the "Archived in Tekton Results" icon and one without. Also note in the details page the graphical steps graph shows steps completed when they're still running (presumably the status is coming from the archived tasks, not the currently running one)

      Expected results:

      PipelineRun Should list only those TaskRun which belongs to it. also the status bar of current taskRun should be used.

      Additional info:

      In lab reproducer, TaskRun status did show correctly as running and completed when finished. Didn't got same behaviour.

              rh-ee-lprabhu Lokananda Prabhu
              rhn-support-sburhade Satyam Burhade
              Sanket Pathak Sanket Pathak
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: