-
Notifications
You must be signed in to change notification settings - Fork 221
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
[TEP-0142] Enable Step Reusability #1065
[TEP-0142] Enable Step Reusability #1065
Conversation
ae2654d
to
1783bd9
Compare
/kind tep |
551e780
to
4d955e4
Compare
/assign |
/assign @pritidesai |
3680941
to
71d5e88
Compare
/assign |
1a01996
to
d0f8533
Compare
24122e0
to
0e47dc2
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.
Thanks, left a couple more comments.
0e47dc2
to
73b4262
Compare
I think that default should be that a An alternative to the out-out could be an optional field in
I think this option will lead to a majority of
Uhm, I kind of disagree - why should the
I don't think the parallel holds. The runtime environment in GitHub Actions is a VM. When you run a workflow you're given a folder in the VM which is your work area. This is something that we used to emulate in Tekton by setting a consistent |
I fear that this will promote actively promote bad practices in
|
I agree! But I think the limiting factor here is consistency with existing steps in v1. 😢 We either need to:
|
One of the things we discussed today at the Data Interfaces WG meeting was that we descope In the very near future, in a dedicated effort for workingDir, which we are already thinking about actively, we revisit workingDir as a whole from a big picture view and assess whether we need to being it back into StepActions. Starting without it will also give us some user feedback on how Step Actions are being used by the community and if there is friction writing StepActions without workingDir. We can always bring it back in. Once it is introduced, it is challenging to take it out. WDYT? |
Reverting back my approval given the workingdir
changes.
I disagree 😅. I am not sure I follow too much on the
My point here was : if the "steps" in the action are defining/changing the working directory they act in (here), you have no way to change that from the workflow, except if it was "set as an input" (param) in the action. The rest I agree, in GitHub action, if you do not set it, you are "somewhere" that's always the same, whereas in Tekton you are where the image used defined it. But this discussion, keep me making feel we do not necessarily have the same views on where From tektoncd/pipeline#1836.
In the end, it's about who needs to override what, and when. Someone who rely on setting
That said, I won't block that proposal to get in as is 👼🏼. I have a feeling we are overthinking the problem a bit, especially as I am not sure we are the one affected the most by it or the one using and writing the most |
I would like CI/CD workflow definitions to be concise and sane default that help with that. At the same time, the API should be flexible enough to cover most corner cases and advanced users who need full control. I see a Tekton
Agreed. However:
|
This TEP enables step reusability by separating the actionable parts of the Step into a separate CRD.
73b4262
to
af6fa38
Compare
Thanks @afrittoli @vdemeester for the discussion. For now I have kept workingDir as a Step level field. We can being it into StepActions following user input and the work on default WorkingDir which is being actively pursued. I have updated the section on WorkingDir accordingly. PTAL. Hopefully this resolves this discussion for now 🙂. And please let me know if there are any other outstanding concerns that I can resolve. 🙏 |
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.
Thanks for all the work on this and latest updates!
/approve
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: afrittoli, 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 |
Hey @chitrangpatel, I haven't been able to review it further, please go ahead and merge it as you have enough approvals. Thanks for all the work! Looking forward to this enhancement 🙏 |
Thank you to all reviewers, and many thanks @chitrangpatel for the hard work! /lgtm |
This TEP enables step reusability by separating the actionable parts of the
Step
into a separate CRD. The name of this CRD is still not decided. We plan to converge on the name before making the TEP implementable.