-
Notifications
You must be signed in to change notification settings - Fork 177
Add test for uploading system CNB #1563
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
Conversation
382673e to
5bec514
Compare
|
Do not merge until we have a new version of CF CLI |
* includes pushing an app with it
5bec514 to
3d41a50
Compare
|
We have a new version of the CF CLI, so this is ready to merge: https://github.com/cloudfoundry/cli/releases/tag/v8.14.0 |
| Expect(cf.Cf("push", | ||
| appName, | ||
| "-p", assets.NewAssets().CNBNode, | ||
| "-b", buildpackName, |
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 was just wondering wether we need to specify the buildpack name or let CF figure it out. In this way we could also test the auto detection with system buildpacks. Or does this makes the test flaky?
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 don't think it would make the test flakier than it might otherwise be, but it would certainly make it take longer to run. Most of the tests in the buildpack detect suite rely on auto-detection so I don't think we need to also test it here.
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.
Based on my current understanding, enabling the –b option does not appear to affect execution time significantly, as the detect command is executed in both cases with an order containing a single buildpack (assuming my interpretation of this code section is accurate). Additionally, there seems to be a minor distinction between using the –b option and not, as indicated in this pull request. However, since we already have a comprehensive buildpack test suite that will be executed against CNBs, I also think that it is not necessary to add further tests about auto detection here.
Thank you for the thoughtful discussion!
|
Hi @sethboyles , the changes are looking good to me. I have the following questions:
@dimivel : FYI |
I'm happy to join the ARD meeting, but I don't have much context beyond the CAPI side of this work. |
|
Hi @beyhan , maybe we can this test and later take care about CMB build-pack detection. |
|
Point 2.) should be out of scope here and a separate discussion but for 1.) I don't think that we have to address 2.). My understanding is that the uploaded CNB buildpack in the preparation step of this pr is enough to test auto detection. I would be also interested in additional opinion here. |
I think it makes sense to have a test that runs through autodetect vs specifying (ideally multiple) buildpacks just to ensure that the order logic is sound (though this could probably also be lifecycle specific tests as well) |
|
Does the CNB auto-detect logic follow a different path to the "regular buildpack" detection process that we already test? |
Not that I’m aware of. I believe the lifecycle just gets a list of buildpacks and whether or not it is autodetect vs a requested list. Under the hood that changes how the order is set up for the cab lifecycle |
Are you submitting this PR against the develop branch?
Yes
What is this change about?
New system CNB feature
Please provide contextual information.
https://github.com/cloudfoundry/community/blob/main/toc/rfc/rfc-0031-system-cnb.md
cloudfoundry/cloud_controller_ng#4342
What version of cf-deployment have you run this cf-acceptance-test change against?
v49.0.0, but you need pre-release CF CLI
Please check all that apply for this PR:
Did you update the README as appropriate for this change?
If you are introducing a new acceptance test, what is your rationale for including it CATs rather than your own acceptance test suite?
Tests basic system CNB workflow
How many more (or fewer) seconds of runtime will this change introduce to CATs?
120s
What is the level of urgency for publishing this change?
Currently blocked on CLI release
Tag your pair, your PM, and/or team!