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

feat(type-safe-api): handlers default to python 3.13 and node 22 #900

Merged
merged 4 commits into from
Feb 18, 2025

Conversation

jstrunk
Copy link
Contributor

@jstrunk jstrunk commented Dec 19, 2024

In order to default to the most secure configuration, handler functions now default to the latest
supported AWS Lambda runtimes for Python and Node.

BREAKING CHANGE: API handlers that don't specify the runtime version need to be validated with
Python 3.13 or Node 22.

Depends on #899

Copy link

nx-cloud bot commented Dec 20, 2024

View your CI Pipeline Execution ↗ for commit 9761dda.

Command Status Duration Result
nx run-many --target=build --output-style=strea... ✅ Succeeded 12m 59s View ↗

☁️ Nx Cloud last updated this comment at 2025-02-18 00:16:54 UTC

In order to default to the most secure configuration, handler functions now default to the latest
supported AWS Lambda runtimes for Python and Node.

BREAKING CHANGE: API handlers that don't specify the runtime version need to be validated with
Python 3.13 or Node 22.
Updating test snapshots in a separate commit for review readability.
@jstrunk jstrunk force-pushed the feat/defaultruntimes branch from 3673df2 to 98377ff Compare December 23, 2024 12:49
@jstrunk jstrunk marked this pull request as ready for review December 23, 2024 12:49
@jstrunk
Copy link
Contributor Author

jstrunk commented Jan 7, 2025

@cogwirrel Any thoughts on this PR?

@cogwirrel
Copy link
Member

@cogwirrel Any thoughts on this PR?

Hey! I like the idea of using the latest by default :) I think it should be all good - have you tested that the lambda handlers work with these versions? (iirc pydantic can be a bit funky with python versions as it has a native component)

Also I think you might need to update the documentation to ensure users use python 3.13 as I think projen creates a virtualenv using whatever python is in your environment?

Copy link
Contributor

@agdimech agdimech left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for your contribution :)

Copy link

This pull request is now marked as stale because it hasn't seen activity for a while. Add a comment or it will be closed soon. If you wish to exclude this issue from being marked as stale, add the "backlog" label.

@github-actions github-actions bot added the stale label Feb 10, 2025
@jstrunk
Copy link
Contributor Author

jstrunk commented Feb 12, 2025

My testing on a real project are pending #905 .

@jstrunk
Copy link
Contributor Author

jstrunk commented Feb 13, 2025

@cogwirrel I have validated Lambda handlers with Python 3.13 and Node 22 in https://github.com/aws-samples/aws-smart-product-onboarding.

@cogwirrel
Copy link
Member

@cogwirrel I have validated Lambda handlers with Python 3.13 and Node 22 in https://github.com/aws-samples/aws-smart-product-onboarding.

Fantastic, thank you!

@github-actions github-actions bot removed the stale label Feb 17, 2025
@jstrunk
Copy link
Contributor Author

jstrunk commented Feb 17, 2025

@cogwirrel This build failure doesn't seem related to my change. @nrwl/tao is now deprecated, but I think that requires a new version of NX. Maybe this was transitory and will work if the build is attempted again?

@cogwirrel
Copy link
Member

@cogwirrel This build failure doesn't seem related to my change. @nrwl/tao is now deprecated, but I think that requires a new version of NX. Maybe this was transitory and will work if the build is attempted again?

Yep looks like NX half-released the latest v19 and then deprecated it! Fixed here: #906

@cogwirrel cogwirrel merged commit adc072f into aws:mainline Feb 18, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants