-
Notifications
You must be signed in to change notification settings - Fork 1k
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
fix(cf): scale app before building droplet #5692
Conversation
I'd recommend doing a push with the same Python stuff via the CLI and with the verbose flag. Also check the sequence of api calls. I vaguely remember we had to do it this way but we should prob do whatever the CLI does |
The CF CLI is calling POST /v2/apps which accepts the full app definition (memory, disk, build packs etc). rather than v3, which we're calling, which only accepts the app name and lifecycle. We've built an image with this change internally and we're able to deploy as normal with no issues, so if you have any idea what the specific problem was that we can test that'd be helpful! edit: you might be thinking of the need to update processes before scaling, or to bind services before building the droplet? Both of those changes remain in place with this change |
@mattgogerly we checked the cli calls using version |
I don't have any way to test Docker stuff, which I assume means the issue @zachsmith1 pointed out is limited to that. Nonetheless, thanks for checking - I double checked and the /v3/builds endpoint has parameters for setting build sizing. I've updated the PR to use those and reverted the ordering 👍 |
a637127
to
50e5604
Compare
50e5604
to
1d14510
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.
LGTM, I believe you need to rename the pr
@Mergifyio backport release-1.28.x |
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 9d3d51e)
✅ Backports have been created
|
Currently we set process config and scale the app/processes after building the droplet. This causes issues if the droplet requires more memory to build (e.g. lots of Python dependencies to install).
cf push
uses a v2 endpoint to create applications which allows specifying scale when creating the app, whereas we are using a v3 endpoint which does not have those fields. Scaling is therefore a separate call.