From ea318c77cc86c029e7a9f051b29655a584c962bf Mon Sep 17 00:00:00 2001 From: Carles Capell Date: Fri, 25 Sep 2026 14:48:56 +0200 Subject: [PATCH] fix(ci): tolerate AWS Lambda base-image drift in the local integration tests --- .../snapshots/return_values/manual-throw-error_node24.json | 2 +- scripts/normalize_integration_logs.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/integration_tests_local/snapshots/return_values/manual-throw-error_node24.json b/integration_tests_local/snapshots/return_values/manual-throw-error_node24.json index 997d8531..89615645 100644 --- a/integration_tests_local/snapshots/return_values/manual-throw-error_node24.json +++ b/integration_tests_local/snapshots/return_values/manual-throw-error_node24.json @@ -1 +1 @@ -{"errorType":"Error","errorMessage":"Hello","trace":["Error: Hello"," at handle (/var/task/throw-error.js:XXX:XXX)"," at /var/task/node_modules/datadog-lambda-js/dist/utils/handler.js:XXX:XXX"," at traceListenerOnWrap (/var/task/node_modules/datadog-lambda-js/dist/index.js:XXX:XXX)"," at BufferedInvokeProcessor.wrappedFunc [as handler] (/var/task/node_modules/datadog-lambda-js/dist/index.js:XXX:XXX)"," at async BufferedInvokeProcessor.processInvoke (file:///var/runtime/index.mjs:XXX:XXX)"," at async _Runtime.processSingleConcurrent (file:///var/runtime/index.mjs:XXX:XXX)"," at async _Runtime.start (file:///var/runtime/index.mjs:XXX:XXX)"," at async ignition (file:///var/runtime/index.mjs:XXX:XXX)"]} +{"errorType":"Error","errorMessage":"Hello","trace":["Error: Hello"," at handle (/var/task/throw-error.js:XXX:XXX)"," at /var/task/node_modules/datadog-lambda-js/dist/utils/handler.js:XXX:XXX"," at traceListenerOnWrap (/var/task/node_modules/datadog-lambda-js/dist/index.js:XXX:XXX)"," at BufferedInvokeProcessor.wrappedFunc [as handler] (/var/task/node_modules/datadog-lambda-js/dist/index.js:XXX:XXX)"," at async BufferedInvokeProcessor.processInvoke (file:///var/runtime/index.mjs:XXX:XXX)"," at async _Runtime.processSingleConcurrent (file:///var/runtime/index.mjs:XXX:XXX)"," at async _Runtime.start (file:///var/runtime/index.mjs:XXX:XXX)"," at async ignition (file:///var/runtime/index.mjs:XXX:XXX)"],"requestId":"XXXX"} diff --git a/scripts/normalize_integration_logs.sh b/scripts/normalize_integration_logs.sh index 673f2dd7..8421bc94 100755 --- a/scripts/normalize_integration_logs.sh +++ b/scripts/normalize_integration_logs.sh @@ -51,7 +51,10 @@ repo_dir=$(dirname "$scripts_dir") function filter_runtime_noise() { sed '/preview runtime version and should not be used for production workloads/d' | sed '/DEP0205.*module\.register()/d' | - sed '/node --trace-deprecation.*where the warning was created/d' + sed '/node --trace-deprecation.*where the warning was created/d' | + # runtime_worker_pool_initializing's workerCount reflects the host's visible CPU + # count, not anything the library controls, so it can't be pinned in a golden. + sed '/"event":"runtime_worker_pool_initializing"/d' } if [ "$input_format" = formatted ]; then