Skip to content

Commit 414b0e5

Browse files
committed
chore: update workflows
1 parent d7fb395 commit 414b0e5

10 files changed

Lines changed: 47 additions & 46 deletions

.github/workflows/aurora_performance.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,25 @@ jobs:
1818

1919
steps:
2020
- name: Clone repository
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
2222
with:
2323
fetch-depth: 50
2424

2525
- name: "Set up JDK 8"
26-
uses: actions/setup-java@v3
26+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
2727
with:
2828
distribution: "corretto"
2929
java-version: 8
3030
- name: Set up Node.js
31-
uses: actions/setup-node@v4
31+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3232
with:
33-
node-version: "20.x"
33+
node-version: "22.x"
3434
- name: Install dependencies
3535
run: npm install --no-save
3636

3737
- name: Configure AWS Credentials
3838
id: creds
39-
uses: aws-actions/configure-aws-credentials@v4
39+
uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b # v6
4040
with:
4141
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_DEPLOY_ROLE }}
4242
role-session-name: nodejs_aurora_perf_tests
@@ -59,7 +59,7 @@ jobs:
5959
- name: "Get Github Action IP"
6060
if: always()
6161
id: ip
62-
uses: haythem/public-ip@v1.3
62+
uses: haythem/public-ip@bdddd92c198b0955f0b494a8ebeac529754262ff # v1.3
6363

6464
- name: "Remove Github Action IP"
6565
if: always()
@@ -73,7 +73,7 @@ jobs:
7373
7474
- name: Archive Performance results
7575
if: always()
76-
uses: actions/upload-artifact@v4
76+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
7777
with:
7878
name: ${{ matrix.db }}-performance-results
7979
path: ./tests/integration/container/reports

.github/workflows/dependabot_auto_merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- name: Dependabot metadata
1919
id: metadata
20-
uses: dependabot/fetch-metadata@v1
20+
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v2
2121
with:
2222
github-token: "${{ secrets.GITHUB_TOKEN }}"
2323
- name: Approve PR

.github/workflows/integration_tests.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- main
8+
- chore/remove-aliases
89
paths-ignore:
910
- '**/*.md'
1011
- '**/*.jpg'
@@ -63,24 +64,24 @@ jobs:
6364

6465
steps:
6566
- name: 'Clone repository'
66-
uses: actions/checkout@v4
67+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
6768
with:
6869
ref: ${{ github.event.pull_request.head.sha || github.sha }}
6970
- name: "Set up JDK 8"
70-
uses: actions/setup-java@v3
71+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
7172
with:
7273
distribution: "corretto"
7374
java-version: 8
7475
- name: Set up Node.js
75-
uses: actions/setup-node@v4
76+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
7677
with:
77-
node-version: "20.x"
78+
node-version: "22.x"
7879
- name: Install dependencies
7980
run: npm install --no-save
8081

8182
- name: Configure AWS Credentials
8283
id: creds
83-
uses: aws-actions/configure-aws-credentials@v4
84+
uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b # v6
8485
with:
8586
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_DEPLOY_ROLE }}
8687
role-session-name: nodejs_int_default_tests
@@ -102,7 +103,7 @@ jobs:
102103
- name: "Get Github Action IP"
103104
if: always()
104105
id: ip
105-
uses: haythem/public-ip@v1.3
106+
uses: haythem/public-ip@bdddd92c198b0955f0b494a8ebeac529754262ff # v1.3
106107

107108
- name: "Remove Github Action IP"
108109
if: always()
@@ -116,7 +117,7 @@ jobs:
116117
117118
- name: Archive results
118119
if: always()
119-
uses: actions/upload-artifact@v4
120+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
120121
with:
121122
name: integration-report-default-${{ matrix.dbEngine }}
122123
path: ./tests/integration/container/reports
@@ -126,29 +127,32 @@ jobs:
126127
name: Run Integration Tests (Latest)
127128
runs-on: ubuntu-latest
128129
needs: run-integration-tests-default
130+
if: |
131+
always() &&
132+
needs.run-integration-tests-default.result == 'success'
129133
strategy:
130134
fail-fast: false
131135
matrix:
132136
dbEngine: ["aurora-mysql", "aurora-postgres" ]
133137

134138
steps:
135139
- name: Clone repository
136-
uses: actions/checkout@v4
140+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
137141
- name: "Set up JDK 8"
138-
uses: actions/setup-java@v3
142+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
139143
with:
140144
distribution: "corretto"
141145
java-version: 8
142146
- name: Set up Node.js
143-
uses: actions/setup-node@v4
147+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
144148
with:
145-
node-version: "20.x"
149+
node-version: "22.x"
146150
- name: Install dependencies
147151
run: npm install --no-save
148152

149153
- name: Configure AWS Credentials
150154
id: creds
151-
uses: aws-actions/configure-aws-credentials@v4
155+
uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b # v6
152156
with:
153157
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_DEPLOY_ROLE }}
154158
role-session-name: nodejs_int_latest_tests
@@ -170,7 +174,7 @@ jobs:
170174
- name: "Get Github Action IP"
171175
if: always()
172176
id: ip
173-
uses: haythem/public-ip@v1.3
177+
uses: haythem/public-ip@bdddd92c198b0955f0b494a8ebeac529754262ff # v1.3
174178

