-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Feature to disable a task in a Pipeline #1797
Comments
Yeah an always false should work. Though there are a couple of gotchas:
|
I think its a valid behavior even in case of disabling a task with |
Being able to disable Tasks via the PipelineRun sounds reasonable to me! Like @pritidesai was saying it should cancel the entire branch though, i.e. anything depending on that Task The downside of using Conditionals for this as far as I can tell is that you'd have to make the changes in the Pipeline definition itself to toggle on and off, I think? I like the idea of doing it at runtime. |
If the field is called
One solution (or workaround rather 😁 ) would be to embed the pipeline spec inside the pipeline run |
Maybe this would be something we can add into the PipelineRun? |
/assign |
thanks @jerop for taking this up, happy to help if needed 🥰 |
thanks @pritidesai 😄 we can collaborate on this design doc I just started |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
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. |
will be solved using when expressions in conditions beta (ongoing work) |
/remove-lifecycle rotten |
@vdemeester: Reopened this issue. In response to this:
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. |
This is now possible with When Expressions using Pipeline param, set a pipeline param
|
hey all! i want to reopen this to discuss further down the line: when expressions will allow you to disable particular tasks via a parameter, however to take advantage of this you need to add the when expressions imo the feature request here is about getting this functionality out of the box; e.g. even without when expressions or conditionals, commenting out tasks in a pipeline is another way to achieve the same goal, the ask here is to have a way to do this at runtime that doesn't require changing the pipeline definition |
have to explore |
another possible way is to introduce |
The biggest blocker for this one is convincing ourselves the functionality is worth adding - I happen to think it is but some folks don't, which is why we put this on hold. I want to revisit it at some point but understand why folks are reluctant to add it - it might make more sense for post v1 unless we have some strong use cases now (was talking to @coryrc about a potential use case with prow also) |
Naive question, does the following work ?
Coupled with the Anyway, I would like to gather samples on uses cases for this 👼 |
@vdemeester that would work - but again it would mean changing the Pipeline spec itself, and for the use cases I'm imagining (e.g. say a pipeline failed and you want to rerun just part of it, or @coryrc's case where you have one pipeline with several branches but you want to run them separately, or you're developing the pipeline and want to run only part of it as you work on it, or you're debugging a faulty pipeline) id really like to see a feature where you can do this at runtime without having to change the pipeline definition |
@bobcatfish so the use case is then to "disable" a |
@vdemeester exactly! maybe it would make more sense to create a new issue and close this one? |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
hmmm i dont want to lose this, but the last discussion we had was to replace it with a new issue so maybe it's ok to leave as is :D |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
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. |
Expected Behavior
It would be nice if it was possible to have a way to disable a task in a Pipline, like so:
to disable a task in a Pipeline be it temporary or for other reasons.
Actual Behavior
Sometime while developing some long Pipeline I have to comment some long running tasks, and being able to just disable them would be nicer.
Additional Info
Maybe that's something that can be achieve with
Conditionals
? But that seems to be more complexity for a simple directive.The text was updated successfully, but these errors were encountered: