task(aws-lambda): Add python 3.15 support for `aws-lambda-layer`

未关闭
#8,072 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
aws, python
领域
backend, cloud

调研方向

Start with .craft.yml, scripts/aws/aws-deploy-local-layer.sh, and the aws_lambda tox environment; check whether SAM provides a Python 3.15 image and whether AWS accepts python3.15 for PublishLayerVersion. The issue also identifies src/sentry/integrations/aws_lambda/utils.py in the Sentry integration as needing runtime support, and mentions the docs fallback list in src/build/awsLambdaRuntimes.ts. Done means the runtime is supported across the layer, tests, and integration, with layer verification on x86_64 and arm64.

由索引模型根据 Issue 内容生成。

描述

Integration: AWS Lambda Python Task
  • add python 3.15 to the compatible runtimes of the aws-lambda-layer target in .craft.yml
  • AND to --compatible-runtimes in scripts/aws/aws-deploy-local-layer.sh
  • add py3.15 to aws_lambda tox env.

Docs should normally not be updated since runtimes are automatically fetched from AWS, and layer ARNs from the release-registry at build time; the fallback list may need to be updated since it currently stops at python3.14 (https://github.com/getsentry/sentry-docs/blob/a706b45968e0d9e685e5f940074866224a9d386b/src/build/awsLambdaRuntimes.ts#L4)

AWS Lambda integration also needs to be updated.

  • sentry-python: add python3.15 to compatibleRuntimes of the aws-lambda-layer target in .craft.yml (9 of AWS's 15 maximum), and to . Check that PublishLayerVersion accepts python3.15 before merging: an invalid runtime fails the layer publish, and with it the release.
  • sentry-python tests: the py3.15 classifier and tox envs already exist. Add py3.15 to the aws_lambda tox env once SAM has a python3.15 image (the tests use the host's Python version as the Lambda runtime), and verify the layer on x86_64 and arm64 like #6916.
  • sentry-docs: no change. Layer ARNs come from the release registry, and runtimes are fetched from AWS's lambda-runtimes.md at build time (src/build/awsLambdaRuntimes.ts). Only the fallback list used when that fetch fails is hardcoded, and it stops at python3.14.
  • Sentry's AWS Lambda integration (getsentry/sentry): needs a change. SUPPORTED_RUNTIMES in src/sentry/integrations/aws_lambda/utils.py is hardcoded and filters the function list. It stops at python3.13 (and nodejs22.x), so python3.14 functions are already missing. Add python3.14 and python3.15, or match on the python3. / nodejs prefix so new runtimes work without a change.
主要语言
Python
星标
2.2k
派生
713
平均合并
1 天 16 分钟
30 天内合并 PR
113

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

getsentry/sentry-python 的其他 Issue

查看 getsentry/sentry-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。