Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPBUGS-44305: Unable to remove finally tasks in pipeline builder mode #14472

Merged

Conversation

lokanandaprabhu
Copy link
Contributor

Fixes:
https://issues.redhat.com/browse/OCPBUGS-44305

Analysis / Root cause:
If all Finally tasks are removed, existing Pipeline Finally task was considered, so user was not able to remove all the Finally tasks

Solution Description:
Used finallyTasks from formData

Screen shots / Gifs for design review:

----BEFORE---

Screen.Recording.2024-11-07.at.12.41.30.PM.mov

---AFTER----

Screen.Recording.2024-11-07.at.12.43.27.PM.mov

Unit test coverage report:
NA

Test setup:

  1. Create a finally task in a pipeline in pipeline builder
  2. Save pipeline
  3. Edit pipeline and remove finally task in pipeline builder
  4. Save pipeline
  5. Observe that the finally task has not been removed

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Nov 7, 2024
@openshift-ci-robot
Copy link
Contributor

@lokanandaprabhu: This pull request references Jira Issue OCPBUGS-44305, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.18.0) matches configured target version for branch (4.18.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @sanketpathak

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Fixes:
https://issues.redhat.com/browse/OCPBUGS-44305

Analysis / Root cause:
If all Finally tasks are removed, existing Pipeline Finally task was considered, so user was not able to remove all the Finally tasks

Solution Description:
Used finallyTasks from formData

Screen shots / Gifs for design review:

----BEFORE---

Screen.Recording.2024-11-07.at.12.41.30.PM.mov

---AFTER----

Screen.Recording.2024-11-07.at.12.43.27.PM.mov

Unit test coverage report:
NA

Test setup:

  1. Create a finally task in a pipeline in pipeline builder
  2. Save pipeline
  3. Edit pipeline and remove finally task in pipeline builder
  4. Save pipeline
  5. Observe that the finally task has not been removed

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot added component/pipelines Related to pipelines-plugin approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Nov 7, 2024
@lokanandaprabhu
Copy link
Contributor Author

/retest

Copy link
Member

@logonoff logonoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verified changes locally

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 20, 2024
Copy link
Contributor

openshift-ci bot commented Nov 20, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: logonoff, lokanandaprabhu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@logonoff
Copy link
Member

/label acknowledge-critical-fixes-only

@openshift-ci openshift-ci bot added the acknowledge-critical-fixes-only Indicates if the issuer of the label is OK with the policy. label Nov 20, 2024
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD c81de79 and 2 for PR HEAD 9af8591 in total

@logonoff
Copy link
Member

/retest

Copy link
Contributor

openshift-ci bot commented Nov 21, 2024

@lokanandaprabhu: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit ea76ee6 into openshift:master Nov 21, 2024
7 checks passed
@openshift-ci-robot
Copy link
Contributor

@lokanandaprabhu: Jira Issue OCPBUGS-44305: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-44305 has been moved to the MODIFIED state.

In response to this:

Fixes:
https://issues.redhat.com/browse/OCPBUGS-44305

Analysis / Root cause:
If all Finally tasks are removed, existing Pipeline Finally task was considered, so user was not able to remove all the Finally tasks

Solution Description:
Used finallyTasks from formData

Screen shots / Gifs for design review:

----BEFORE---

Screen.Recording.2024-11-07.at.12.41.30.PM.mov

---AFTER----

Screen.Recording.2024-11-07.at.12.43.27.PM.mov

Unit test coverage report:
NA

Test setup:

  1. Create a finally task in a pipeline in pipeline builder
  2. Save pipeline
  3. Edit pipeline and remove finally task in pipeline builder
  4. Save pipeline
  5. Observe that the finally task has not been removed

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

Distgit: openshift-enterprise-console
This PR has been included in build openshift-enterprise-console-container-v4.19.0-202411212037.p0.gea76ee6.assembly.stream.el9.
All builds following this will include this PR.

@lokanandaprabhu
Copy link
Contributor Author

/cherrypick release-4.17

@openshift-cherrypick-robot

@lokanandaprabhu: new pull request created: #14527

In response to this:

/cherrypick release-4.17

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

logonoff added a commit to logonoff/openshift-console that referenced this pull request Nov 26, 2024
…re/OCPBUGS-44305"

This reverts commit ea76ee6, reversing
changes made to c81de79.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acknowledge-critical-fixes-only Indicates if the issuer of the label is OK with the policy. approved Indicates a PR has been approved by an approver from all required OWNERS files. component/pipelines Related to pipelines-plugin jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants