-
Notifications
You must be signed in to change notification settings - Fork 112
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
Default process #520
Default process #520
Conversation
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.
@yaelharel @dwillist it's great to see this, nice work wrangling all of the complexity of this feature :)
I think we want to preserve the existing "choose the only process as default" behavior for platform api 0.4 and 0.5.
Beyond that I think the refactor I suggested (move platform api logic into builder.go) should make this easier to reason about and test - what do you think?
@natalieparellano, thank you for your feedback! |
Signed-off-by: Yael Harel <yharel@vmware.com>
Signed-off-by: Yael Harel <yharel@vmware.com>
Buildpacks that implements api < 0.6 should have the default value set to false Signed-off-by: Yael Harel <yharel@vmware.com>
no matter if they are having the same type or different types Signed-off-by: Yael Harel <yharel@vmware.com>
5b1220d
to
a974016
Compare
@jabrown85 @natalieparellano @ekcasey, we're going to run some manual tests tomorrow, but we've made all of the changes that we talked about so I think it's good time for another review. cc @dwillist |
- Introduce a new field in metadata.toml - Buildpack-default-process-type - Remove the default field from each process in metadata.toml - Sort the processes in metadata.toml alphabetically based on their types - Don't fall back to old default process if another default buildpack overrided it and then the new default process was overrided by a non-default process (X default -> Y default -> Y not-default ==> no default process) Signed-off-by: Daniel Thornton <dwillist@vmware.com> Signed-off-by: Yael Harel <yharel@vmware.com> Signed-off-by: Daniel Thornton <dwillist@vmware.com>
a974016
to
d410f33
Compare
@yaelharel @dwillist this is looking great! I left couple suggestions, mostly cosmetic. I think we'll want to add the |
Signed-off-by: Daniel Thornton <dwillist@vmware.com> Signed-off-by: Natalie Arellano <narellano@vmware.com> Signed-off-by: Yael Harel <yharel@vmware.com>
287714a
to
7b24df1
Compare
@jabrown85 did you want to have another look before we merge? |
We did a few more changes thanks to @natalieparellano feedback! We also ran the following tests manually (see #520 (comment) for the exact commands):
The scenarios that we tested:
|
Fixes #457
Fixes #458
cc @dwillist