Align java25 runtime support and runtime docs#154
Conversation
GrahamCampbell
commented
Apr 18, 2026
- Add java25 to the AWS runtime schema so validation matches existing typings and invoke-local support
- Add regression tests to keep runtime enums in sync and cover java25 across provider, function, layer, and Java invoke-local paths
- Update stale runtime docs for invoke local, SnapStart, and Lambda@Edge to avoid drift and incorrect recommendations
There was a problem hiding this comment.
Pull request overview
Aligns AWS runtime validation, typings, invoke-local behavior, and docs by adding java25 support and preventing future drift between runtime enums.
Changes:
- Add
java25to the AWS provider runtime schema. - Add unit tests covering
java25for provider/function/layer config and Javainvoke local, plus a new “schema parity” regression test. - Update docs for SnapStart,
invoke local, and Lambda@Edge runtime guidance to avoid stale recommendations.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| test/unit/lib/plugins/aws/provider.test.js | Adds a regression test to keep provider runtime schema and TS runtime union type in sync. |
| test/unit/lib/plugins/aws/package/compile/layers.test.js | Adds packaging test that layers[].compatibleRuntimes accepts java25. |
| test/unit/lib/plugins/aws/package/compile/functions.test.js | Adds packaging tests that provider.runtime and functions[].runtime accept java25. |
| test/unit/lib/plugins/aws/invoke-local/index.test.js | Expands Java runtime coverage (including java25) and adds explicit Java handler method parsing test. |
| lib/plugins/aws/provider.js | Adds java25 to awsLambdaRuntime enum. |
| docs/guides/serverless.yml.md | Updates SnapStart comment to avoid runtime-specific/stale wording. |
| docs/guides/functions.md | Updates SnapStart section to defer to AWS docs for current support/limitations. |
| docs/events/cloudfront.md | Replaces hard-coded Lambda@Edge runtime/size limits with AWS-doc-referenced guidance. |
| docs/cli-reference/invoke.md | Clarifies that only certain runtimes run natively; others use Docker. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.