experimental icon indicating copy to clipboard operation
experimental copied to clipboard

[pipelines-in-pipelines] Support cancellation for pipelines-in-pipelines

Open sallyyama opened this issue 1 year ago • 12 comments

Changes

The Pipelines-in-Pipelines is provided by a controller that implements the Custom Task interface. Currently, the cancellation is not implemented for the customRun so when the main pipelineRun is cancelled, the pipelineRuns spawned by the customRuns won't be cancelled accordingly, which can lead to confusion.

This PR addresses the above issue, by cancelling the spawned pipelineRuns when the corresponding customRuns are marked as Cancelled.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you review them:

  • [x] Includes docs (if user facing)
  • [x] Commit messages follow commit message best practices
  • [x] Commit messages includes a project tag in the subject - e.g. [OCI], [hub], [results], [task-loops]

See the contribution guide for more details.

sallyyama avatar Nov 27 '23 00:11 sallyyama

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: sallyyama (6f0ffa9814c7d143e3cf2879876fb460f0126bda)

Hi @sallyyama. Thanks for your PR.

I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

tekton-robot avatar Nov 27 '23 00:11 tekton-robot

/ok-to-test

chmouel avatar Nov 28 '23 07:11 chmouel

/retest

sallyyama avatar Nov 28 '23 07:11 sallyyama

/retest

sallyyama avatar Nov 29 '23 09:11 sallyyama

Hi @chmouel, would you please help review it? Thanks.

sallyyama avatar Nov 30 '23 00:11 sallyyama

/assign @chmouel

sallyyama avatar Dec 03 '23 12:12 sallyyama

sorry but I don't know very much this code to be able to be helpful with this

chmouel avatar Dec 03 '23 13:12 chmouel

/unassign @chmouel

sallyyama avatar Dec 04 '23 00:12 sallyyama

/assign @afrittoli

sallyyama avatar Dec 04 '23 00:12 sallyyama

@afrittoli Would you please help review it? Thanks a lot.

sallyyama avatar Dec 04 '23 00:12 sallyyama

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: To complete the pull request process, please ask for approval from afrittoli after the PR has been reviewed.

The full list of commands accepted by this bot can be found 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

tekton-robot avatar Feb 19 '24 23:02 tekton-robot

@afrittoli @imjasonh @bobcatfish @vdemeester This is a minor change. Would you please help review? Thanks a lot.

sallyyama avatar May 21 '24 02:05 sallyyama

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

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

tekton-robot avatar May 21 '24 09:05 tekton-robot

Hello @vdemeester, sorry it was not mergeable because PR can't be rebased. So I did a rebase just now. Would you please help approve again? Thanks a lot!

sallyyama avatar Jun 04 '24 14:06 sallyyama

/lgtm

vdemeester avatar Jun 04 '24 14:06 vdemeester

/lgtm

Thanks @vdemeester for your quick response.

sallyyama avatar Jun 04 '24 14:06 sallyyama