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

Bug 1856155: Fixes deletion of node connected to a split node #5934

Conversation

andrewballantyne
Copy link
Contributor

Fixes:
https://issues.redhat.com/browse/ODC-3931

Analysis / Root cause:
When the original logic of Pipeline Builder was written, the code failed to properly handle a deletion of a node that had a runAfter (single or more) and was part of a runAfter that had multiple references. Essentially it just failed to carry over the removal node's runAfters to the the node that was connected to it... thus causing the break.

Solution Description:
Merge the runAfters together so it keeps all the data needed to hold the graph together.

Screen shots / Gifs for design review:

Error:
pb-task-removal-error

Fix:
pb-task-removal-fix

Unit test coverage report:

Will be part of #4805

Test setup:

  • OpenShift Pipeline Operator installed
  • Create a pattern of "A - B" and then add a parallel task to "A", say "C", and then one more task to the left of "C".
  • Delete "C"

Crude diagram:

    A - B
      /
D - C 

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

@openshift-ci-robot openshift-ci-robot added component/dev-console Related to dev-console approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 9, 2020
Copy link
Contributor

@rohitkrai03 rohitkrai03 left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andrewballantyne, rohitkrai03

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

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 10, 2020
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

2 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 7fbe6dc into openshift:master Jul 10, 2020
@andrewballantyne andrewballantyne changed the title Fixes deletion of node connected to a split node Bug 1856155: Fixes deletion of node connected to a split node Jul 13, 2020
@openshift-ci-robot
Copy link
Contributor

@andrewballantyne: All pull requests linked via external trackers have merged: . Bugzilla bug 1856155 has been moved to the MODIFIED state.

In response to this:

Bug 1856155: Fixes deletion of node connected to a split node

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/test-infra repository.

@andrewballantyne
Copy link
Contributor Author

/cherry-pick release-4.5

@openshift-cherrypick-robot

@andrewballantyne: new pull request created: #5955

In response to this:

/cherry-pick release-4.5

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/test-infra repository.

@spadgett spadgett added this to the v4.6 milestone Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/dev-console Related to dev-console lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants