-
Notifications
You must be signed in to change notification settings - Fork 138
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
configuring pipeline to avoid changing buildpacks #830
Conversation
@Shashankft9: 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Shashankft9 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 |
cc @zroubalik @lance - if this looks okay, then this should probably be undone: boson-project/packs#8 |
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.
@Shashankft9 do we really need to do this? I am sorry, I haven't had a time to follow the recent stuff. But I'd be definitely more inclined towards changing the builders in case they are removing anything from the source code. Adding new tekton tasks brings a lot of additional complexity.
If these kind of chnages are necessary, then we should include them into a build task, so the source is in a correct state after running the build step.
@zroubalik hey, regarding changing pipeline vs changing buildpacks - I have tried to capture the gist from the slack threads here: #827, wdyt about that? And yeah, I agree, it would be better to anyway add these 2 tasks as steps in |
Thanks, I will check that issue, I missed it somehow, sorry. |
@zroubalik thoughts on this? should I try the change of putting the new 2 tasks as steps instead - if this is how we would like to proceed considering the issue mentioned above. |
@zroubalik added the build task yaml file in the pipeline resources of the kn-plugin-func repo - with 2 additional steps, backup and restore of source code. |
Sorry for the delay, though I'd prefer if we change the Go and Rust builders to not delete the function source code and config, so we have consistent experience with all runtimes. WDYT? |
thats actually my concern, in the slack thread of buildpacks I have linked in the original issue, i got to learn that there really is no standard in buildpacks today to handle source file deletion, so some do and some don't. So I see two choices, either to change buildpacks that do the source file deletion, maybe in future there will be more OR handle it like this. |
BTW I just noticed that paketo java BP probably does delete sources. |
This Pull Request is stale because it has been open for 90 days with |
@Shashankft9 I am going to go ahead and close this, since I think the problem has been addressed with a less resource intensive workaround in this PR #1070. Thanks for your contribution in any case! |
Changes
backup-source
andrestore-source
to avoid configuring buildpack/builder to not remove the source files/kind bug
Fixes #827 #809