Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2092920

Summary: Dependent tasks in Pipeline chart linked incorrectly
Product: OpenShift Container Platform Reporter: Pavol Pitonak <ppitonak>
Component: Dev ConsoleAssignee: Karthik Jeeyar <kjeeyar>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: low Docs Contact:
Priority: medium    
Version: 4.10CC: cjerolim, kjeeyar, nmukherj
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-17 19:49:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot from UI none

Description Pavol Pitonak 2022-06-02 14:27:21 UTC
Created attachment 1886112 [details]
screenshot from UI

Description of problem:

OpenShift Pipelines task can depend on each other by either explicitly specifying "runAfter" field or by using previous task's results. When task depends implicitly by using results, the pipeline preview chart is incorrect.


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

4.10 (and probably all older)


How reproducible:

always


Steps to Reproduce:
1. Create a pipeline like this
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
  name: pipeline-result
spec:
  tasks:
  - name: first
    taskSpec:
      results:
      - name: foo
      steps:
      - name: test
        image: registry.access.redhat.com/ubi8/ubi-minimal
        script: |
          echo "something very important" > $(results.foo.path)
          sleep 30
          echo "Done"
  - name: second
    params:
    - name: input
      value: $(tasks.first.results.foo)
    runAfter:
    - first
    taskSpec:
      params:
      - name: input
      steps:
      - name: test
        image: registry.access.redhat.com/ubi8/ubi-minimal
        script: |
          echo "$(params.input)"
  - name: third
    params:
    - name: input
      value: $(tasks.first.results.foo)
    taskSpec:
      params:
      - name: input
      steps:
      - name: test
        image: registry.access.redhat.com/ubi8/ubi-minimal
        script: |
          echo "$(params.input)"

2. Run this pipeline

Actual results:

Task "second" is correctly linked to "first" but "third" is a standalone task although it can only run after "first" finishes.


Expected results:

Both tasks "second" and "third" are linked similarly to "first", both run at the same time.


Additional info:

Comment 1 Christoph Jerolimov 2022-06-07 08:22:24 UTC
@serena Should we handle this as a bug or should we handle this as part of 4.12 https://issues.redhat.com/browse/ODC-6690 (Update PL and PLR visualizations to use the new PF pipeline package)

Comment 5 spathak@redhat.com 2022-11-08 14:28:27 UTC
Based on Pavol's comment marking the bug as verified

Comment 8 errata-xmlrpc 2023-01-17 19:49:30 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 (Moderate: OpenShift Container Platform 4.12.0 bug fix and security update), 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/RHSA-2022:7399