Skip to content

Commit 65254c3

Browse files
Enable custom start commands and options to resolve GHA issues (opensearch-project#3223) (opensearch-project#3224) (opensearch-project#3341)
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> Co-authored-by: Peter Zhu <zhujiaxi@amazon.com>
1 parent ba5c271 commit 65254c3

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/CI-workflow.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ jobs:
2424
strategy:
2525
matrix:
2626
java: [11, 17, 21]
27-
env:
28-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
2927

3028
name: Build and Test MLCommons Plugin on linux
3129
if: github.repository == 'opensearch-project/ml-commons'
@@ -38,21 +36,23 @@ jobs:
3836
# this image tag is subject to change as more dependencies and updates will arrive over time
3937
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
4038
# need to switch to root so that github actions can install runner binary on container without permission issues.
41-
options: --user root
39+
options: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-options }}
4240

4341
steps:
42+
- name: Run start commands
43+
run: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }}
4444
- name: Setup Java ${{ matrix.java }}
4545
uses: actions/setup-java@v1
4646
with:
4747
java-version: ${{ matrix.java }}
4848

49-
- uses: aws-actions/configure-aws-credentials@v2
49+
- uses: aws-actions/configure-aws-credentials@v4
5050
with:
5151
role-to-assume: ${{ secrets.ML_ROLE }}
5252
aws-region: us-west-2
5353

5454
- name: Checkout MLCommons
55-
uses: actions/checkout@v3
55+
uses: actions/checkout@v4
5656
with:
5757
ref: ${{ github.event.pull_request.head.sha }}
5858

@@ -74,7 +74,7 @@ jobs:
7474
echo "build-test-linux=$plugin" >> $GITHUB_OUTPUT
7575
7676
- name: Upload Coverage Report
77-
uses: codecov/codecov-action@v1
77+
uses: codecov/codecov-action@v4
7878
with:
7979
flags: ml-commons
8080
token: ${{ secrets.CODECOV_TOKEN }}
@@ -98,17 +98,17 @@ jobs:
9898
runs-on: ubuntu-latest
9999

100100
steps:
101-
- uses: aws-actions/configure-aws-credentials@v2
101+
- uses: aws-actions/configure-aws-credentials@v4
102102
with:
103103
role-to-assume: ${{ secrets.ML_ROLE }}
104104
aws-region: us-west-2
105105

106106
- name: Checkout MLCommons
107-
uses: actions/checkout@v3
107+
uses: actions/checkout@v4
108108
with:
109109
ref: ${{ github.event.pull_request.head.sha }}
110110

111-
- uses: actions/download-artifact@v3
111+
- uses: actions/download-artifact@v4
112112
with:
113113
name: ml-plugin-linux-${{ matrix.java }}
114114

@@ -173,7 +173,7 @@ jobs:
173173
fi
174174
175175
- name: Upload Coverage Report
176-
uses: codecov/codecov-action@v3
176+
uses: codecov/codecov-action@v4
177177
with:
178178
flags: ml-commons
179179
token: ${{ secrets.CODECOV_TOKEN }}
@@ -193,14 +193,14 @@ jobs:
193193
with:
194194
java-version: ${{ matrix.java }}
195195

196-
- uses: aws-actions/configure-aws-credentials@v2
196+
- uses: aws-actions/configure-aws-credentials@v4
197197
with:
198198
role-to-assume: ${{ secrets.ML_ROLE }}
199199
aws-region: us-west-2
200200

201201
# ml-commons
202202
- name: Checkout MLCommons
203-
uses: actions/checkout@v3
203+
uses: actions/checkout@v4
204204
with:
205205
ref: ${{ github.event.pull_request.head.sha }}
206206

0 commit comments

Comments
 (0)