Skip to content

Commit 6e21f20

Browse files
Enable custom start commands and options to resolve GHA issues (opensearch-project#3223) (opensearch-project#3224) (opensearch-project#3340)
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> (cherry picked from commit ef931d5) Co-authored-by: Peter Zhu <zhujiaxi@amazon.com>
1 parent b0ef301 commit 6e21f20

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
@@ -27,8 +27,6 @@ jobs:
2727
strategy:
2828
matrix:
2929
java: [11, 17, 21]
30-
env:
31-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
3230

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

4644
steps:
45+
- name: Run start commands
46+
run: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }}
4747
- name: Setup Java ${{ matrix.java }}
4848
uses: actions/setup-java@v1
4949
with:
5050
java-version: ${{ matrix.java }}
5151

52-
- uses: aws-actions/configure-aws-credentials@v2
52+
- uses: aws-actions/configure-aws-credentials@v4
5353
with:
5454
role-to-assume: ${{ secrets.ML_ROLE }}
5555
aws-region: us-west-2
5656

5757
- name: Checkout MLCommons
58-
uses: actions/checkout@v3
58+
uses: actions/checkout@v4
5959
with:
6060
ref: ${{ github.event.pull_request.head.sha }}
6161

@@ -77,7 +77,7 @@ jobs:
7777
echo "build-test-linux=$plugin" >> $GITHUB_OUTPUT
7878
7979
- name: Upload Coverage Report
80-
uses: codecov/codecov-action@v1
80+
uses: codecov/codecov-action@v4
8181
with:
8282
flags: ml-commons
8383
token: ${{ secrets.CODECOV_TOKEN }}
@@ -101,17 +101,17 @@ jobs:
101101
runs-on: ubuntu-latest
102102

103103
steps:
104-
- uses: aws-actions/configure-aws-credentials@v2
104+
- uses: aws-actions/configure-aws-credentials@v4
105105
with:
106106
role-to-assume: ${{ secrets.ML_ROLE }}
107107
aws-region: us-west-2
108108

109109
- name: Checkout MLCommons
110-
uses: actions/checkout@v3
110+
uses: actions/checkout@v4
111111
with:
112112
ref: ${{ github.event.pull_request.head.sha }}
113113

114-
- uses: actions/download-artifact@v4.1.7
114+
- uses: actions/download-artifact@v4
115115
with:
116116
name: ml-plugin-linux-${{ matrix.java }}
117117

@@ -176,7 +176,7 @@ jobs:
176176
fi
177177
178178
- name: Upload Coverage Report
179-
uses: codecov/codecov-action@v3
179+
uses: codecov/codecov-action@v4
180180
with:
181181
flags: ml-commons
182182
token: ${{ secrets.CODECOV_TOKEN }}
@@ -197,14 +197,14 @@ jobs:
197197
with:
198198
java-version: ${{ matrix.java }}
199199

200-
- uses: aws-actions/configure-aws-credentials@v2
200+
- uses: aws-actions/configure-aws-credentials@v4
201201
with:
202202
role-to-assume: ${{ secrets.ML_ROLE }}
203203
aws-region: us-west-2
204204

205205
# ml-commons
206206
- name: Checkout MLCommons
207-
uses: actions/checkout@v3
207+
uses: actions/checkout@v4
208208
with:
209209
ref: ${{ github.event.pull_request.head.sha }}
210210

0 commit comments

Comments
 (0)