feat(aws-lambda): Enable Python 3.14 support to the Lambda layer - #6916
Conversation
…ration - Added support for py 3.14 in the .craft.yml as well as compatible architectures (not yet supported in craft). - Modified local deployment script to include py 3.14 and compatible architectures. - Removed `make aws-lambda-layer` and use `uv build`and `uv run` as is also done in `.github/workflows/ci.yml`. Refs: #6908 Refs: PY-2629
…etup - Sets the Sentry handler and required env vars for local layer testing. Refs #6908 Refs PY-2629
Codecov Results 📊✅ 2647 passed | ⏭️ 264 skipped | Total: 2911 | Pass Rate: 90.93% | Execution Time: 8m 55s 📊 Comparison with Base Branch
All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 15081 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
- Coverage 90.02% 38.90% -51.12%
==========================================
Files 193 193 —
Lines 25010 24681 -329
Branches 9032 8810 -222
==========================================
+ Hits 22514 9600 -12914
- Misses 2496 15081 +12585
- Partials 1434 518 -916Generated by Codecov Action |
|
Related issue in craft. |
…ng using templating Refs: #6916
|
|
# Refs: #6908 & PY-2629
| --zip-file "fileb://dist/$ZIP" \ | ||
| --description "Local test build of SentryPythonServerlessSDK (can be deleted)" \ | ||
| --compatible-runtimes python3.7 python3.8 python3.9 python3.10 python3.11 python3.12 python3.13 python3.14 \ | ||
| --compatible-architectures x86_64 arm64 \ |
There was a problem hiding this comment.
Does this compatible architectures thing actually make a difference?
I'd hope it's implied that pure Python packages support all architectures, but maybe AWS is annoying here?
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 5c8c9a4. Configure here.
| FUNCTION_NAME=$1 | ||
| DSN=$2 | ||
| SENTRY_HANDLER="sentry_sdk.integrations.init_serverless_sdk.sentry_lambda_handler" | ||
| REGION=${3:-"eu-north-1"} |
There was a problem hiding this comment.
Wrong default AWS region
Medium Severity
The new configure script defaults REGION to eu-north-1, but aws-deploy-local-layer.sh, aws-delete-lambda-layer-versions.sh, and CONTRIBUTING.md all use eu-central-1. Running the documented deploy → attach → configure flow without an explicit region targets the wrong region, so configuration fails or updates a different function than the one that received the local layer.
Reviewed by Cursor Bugbot for commit 5c8c9a4. Configure here.
There was a problem hiding this comment.
think this script is just for testing, that's fine here




Description
Adds
python3.14to the AWS Lambda layer compatible runtimes in.craft.yml, and declaresx86-64/arm64architectures. Also updated/fixed broken scripts for ease of testing in the future:aws-configure-layer-on-lambda-function.sh: setup sentry handler and required env vars after attaching the layer withaws-deploy-local-layer.sh.Verified that it works with layer built from this branch (
arn:aws:lambda:eu-north-1:431451851189:layer:SentryPythonServerlessSDK-local-dev:3):Issues
Reminders
uv run ruff.feat:,fix:,ref:,meta:)