Skip to content
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(lambda-python): docker image gets built even when we don't need to bundle assets #16192

Merged
merged 7 commits into from
Mar 4, 2022

Conversation

jihndai
Copy link
Contributor

@jihndai jihndai commented Aug 24, 2021

DockerImage.fromBuild was being called for bundling regardless of whether the stack needed bundling or not. With this change, we will check if the stack needs bundling before proceeding to build the docker image.

Fixes #14747


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Aug 24, 2021

@peterwoodworth peterwoodworth changed the title fix(lambda-python): docker image gets built even when we don't need to bundle assets fix(lambda-python): docker image gets built even when we don't need to bundle assets Oct 21, 2021
@nija-at nija-at added effort/medium Medium work item – several days of effort p2 labels Oct 28, 2021
@nija-at nija-at removed their assignment Nov 5, 2021
@corymhall
Copy link
Contributor

@jihndai are you still able to work on this PR? If you are able to fix the conflicts I can review and approve.

@corymhall corymhall added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Dec 23, 2021
@github-actions
Copy link

This PR has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

@github-actions github-actions bot added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Dec 23, 2021
@jihndai
Copy link
Contributor Author

jihndai commented Dec 23, 2021

@corymhall Sure, sorry this fell out of my radar for such a long time. I'll push some updates within a week or so.

@github-actions github-actions bot removed closing-soon This issue will automatically close in 4 days unless further comments are made. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. labels Dec 24, 2021
@mergify
Copy link
Contributor

mergify bot commented Mar 4, 2022

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: abb90b7
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 5dc61ea into aws:master Mar 4, 2022
@mergify
Copy link
Contributor

mergify bot commented Mar 4, 2022

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@jihndai jihndai deleted the issue/14747 branch March 4, 2022 15:54
TheRealAmazonKendra pushed a commit to TheRealAmazonKendra/aws-cdk that referenced this pull request Mar 11, 2022
…o bundle assets (aws#16192)

`DockerImage.fromBuild` was being called for bundling regardless of whether the stack needed bundling or not. With this change, we will check if the stack needs bundling before proceeding to build the docker image.

Fixes aws#14747

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-lambda-python effort/medium Medium work item – several days of effort p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(cli ls): building of Lambda layers is not disabled during "cdk ls"
4 participants