Bug 2092920 - Dependent tasks in Pipeline chart linked incorrectly
Summary: Dependent tasks in Pipeline chart linked incorrectly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.10
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 4.12.0
Assignee: Karthik Jeeyar
QA Contact: spathak@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-02 14:27 UTC by Pavol Pitonak
Modified: 2023-01-17 19:49 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-17 19:49:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot from UI (68.44 KB, image/png)
2022-06-02 14:27 UTC, Pavol Pitonak
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 12046 0 None Merged Update PL/PLR visualization to use new PF pipeline package 2022-10-05 05:52:38 UTC
Red Hat Product Errata RHSA-2022:7399 0 None None None 2023-01-17 19:49:50 UTC

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


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