-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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-alpha): use function architecture (#18696) #28449
fix(lambda-python-alpha): use function architecture (#18696) #28449
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.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request
. Additionally, if clarification is needed add Clarification Request
to a comment.
With this change, architecture when bundling is inferred from the target architecture of the Lambda function. Closes aws#18696. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
80f8838
to
9520125
Compare
Hello, I tried adding an integration test but perhaps predictably bundling failed with
I tested this in a GitPod environment (from the contribution guide) which I thought would closely resemble the automated PR Linter:
Please let me know if I should still pursue making an integ test for this situation.
|
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 am going to have this supersede #28443 because it includes the unit test asked for there. Thanks both @lucacucchetti and @mapk-amazon, I assume the important thing is to get this in.
Sorry about that, since I mentioned this on this issue a while back and saw no activity assumed no one was working on it. @kaizencc do we need to get the |
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
I would have loved some clear documentation here. This is a major pipeline breaking change for pipelines that are developing, building and testing lambdas in x86_64 environments, but deploying the lambdas to ARM. I am now trying to find a way to reproduce the original behaviour, but I am struggling for a viable solution. |
I sympathise, in the original issue I commented something to that effect:
The documented behaviour does say "platform based on the target architecture of the Lambda function". For your case, can you do the following?
If you check the diff, |
This change broke my pipeline as well. I'm using this for layers:
to force it to use the arm64 image to build. If I take that out and add If I set Both
adding Basically, my arm64 build seems to be broken and I have no way to update my layers without moving them, and all the functions they are used in, to x86. |
Just to confirm, you are talking about a problem while building layers and not lambdas? This change did not update any layer related code or behaviour. |
Correct. I don't use this to build functions, I keep all my dependencies in layers. If this change didn't update layer related code then I'm not sure what happened because my layer building pipeline is broken in the same way. |
With this change, architecture when bundling is inferred from the target architecture of the Lambda function.
Closes #18696.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license