-
Notifications
You must be signed in to change notification settings - Fork 357
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
[RFC0028] Implement Cloud Native Buildpacks lifecycle #3778
Conversation
d0778ec
to
44f73ad
Compare
4cdf7ca
to
62e6911
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.
Still need to go through the unit tests. So far my main concerns are:
- Do we need the
buildpack_url
in the cnb lifecycle model? Might be needed for revisions - Code duplication in diego part. I'd prefer to use inheritance as much as possible
I'll look into why the backward compatibility unit tests are failing for rotate_database_key_spec.rb
. I assume because the table is generated after the test runs.
spec/unit/lib/cloud_controller/errands/rotate_database_key_spec.rb
Outdated
Show resolved
Hide resolved
Related to my previous comment about the code duplication in the diego part it might be worth it to check if the tests could be also simplified, e.g. by using shared examples |
9783190
to
007d4a7
Compare
71f4c68
to
0d04028
Compare
4d1d1ba
to
3376aa2
Compare
As discussed in person. We don't need the
We removed the code duplication where we saw beneficial. Could you have another look.
The tests were green in the last commit, but after fixing a rubocop offense, the tests fail again. Any idea? |
2e5994d
to
4251f09
Compare
@johha We think we have addressed all review comments. Please let us know if we missed something. |
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.
I modified the db migration for better robustness
05404ba
to
2b9d8a6
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.
small migration optimization
spec/unit/lib/cloud_controller/errands/rotate_database_key_spec.rb
Outdated
Show resolved
Hide resolved
Co-authored-by: Ralf Pannemans <ralf.pannemans@sap.com> Co-authored-by: Johannes Dillmann <j.dillmann@sap.com> Co-authored-by: Nicolas Bender <nicolas.bender@sap.com>
Co-authored-by: Ralf Pannemans <ralf.pannemans@sap.com> Co-authored-by: Johannes Dillmann <j.dillmann@sap.com> Co-authored-by: Nicolas Bender <nicolas.bender@sap.com> Co-authored-by: Pavel Busko <pavel.busko@sap.com>
Co-authored-by: Ralf Pannemans <ralf.pannemans@sap.com> Co-authored-by: Johannes Dillmann <j.dillmann@sap.com> Co-authored-by: Nicolas Bender <nicolas.bender@sap.com>
Co-authored-by: Ralf Pannemans <ralf.pannemans@sap.com> Co-authored-by: Johannes Dillmann <j.dillmann@sap.com> Co-authored-by: Nicolas Bender <nicolas.bender@sap.com>
Co-authored-by: Ralf Pannemans <ralf.pannemans@sap.com> Co-authored-by: Johannes Dillmann <j.dillmann@sap.com> Co-authored-by: Nicolas Bender <nicolas.bender@sap.com>
f61305c
to
ec5d5f8
Compare
Co-authored-by: Nicolas Bender <nicolas.bender@sap.com> Co-authored-by: Johannes Dillmann <j.dillmann@sap.com> Co-authored-by: Johannes Haass <johannes.haass@sap.com> Co-authored-by: Pavel Busko <pavel.busko@sap.com>
ec5d5f8
to
da18b18
Compare
@johha I had to do small changes to your suggestion of the migration file. Could you have a look here at da18b18ee4e46888? I think it still fits what you intended to change, right? |
@johha Any idea why the tests fail again? |
This reverts commit 47564c3.
@johha I did more testing of the |
👍 |
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.
lgtm 👍 🤞
|
Implementation of the RFC-0028
This PR adds third lifecycle option:
cnb
. This lifecycle type utilises Cloud Native Buildpacks to produce droplets.https://github.com/cloudfoundry/community/blob/main/toc/rfc/rfc-0028-cnb-lifecycle.md
I have reviewed the contributing guide
I have viewed, signed, and submitted the Contributor License Agreement
I have made this pull request to the
main
branchI have run all the unit tests using
bundle exec rake
I have run CF Acceptance Tests