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

[Carry #3238] Cancel taskrun using entrypoint binary #5401

Conversation

vdemeester
Copy link
Member

@vdemeester vdemeester commented Aug 31, 2022

Changes

This is a carry-over from #4618.

The cancellation of taskruns is now done through the entrypoint binary
through a new flag called 'cancel_file'. This removes the need for
deleting the pods to cancel a taskrun, allowing examination of the logs
on the pods from cancelled taskruns. Part of work on issue #3238

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Has Docs included if any changes are user facing
  • Has Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including
    functionality, content, code)
  • Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

Taskrun can now be cancelled using the entrypoint, which results of Pods from these TaskRun to be no longer deleted: they are stopped instead.

@tekton-robot tekton-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Aug 31, 2022
@tekton-robot tekton-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Aug 31, 2022
@vdemeester
Copy link
Member Author

/kind feature

@tekton-robot tekton-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 31, 2022
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/config/feature_flags.go 79.0% 78.1% -0.9
pkg/entrypoint/entrypointer.go 84.8% 81.2% -3.6

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
cmd/entrypoint/main.go 13.6% 13.3% -0.2
cmd/entrypoint/waiter.go 80.0% 82.4% 2.4
pkg/apis/config/feature_flags.go 79.0% 78.1% -0.9
pkg/entrypoint/entrypointer.go 84.8% 86.2% 1.4
pkg/pod/entrypoint.go 89.5% 89.1% -0.4
pkg/reconciler/taskrun/taskrun.go 80.2% 80.2% 0.0

@tekton-robot tekton-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 31, 2022
@vdemeester vdemeester force-pushed the 3238-Cancel-TaskRuns-using-entrypoint-binary branch from 58f0f0d to df8b5e7 Compare August 31, 2022 15:18
@tekton-robot tekton-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 31, 2022
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
cmd/entrypoint/main.go 13.6% 13.3% -0.2
cmd/entrypoint/waiter.go 80.0% 82.4% 2.4
pkg/apis/config/feature_flags.go 79.0% 78.1% -0.9
pkg/entrypoint/entrypointer.go 84.8% 81.2% -3.6
pkg/pod/entrypoint.go 89.5% 89.1% -0.4
pkg/reconciler/taskrun/taskrun.go 80.7% 80.7% 0.0

@abayer
Copy link
Contributor

abayer commented Aug 31, 2022

/retest

@lbernick lbernick self-assigned this Sep 2, 2022
@vdemeester vdemeester force-pushed the 3238-Cancel-TaskRuns-using-entrypoint-binary branch from df8b5e7 to 2707050 Compare September 6, 2022 13:16
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please ask for approval from lbernick 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
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
cmd/entrypoint/main.go 13.6% 13.3% -0.2
cmd/entrypoint/waiter.go 80.0% 76.5% -3.5
pkg/apis/config/feature_flags.go 79.0% 78.1% -0.9
pkg/entrypoint/entrypointer.go 84.8% 86.2% 1.4
pkg/pod/entrypoint.go 89.5% 89.1% -0.4
pkg/reconciler/taskrun/taskrun.go 80.7% 80.7% 0.0

@lbernick
Copy link
Member

lbernick commented Sep 6, 2022

It looks like this is copied from #4618 without changes? I left a few comments on that PR, would you mind addressing them?

