Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Commit f5b247b

Browse files
authored
Fix failing lambda error reporting test (#12300)
1 parent 8b5cedd commit f5b247b

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

tests/aws/services/lambda_/test_lambda.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1777,6 +1777,9 @@ def check_logs():
17771777

17781778
class TestLambdaErrors:
17791779
@markers.aws.validated
1780+
# TODO it seems like the used lambda images have a newer version of the RIC than AWS in production
1781+
# remove this skip once they have caught up
1782+
@markers.snapshot.skip_snapshot_verify(paths=["$..Payload.stackTrace"])
17801783
def test_lambda_runtime_error(self, aws_client, create_lambda_function, snapshot):
17811784
"""Test Lambda that raises an exception during runtime startup."""
17821785
snapshot.add_transformer(snapshot.transform.regex(PATTERN_UUID, "<uuid>"))
@@ -1786,7 +1789,7 @@ def test_lambda_runtime_error(self, aws_client, create_lambda_function, snapshot
17861789
func_name=function_name,
17871790
handler_file=TEST_LAMBDA_PYTHON_RUNTIME_ERROR,
17881791
handler="lambda_runtime_error.handler",
1789-
runtime=Runtime.python3_12,
1792+
runtime=Runtime.python3_13,
17901793
)
17911794

17921795
result = aws_client.lambda_.invoke(

tests/aws/services/lambda_/test_lambda.snapshot.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3333,7 +3333,7 @@
33333333
}
33343334
},
33353335
"tests/aws/services/lambda_/test_lambda.py::TestLambdaErrors::test_lambda_runtime_error": {
3336-
"recorded-date": "16-04-2024, 08:08:32",
3336+
"recorded-date": "24-02-2025, 16:26:37",
33373337
"recorded-content": {
33383338
"invocation_error": {
33393339
"ExecutedVersion": "$LATEST",
@@ -3343,12 +3343,12 @@
33433343
"errorType": "Exception",
33443344
"requestId": "",
33453345
"stackTrace": [
3346-
" File \"/var/lang/lib/python3.12/importlib/__init__.py\", line 90, in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n",
3346+
" File \"/var/lang/lib/python3.13/importlib/__init__.py\", line 88, in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n",
33473347
" File \"<frozen importlib._bootstrap>\", line 1387, in _gcd_import\n",
33483348
" File \"<frozen importlib._bootstrap>\", line 1360, in _find_and_load\n",
33493349
" File \"<frozen importlib._bootstrap>\", line 1331, in _find_and_load_unlocked\n",
33503350
" File \"<frozen importlib._bootstrap>\", line 935, in _load_unlocked\n",
3351-
" File \"<frozen importlib._bootstrap_external>\", line 995, in exec_module\n",
3351+
" File \"<frozen importlib._bootstrap_external>\", line 1022, in exec_module\n",
33523352
" File \"<frozen importlib._bootstrap>\", line 488, in _call_with_frames_removed\n",
33533353
" File \"/var/task/lambda_runtime_error.py\", line 1, in <module>\n raise Exception(\"Runtime startup fails\")\n"
33543354
]

tests/aws/services/lambda_/test_lambda.validation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"last_validated_date": "2024-04-08T16:59:34+00:00"
9797
},
9898
"tests/aws/services/lambda_/test_lambda.py::TestLambdaErrors::test_lambda_runtime_error": {
99-
"last_validated_date": "2024-04-16T08:08:31+00:00"
99+
"last_validated_date": "2025-02-24T16:26:36+00:00"
100100
},
101101
"tests/aws/services/lambda_/test_lambda.py::TestLambdaErrors::test_lambda_runtime_exit": {
102102
"last_validated_date": "2024-04-08T16:58:35+00:00"

0 commit comments

Comments
 (0)