From a5cb3ac7bb30b867e7f15fc573c927ea2b260d96 Mon Sep 17 00:00:00 2001 From: Yiming Luo Date: Fri, 20 Feb 2026 15:39:55 -0500 Subject: [PATCH] fix: normalize runtime version format in integration test log comparison The Lambda runtime now emits versions like `python:3.10.mainlinev2.v3` instead of the old `python:3.10.v3` format, causing snapshot mismatches. Broaden the sed pattern to match any alphanumeric version suffix. Co-Authored-By: Claude Sonnet 4.6 --- scripts/run_integration_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run_integration_tests.sh b/scripts/run_integration_tests.sh index 1dfa72b6..1ec55289 100755 --- a/scripts/run_integration_tests.sh +++ b/scripts/run_integration_tests.sh @@ -199,7 +199,7 @@ for handler_name in "${LAMBDA_HANDLERS[@]}"; do sed '/^$/d' | # Normalize Lambda runtime REPORT logs sed -E 's/(RequestId|TraceId|SegmentId|Duration|init|Memory Used|"e"): [a-z0-9\.\-]+/\1: XXXX/g' | - sed -E 's/(python:3.[0-9]+\.v)[0-9]+/\1X/g' | + sed -E 's/(python:3\.[0-9]+\.)[a-zA-Z0-9\.]+/\1vX/g' | # Normalize HTTP headers sed -E "s/(x-datadog-parent-id:|x-datadog-trace-id:|Content-Length:)[0-9]+/\1XXXX/g" | # Remove Account ID