Bug 1947091

Summary: Incorrect skipped status for conditional tasks in the pipeline run
Product: OpenShift Container Platform Reporter: Karthik Jeeyar <kjeeyar>
Component: Dev ConsoleAssignee: Karthik Jeeyar <kjeeyar>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.7CC: aos-bugs, gamore, nmukherj
Target Milestone: ---   
Target Release: 4.7.z   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1947078 Environment:
Last Closed: 2021-06-15 09:26:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1947078    
Bug Blocks:    
Attachments:
Description Flags
Skipped task is in skipped state none

Description Karthik Jeeyar 2021-04-07 16:22:48 UTC
+++ This bug was initially created as a clone of Bug #1947078 +++

Description of problem:

If When expression or conditions are used in a pipeline, then all the skipped tasks status are shown incorrectly.


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

How reproducible:
Always

Steps to Reproduce:
1. Create the pipelineRun using https://github.com/tektoncd/pipeline/blob/main/examples/v1beta1/pipelineruns/using-optional-workspaces-in-when-expressions.yaml


Actual results:

Skipped tasks are visualized as pending state.

Expected results:

Skipped tasks should in skipped state.

Comment 4 spathak@redhat.com 2021-06-10 10:42:45 UTC
Created attachment 1789793 [details]
Skipped task is in skipped state

Comment 5 spathak@redhat.com 2021-06-10 10:44:10 UTC
Verified on build version: 4.7.0-0.nightly-2021-06-07-203428
Browser: Google Chrome 89

Comment 7 errata-xmlrpc 2021-06-15 09:26:45 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.7.16 security and bug fix 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-2021:2286