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
update s3 lambdas to node20 #10417
update s3 lambdas to node20 #10417
Conversation
S3 Image Test Results (AMD64 / ARM64) 2 files 2 suites 3m 30s ⏱️ Results for commit 216752d. ♻️ This comment has been updated with latest results. |
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.
Thanks for upgrading the lambdas, we should definitely refrain from using deprecated runtimes in our tests.
Only one question about adding fast-xml-parser
, since it should be fixed upstream?
tests/aws/services/s3/test_s3.py
Outdated
) | ||
temp_folder = create_tmp_folder_lambda( | ||
handler_file, | ||
run_command="npm i @aws-sdk/util-endpoints @aws-sdk/client-s3 @aws-sdk/s3-request-presigner @aws-sdk/middleware-endpoint", | ||
run_command="npm i @aws-sdk/util-endpoints @aws-sdk/client-s3 @aws-sdk/s3-request-presigner @aws-sdk/middleware-endpoint fast-xml-parser", |
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.
Should we merge this change if they correct it upstream anyway?
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.
oops I forgot to do it, it was a bit late 😓 will push the change
Motivation
It seems the pipeline just failed with some missing dependency for some lambdas used in S3:fast-xml-parser
. Not sure what produced this, maybe it's not a default dependency anymore.Edit: ah, well, they updated it. aws/aws-sdk-js-v3#5869
It seems they released a version with an issue, so this is not blocking anymore. I'll remove the added dependency but updating the lambda can't be bad.
Changes
Added the dependency to the list of install.I've also spotted that Node14 is not supported anymore in lambda, so I've updated the lambda used to Node 20 + to use ES6.