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

Đang mở
#8,072 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
aws, python
Lĩnh vực
backend, cloud

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Python
Star
2.2k
Fork
713
Merge trung bình
1 ngày 16 phút
Pull request đã merge (30 ngày)
113

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/sentry-python

Tất cả issue của getsentry/sentry-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.