@tekton-robot tekton-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 7, 2022
adshmh and others added 2 commits October 5, 2022 14:55
The cancellation of taskruns is now done through the entrypoint binary
through a new flag called 'cancel_file'. This removes the need for
deleting the pods to cancel a taskrun, allowing examination of the logs
on the pods from cancelled taskruns. Part of work on issue tektoncd#3238

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
Cancellation using entrypoint binary is now behind a new feature flag
named 'enable-cancel-using-entrypoint'.

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
@vdemeester vdemeester force-pushed the 3238-Cancel-TaskRuns-using-entrypoint-binary branch from 2707050 to 96b82bc Compare October 5, 2022 12:56
@tekton-robot tekton-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 5, 2022
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
cmd/entrypoint/main.go 13.6% 13.3% -0.2
cmd/entrypoint/waiter.go 80.0% 76.5% -3.5
pkg/apis/config/feature_flags.go 78.9% 75.4% -3.6
pkg/entrypoint/entrypointer.go 84.8% 81.2% -3.6
pkg/pod/entrypoint.go 89.5% 89.1% -0.4
pkg/reconciler/taskrun/taskrun.go 81.7% 81.6% -0.1

@vdemeester vdemeester force-pushed the 3238-Cancel-TaskRuns-using-entrypoint-binary branch from 96b82bc to 0ef3e09 Compare October 5, 2022 13:33
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
cmd/entrypoint/main.go 13.6% 13.3% -0.2
cmd/entrypoint/waiter.go 80.0% 76.5% -3.5
pkg/apis/config/feature_flags.go 78.9% 78.0% -1.0
pkg/entrypoint/entrypointer.go 84.8% 86.2% 1.4
pkg/pod/entrypoint.go 89.5% 89.1% -0.4
pkg/reconciler/taskrun/taskrun.go 81.7% 81.6% -0.1

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
@vdemeester vdemeester force-pushed the 3238-Cancel-TaskRuns-using-entrypoint-binary branch from 0ef3e09 to 1577969 Compare October 5, 2022 14:16
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
cmd/entrypoint/main.go 13.6% 13.3% -0.2
cmd/entrypoint/waiter.go 80.0% 68.4% -11.6
pkg/apis/config/feature_flags.go 78.9% 78.0% -1.0
pkg/entrypoint/entrypointer.go 84.8% 86.2% 1.4
pkg/pod/entrypoint.go 89.5% 89.1% -0.4
pkg/reconciler/taskrun/taskrun.go 81.7% 81.6% -0.1

@vdemeester
Copy link
Member Author

/retest

@vdemeester
Copy link
Member Author

/test all

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
cmd/entrypoint/main.go 13.6% 13.3% -0.2
cmd/entrypoint/waiter.go 80.0% 73.7% -6.3
pkg/apis/config/feature_flags.go 78.9% 78.0% -1.0
pkg/entrypoint/entrypointer.go 84.8% 86.2% 1.4
pkg/pod/entrypoint.go 89.5% 89.1% -0.4
pkg/reconciler/taskrun/taskrun.go 81.7% 81.6% -0.1

@vdemeester
Copy link
Member Author

/retest

1 similar comment
@vdemeester
Copy link
Member Author

/retest

@tekton-robot
Copy link
Collaborator

@vdemeester: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-tekton-pipeline-unit-tests 1577969 link true /test tekton-pipeline-unit-tests
pull-tekton-pipeline-integration-tests 1577969 link true /test pull-tekton-pipeline-integration-tests
pull-tekton-pipeline-alpha-integration-tests 1577969 link true /test pull-tekton-pipeline-alpha-integration-tests

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/test-infra repository. I understand the commands that are listed here.

@tekton-robot tekton-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 12, 2022
@tekton-robot
Copy link
Collaborator

@vdemeester: PR needs rebase.

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.

@vdemeester vdemeester mentioned this pull request Nov 3, 2022
@tekton-robot
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale with a justification.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle stale

Send feedback to tektoncd/plumbing.

@tekton-robot tekton-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 10, 2023
@vdemeester vdemeester closed this Jan 19, 2023
@kubasikus
Copy link

@vdemeester Hi, why did this get closed?

@vdemeester
Copy link
Member Author

@vdemeester Hi, why did this get closed?

Didn't have time to keep up-to-date, it's getting carried in #6511

@vdemeester vdemeester deleted the 3238-Cancel-TaskRuns-using-entrypoint-binary branch July 3, 2024 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants