Skip to content

feat(AWS Lambda): Supports Python3.10 - #11922

Merged
medikoo merged 2 commits into
serverless:mainfrom
t3yamoto:supports-aws-lambda-python3-10
May 11, 2023
Merged

medikoo merged 2 commits into
serverless:mainfrom
t3yamoto:supports-aws-lambda-python3-10

Conversation

@t3yamoto

Copy link
Copy Markdown
Contributor

This PR add support for Python3.10 on AWS Lambda.
Currently, the following warning is output when deploying, but this can be suppressed.

Warning: Invalid configuration encountered  
at 'provider.runtime': must be equal to one of the allowed values [dotnet6, dotnetcore3.1, go1.x, java11, java8, java8.al2, nodejs12.x, nodejs14.x, nodejs16.x, nodejs18.x, provided, provided.al2, python3.6, python3.7, python3.8, python3.9, ruby2.7]
Learn more about configuration validation here: http://slss.io/configuration-validation

Closes: #11921

GrahamCampbell
GrahamCampbell previously approved these changes Apr 23, 2023

@nuc-ronniehyslop nuc-ronniehyslop left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested deployment using --force and can confirm 3.10 deploys correctly to AWS as 3.10.

Tsingis
Tsingis previously approved these changes Apr 26, 2023
@bartelemi

Copy link
Copy Markdown
Contributor

Amazing can we get this merged and released? Python 3.10 has been long awaited and this is the last thing we need in place to start using it! 😄

On a side note, Python 2.7 and Python 3.6 are no longer supported by AWS (you can't create or update lambda functions anymore), so SLS could drop the support for these runtimes already.

@GrahamCampbell

Copy link
Copy Markdown
Contributor

so SLS could drop the support for these runtimes already.

Out of scope - should be another PR.

medikoo
medikoo previously approved these changes May 9, 2023

@medikoo medikoo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @t3yamoto. Sorry that it took that long, but I was on vacation, and needed to catch up afterwards

Comment thread lib/plugins/aws/invoke-local/index.js Resolved
@t3yamoto

Copy link
Copy Markdown
Contributor Author

Three CI jobs are failing, but I don't seem to be authorized to check the details. Is there anything I can do?

@codecov

codecov Bot commented May 11, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (bc99c2c) 86.68% compared to head (ab3e8de) 86.68%.

❗ Current head ab3e8de differs from pull request most recent head 1fe320a. Consider uploading reports for the commit 1fe320a to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11922   +/-   ##
=======================================
  Coverage   86.68%   86.68%           
=======================================
  Files         316      316           
  Lines       13439    13440    +1     
=======================================
+ Hits        11650    11651    +1     
  Misses       1789     1789           
Impacted Files Coverage Δ
commitlint.config.js 0.00% <ø> (ø)
lib/plugins/aws/provider.js 94.78% <ø> (ø)
lib/plugins/aws/invoke-local/index.js 69.87% <100.00%> (ø)
...gins/aws/package/compile/events/cloud-watch-log.js 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@medikoo medikoo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @t3yamoto 👍

@medikoo

medikoo commented May 11, 2023

Copy link
Copy Markdown
Contributor

Three CI jobs are failing, but I don't seem to be authorized to check the details. Is there anything I can do?

It was due to quirk on GitHub Actions side, otherwise build results are public

@medikoo
medikoo merged commit 8341d7a into serverless:main May 11, 2023
@giuliano-macedo

Copy link
Copy Markdown

@medikoo Do we have a estimate for this change to be released?

@medikoo

medikoo commented May 12, 2023

Copy link
Copy Markdown
Contributor

@giuliano-oliveira I'm finalizing reviews of the remaining PR's and it'll be released early next week. Sorry for the wait

@giuliano-macedo

Copy link
Copy Markdown

No worries, thanks for the response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

python3.10 support

7 participants