Skip to content

Commit 232faef

Browse files
authored
chore: update Node.js version 20.9 to 20.19 (#689)
* update version 20.9 to 20.19
1 parent 46b5d46 commit 232faef

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
strategy:
4545
max-parallel: 4
4646
matrix:
47-
node-version: [18.12, 20.9, 22.11]
47+
node-version: [18.12, 20.19, 22.11]
4848
steps:
4949
- name: Checkout
5050
uses: actions/checkout@v3
@@ -67,7 +67,7 @@ jobs:
6767
restore-keys: |
6868
${{ runner.os }}-yarn-
6969
- name: Install NodeGYP
70-
if: matrix.node-version == '20.9' || matrix.node-version == '22.11'
70+
if: matrix.node-version == '20.19' || matrix.node-version == '22.11'
7171
run: yarn global add node-gyp
7272

7373
- name: Install dependencies

.gitlab/datasources/runtimes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ runtimes:
33
node_version: "18.12"
44
node_major_version: "18"
55
- name: "node20"
6-
node_version: "20.9"
6+
node_version: "20.19"
77
node_major_version: "20"
88
- name: "node22"
99
node_version: "22.11"

.gitlab/scripts/publish_layers.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
# This product includes software developed at Datadog (https://www.datadoghq.com/).
66
# Copyright 2023 Datadog, Inc.
77

8-
# NODE_VERSION=20.9 REGION=us-east-1
8+
# NODE_VERSION=20.19 REGION=us-east-1
99

1010
set -e
1111

1212
# Available runtimes: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
1313
AWS_CLI_NODE_VERSIONS=("nodejs18.x" "nodejs20.x" "nodejs22.x")
14-
LAYER_PATHS=(".layers/datadog_lambda_node18.12.zip" ".layers/datadog_lambda_node20.9.zip" ".layers/datadog_lambda_node22.11.zip")
14+
LAYER_PATHS=(".layers/datadog_lambda_node18.12.zip" ".layers/datadog_lambda_node20.19.zip" ".layers/datadog_lambda_node22.11.zip")
1515
LAYERS=("Datadog-Node18-x" "Datadog-Node20-x" "Datadog-Node22-x")
16-
NODE_VERSIONS=("18.12" "20.9" "22.11")
16+
NODE_VERSIONS=("18.12" "20.19" "22.11")
1717
STAGES=('prod', 'sandbox', 'staging')
1818

1919
printf "Starting script...\n\n"

scripts/build_layers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set -e
1111
LAYER_DIR=".layers"
1212
LAYER_FILES_PREFIX="datadog_lambda_node"
1313

14-
export NODE_VERSIONS=("18.12" "20.9" "22.11")
14+
export NODE_VERSIONS=("18.12" "20.19" "22.11")
1515

1616
if [ -z "$NODE_VERSION" ]; then
1717
echo "Node version not specified, running for all node versions."

scripts/publish_govcloud_layers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
set -e
1818

19-
NODE_VERSIONS=("18.12" "20.9" "22.11")
19+
NODE_VERSIONS=("18.12" "20.19" "22.11")
2020

2121
LAYER_PACKAGE=$1
2222

scripts/publish_layers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
set -e
1212

1313
NODE_VERSIONS_FOR_AWS_CLI=("nodejs18.x" "nodejs20.x" "nodejs22.x")
14-
LAYER_PATHS=(".layers/datadog_lambda_node18.12.zip" ".layers/datadog_lambda_node20.9.zip" ".layers/datadog_lambda_node22.11.zip")
14+
LAYER_PATHS=(".layers/datadog_lambda_node18.12.zip" ".layers/datadog_lambda_node20.19.zip" ".layers/datadog_lambda_node22.11.zip")
1515
AVAILABLE_LAYERS=("Datadog-Node18-x" "Datadog-Node20-x" "Datadog-Node22-x")
1616
AVAILABLE_REGIONS=$(aws ec2 describe-regions | jq -r '.[] | .[] | .RegionName')
1717
BATCH_SIZE=60

scripts/run_integration_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ mismatch_found=false
3030
# [1]: nodejs version
3131
# [2]: random 8-character ID to avoid collisions with other runs
3232
node18=("nodejs18.x" "18.12" $(xxd -l 4 -c 4 -p < /dev/random))
33-
node20=("nodejs20.x" "20.9" $(xxd -l 4 -c 4 -p < /dev/random))
33+
node20=("nodejs20.x" "20.19" $(xxd -l 4 -c 4 -p < /dev/random))
3434
node22=("nodejs22.x" "22.11" $(xxd -l 4 -c 4 -p < /dev/random))
3535

3636
PARAMETERS_SETS=("node18" "node20" "node22")

scripts/run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# For local use only
1010
set -e
1111

12-
NODE_VERSIONS=("18.12" "20.9" "22.11")
12+
NODE_VERSIONS=("18.12" "20.19" "22.11")
1313

1414
for node_version in "${NODE_VERSIONS[@]}"
1515
do

scripts/sign_layers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
set -e
99

1010
LAYER_DIR=".layers"
11-
LAYER_FILES=("datadog_lambda_node18.12.zip" "datadog_lambda_node20.9.zip" "datadog_lambda_node22.11.zip")
11+
LAYER_FILES=("datadog_lambda_node18.12.zip" "datadog_lambda_node20.19.zip" "datadog_lambda_node22.11.zip")
1212
SIGNING_PROFILE_NAME="DatadogLambdaSigningProfile"
1313

1414
if [ -z "$LAYER_FILE" ]; then

src/metrics/enhanced-metrics.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ describe("getRuntimeTag", () => {
2929
expect(getRuntimeTag()).toBe("runtime:nodejs18.x");
3030
});
3131

32-
it("returns the right tag for v20.9.0", () => {
33-
mockedGetProcessVersion.mockReturnValue("v20.9.0");
32+
it("returns the right tag for v20.19.0", () => {
33+
mockedGetProcessVersion.mockReturnValue("v20.19.0");
3434
expect(getRuntimeTag()).toBe("runtime:nodejs20.x");
3535
});
3636

@@ -49,7 +49,7 @@ describe("getEnhancedMetricTags", () => {
4949
});
5050

5151
it("generates tag list with runtime", () => {
52-
mockedGetProcessVersion.mockReturnValue("v20.9.0");
52+
mockedGetProcessVersion.mockReturnValue("v20.19.0");
5353
expect(getEnhancedMetricTags(mockContext)).toStrictEqual([
5454
"region:us-east-1",
5555
"account_id:123497598159",
@@ -63,7 +63,7 @@ describe("getEnhancedMetricTags", () => {
6363
});
6464

6565
it("generates tag list with local runtime", () => {
66-
mockedGetProcessVersion.mockReturnValue("v20.9.0");
66+
mockedGetProcessVersion.mockReturnValue("v20.19.0");
6767
expect(getEnhancedMetricTags(mockContextLocal)).toStrictEqual([
6868
"functionname:my-test-lambda",
6969
"memorysize:128",
@@ -87,7 +87,7 @@ describe("getEnhancedMetricTags", () => {
8787
});
8888

8989
it("doesn't add context-based tags when context not provided", () => {
90-
mockedGetProcessVersion.mockReturnValue("v20.9.0");
90+
mockedGetProcessVersion.mockReturnValue("v20.19.0");
9191
expect(getEnhancedMetricTags()).toStrictEqual(["cold_start:true", "datadog_lambda:vX.X.X", "runtime:nodejs20.x"]);
9292
});
9393
});

0 commit comments

Comments
 (0)