175179
- name: "Remove Github Action IP"
176180
if: always()
@@ -184,7 +188,7 @@ jobs:
184188
185189
- name: Archive results
186190
if: always()
187-
uses: actions/upload-artifact@v4
191+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
188192
with:
189193
name: integration-report-latest-${{ matrix.dbEngine }}
190194
path: ./tests/integration/container/reports

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
run-checks-and-unit-tests:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
2020
- name: Set up Node.js
21-
uses: actions/setup-node@v4
21+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2222
with:
23-
node-version: "20.x"
23+
node-version: "22.x"
2424
- name: Install dependencies
2525
run: npm install --no-save
2626
- name: Run eslint - linting

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
packages: write
1212
steps:
1313
- name: "Clone Repository"
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
1515
- name: "Set up Node.js"
16-
uses: actions/setup-node@v4
16+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
1717
with:
18-
node-version: "20.x"
18+
node-version: "22.x"
1919
registry-url: "https://registry.npmjs.org"
2020
- name: "Install dependencies"
2121
run: npm install --no-save

.github/workflows/release_draft.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: "Clone Repository"
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
2323
- name: "Set up Node.js"
24-
uses: actions/setup-node@v4
24+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2525
with:
26-
node-version: "20.x"
26+
node-version: "22.x"
2727
- name: "Install dependencies"
2828
run: npm install --no-save
2929
- name: "Run eslint - linting"
@@ -46,7 +46,7 @@ jobs:
4646
touch RELEASE_DETAILS.md
4747
echo "$RELEASE_DETAILS" > RELEASE_DETAILS.md
4848
- name: "Upload to Draft Release"
49-
uses: ncipollo/release-action@v1
49+
uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1
5050
with:
5151
draft: true
5252
name: "AWS Advanced NodeJS Wrapper - v${{ env.RELEASE_VERSION }}"

.github/workflows/remove-old-artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Remove Old Artifacts
18-
uses: c-hive/gha-remove-artifacts@v1
18+
uses: c-hive/gha-remove-artifacts@44fc7acaf1b3d0987da0e8d4707a989d80e9554b # v1
1919
with:
2020
age: "1 week"
2121
skip-tags: true

.github/workflows/run-autoscaling-tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@ jobs:
2121
dbEngine: [ "mysql", "postgres" ]
2222
steps:
2323
- name: Clone repository
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
2525
with:
2626
fetch-depth: 50
2727
- name: "Set up JDK 8"
28-
uses: actions/setup-java@v3
28+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
2929
with:
3030
distribution: "corretto"
3131
java-version: 8
3232
- name: Set up Node.js
33-
uses: actions/setup-node@v4
33+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3434
with:
35-
node-version: "20.x"
35+
node-version: "22.x"
3636
- name: Configure AWS credentials
3737
id: creds
38-
uses: aws-actions/configure-aws-credentials@v4
38+
uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b # v6
3939
with:
4040
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_DEPLOY_ROLE }}
4141
role-session-name: nodejs_autoscaling_tests
@@ -56,7 +56,7 @@ jobs:
5656
- name: "Get Github Action IP"
5757
if: always()
5858
id: ip
59-
uses: haythem/public-ip@v1.3
59+
uses: haythem/public-ip@bdddd92c198b0955f0b494a8ebeac529754262ff # v1.3
6060
- name: "Remove Github Action IP"
6161
if: always()
6262
run: |
@@ -68,7 +68,7 @@ jobs:
6868
2>&1 > /dev/null;
6969
- name: Archive results
7070
if: always()
71-
uses: actions/upload-artifact@v4
71+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
7272
with:
7373
name: autoscaling-report
7474
path: ./tests/integration/container/reports

common/lib/plugins/connection_tracker/aurora_connection_tracker_plugin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ export class AuroraConnectionTrackerPlugin extends AbstractConnectionPlugin impl
7676
}
7777
}
7878
const host = this.tracker.populateOpenedConnectionQueue(connectionHostInfo, targetClient);
79-
this.pluginService.setTrackedConnectionHost(host); }
79+
this.pluginService.setTrackedConnectionHost(host);
80+
}
8081
return targetClient;
8182
}
8283

common/lib/plugins/connection_tracker/opened_connection_tracker.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,7 @@ export class OpenedConnectionTracker {
9898
}
9999

100100
private trackConnection(instanceEndpoint: string, client: ClientWrapper): TrackedConnectionListHost {
101-
const connectionList = MapUtils.computeIfAbsent(
102-
OpenedConnectionTracker.openedConnections,
103-
instanceEndpoint,
104-
(_) => new TrackedConnectionList()
105-
);
101+
const connectionList = MapUtils.computeIfAbsent(OpenedConnectionTracker.openedConnections, instanceEndpoint, (_) => new TrackedConnectionList());
106102
return connectionList!.add(client);
107103
}
108104

0 commit comments

Comments
 (0)