-
Notifications
You must be signed in to change notification settings - Fork 89
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
feat: auto-cancel PipelineRuns on PR close #1867
base: main
Are you sure you want to change the base?
feat: auto-cancel PipelineRuns on PR close #1867
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1867 +/- ##
==========================================
- Coverage 65.74% 65.71% -0.04%
==========================================
Files 178 178
Lines 13836 13886 +50
==========================================
+ Hits 9097 9125 +28
- Misses 4124 4144 +20
- Partials 615 617 +2 ☔ View full report in Codecov by Sentry. |
47f1470
to
5de31a6
Compare
/test go-testing |
ba4e927
to
3495b53
Compare
f086178
to
92aefdf
Compare
b26e7be
to
11c3a3c
Compare
The pipelinesascode.tekton.dev/cancel-in-progress: "true" feature annotation has now been enhanced to include automatic cancellation of PipelineRuns when the associated pull request is closed or merged. Jira: https://issues.redhat.com/browse/SRVKP-6908 Signed-off-by: Chmouel Boudjnah <[email protected]>
11c3a3c
to
e5f70c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one comment about cancelling the Pending
ones.
continue | ||
} | ||
|
||
if pr.IsPending() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to skip pending ones ? Would it match pipelineruns from new commits/push ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it's pending there is nothing to cancel?
deleting the prun directly could be an issue for the concurrency q and i'd like to don't mess with that...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and furthermore cancel-in-progress is explicitely documented as not working with the concurrency feature (mostly because of the complexitiy involved for such a simple implementation) so that should not be supported...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chmouel but a pending pipelinerun is waiting to be started or cancelled. If we do not cancel, it could stay here forever.
/test go-testing |
1 similar comment
/test go-testing |
Changes
The pipelinesascode.tekton.dev/cancel-in-progress: "true" feature
annotation has now been enhanced to include automatic cancellation of
PipelineRuns when the associated pull request is closed/declined or merged.
Jira: https://issues.redhat.com/browse/SRVKP-6908
Supported providers:
Submitter Checklist