Skip to content

Commit a5cb3ac

Browse files
lym953claude
andcommitted
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 <noreply@anthropic.com>
1 parent 8cfa94f commit a5cb3ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/run_integration_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ for handler_name in "${LAMBDA_HANDLERS[@]}"; do
199199
sed '/^$/d' |
200200
# Normalize Lambda runtime REPORT logs
201201
sed -E 's/(RequestId|TraceId|SegmentId|Duration|init|Memory Used|"e"): [a-z0-9\.\-]+/\1: XXXX/g' |
202-
sed -E 's/(python:3.[0-9]+\.v)[0-9]+/\1X/g' |
202+
sed -E 's/(python:3\.[0-9]+\.)[a-zA-Z0-9\.]+/\1vX/g' |
203203
# Normalize HTTP headers
204204
sed -E "s/(x-datadog-parent-id:|x-datadog-trace-id:|Content-Length:)[0-9]+/\1XXXX/g" |
205205
# Remove Account ID

0 commit comments

Comments
 (0)