Skip to content

Commit 613250a

Browse files
authored
fix(workflow): ci/cd failure for main branch (#3996)
* fix(workflow): upgrade upload-artifact to v4 * fix(workflow): make action works by actions/runner#2906 (comment)
1 parent 1bb7d29 commit 613250a

File tree

10 files changed

+74
-19
lines changed

10 files changed

+74
-19
lines changed

.github/workflows/cicd.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
container:
4242
image: ghcr.io/4paradigm/hybridsql:latest
4343
env:
44+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
45+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
4446
OS: linux
4547
SQL_PYSDK_ENABLE: OFF
4648
TESTING_ENABLE: ON

.github/workflows/devops-test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
container:
2626
image: ghcr.io/4paradigm/hybridsql:latest
2727
env:
28+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
29+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
2830
OS: linux
2931
steps:
3032
- uses: actions/checkout@v2
@@ -51,6 +53,8 @@ jobs:
5153
container:
5254
image: ghcr.io/4paradigm/hybridsql:latest
5355
env:
56+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
57+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
5458
OS: linux
5559
steps:
5660
- uses: actions/checkout@v2
@@ -77,6 +81,8 @@ jobs:
7781
container:
7882
image: ghcr.io/4paradigm/hybridsql:latest
7983
env:
84+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
85+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
8086
OS: linux
8187
steps:
8288
- uses: actions/checkout@v2
@@ -103,6 +109,8 @@ jobs:
103109
container:
104110
image: ghcr.io/4paradigm/hybridsql:latest
105111
env:
112+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
113+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
106114
OS: linux
107115
steps:
108116
- uses: actions/checkout@v2
@@ -135,6 +143,8 @@ jobs:
135143
container:
136144
image: ghcr.io/4paradigm/hybridsql:latest
137145
env:
146+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
147+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
138148
OS: linux
139149
steps:
140150
- uses: actions/checkout@v2
@@ -167,6 +177,8 @@ jobs:
167177
container:
168178
image: ghcr.io/4paradigm/hybridsql:latest
169179
env:
180+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
181+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
170182
OS: linux
171183
steps:
172184
- uses: actions/checkout@v2

.github/workflows/hybridse-ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
container:
2929
image: ghcr.io/4paradigm/hybridsql:latest
3030
env:
31+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
32+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
3133
TESTING_ENABLE_STRIP: ON
3234
# ref https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
3335
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
@@ -44,7 +46,7 @@ jobs:
4446
4547
- name: Upload Cpp UT Results
4648
if: always()
47-
uses: actions/upload-artifact@v2
49+
uses: actions/upload-artifact@v3
4850
with:
4951
name: linux-ut-result-cpp-${{ github.sha }}
5052
path: |

.github/workflows/integration-test-pkg.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ jobs:
8585
container:
8686
image: ghcr.io/4paradigm/hybridsql:latest
8787
env:
88+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
89+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
8890
OS: linux
8991
steps:
9092
- uses: actions/checkout@v2
@@ -107,6 +109,8 @@ jobs:
107109
container:
108110
image: ghcr.io/4paradigm/hybridsql:latest
109111
env:
112+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
113+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
110114
OS: linux
111115
steps:
112116
- uses: actions/checkout@v2
@@ -129,6 +133,8 @@ jobs:
129133
container:
130134
image: ghcr.io/4paradigm/hybridsql:latest
131135
env:
136+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
137+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
132138
OS: linux
133139
steps:
134140
- uses: actions/checkout@v2
@@ -192,6 +198,8 @@ jobs:
192198
container:
193199
image: ghcr.io/4paradigm/hybridsql:latest
194200
env:
201+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
202+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
195203
OS: linux
196204
steps:
197205
- uses: actions/checkout@v2
@@ -229,6 +237,8 @@ jobs:
229237
container:
230238
image: ghcr.io/4paradigm/hybridsql:latest
231239
env:
240+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
241+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
232242
OS: linux
233243
steps:
234244
- uses: actions/checkout@v2
@@ -250,6 +260,8 @@ jobs:
250260
container:
251261
image: ghcr.io/4paradigm/hybridsql:latest
252262
env:
263+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
264+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
253265
OS: linux
254266
steps:
255267
- uses: actions/checkout@v2
@@ -271,6 +283,8 @@ jobs:
271283
container:
272284
image: ghcr.io/4paradigm/hybridsql:latest
273285
env:
286+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
287+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
274288
OS: linux
275289
steps:
276290
- uses: actions/checkout@v2

.github/workflows/integration-test-src.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ jobs:
7171
container:
7272
image: ghcr.io/4paradigm/hybridsql:latest
7373
env:
74+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
75+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
7476
OS: linux
7577
steps:
7678
- uses: actions/checkout@v2
@@ -114,6 +116,8 @@ jobs:
114116
container:
115117
image: ghcr.io/4paradigm/hybridsql:latest
116118
env:
119+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
120+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
117121
OS: linux
118122
steps:
119123
- uses: actions/checkout@v2
@@ -157,6 +161,8 @@ jobs:
157161
container:
158162
image: ghcr.io/4paradigm/hybridsql:latest
159163
env:
164+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
165+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
160166
OS: linux
161167
steps:
162168
- uses: actions/checkout@v2
@@ -199,6 +205,8 @@ jobs:
199205
container:
200206
image: ghcr.io/4paradigm/hybridsql:latest
201207
env:
208+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
209+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
202210
OS: linux
203211
steps:
204212
- uses: actions/checkout@v2
@@ -284,6 +292,8 @@ jobs:
284292
container:
285293
image: ghcr.io/4paradigm/hybridsql:latest
286294
env:
295+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
296+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
287297
OS: linux
288298
steps:
289299
- uses: actions/checkout@v2
@@ -429,7 +439,7 @@ jobs:
429439
# run: source /root/.bashrc && bash test/steps/openmldb-sdk-test-python.sh -b SRC -d standalone -l "0"
430440
# - name: upload test results
431441
# if: always()
432-
# uses: actions/upload-artifact@v2
442+
# uses: actions/upload-artifact@v3
433443
# with:
434444
# name: python-sdk-standalone-0-src-${{ github.sha }}
435445
# path: |
@@ -470,7 +480,7 @@ jobs:
470480
# run: source /root/.bashrc && bash test/steps/openmldb-sdk-test-python.sh -b SRC -d standalone -l "1,2,3,4,5"
471481
# - name: upload test results
472482
# if: always()
473-
# uses: actions/upload-artifact@v2
483+
# uses: actions/upload-artifact@v3
474484
# with:
475485
# name: python-sdk-standalone-1-src-${{ github.sha }}
476486
# path: |
@@ -530,6 +540,8 @@ jobs:
530540
container:
531541
image: ghcr.io/4paradigm/hybridsql:latest
532542
env:
543+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
544+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
533545
OS: linux
534546
steps:
535547
- uses: actions/checkout@v2

.github/workflows/integration-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ env:
3131
jobs:
3232
openmldb-test-python:
3333
runs-on: [self-hosted,generic]
34+
env:
35+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
36+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
3437
container:
3538
image: ghcr.io/4paradigm/hybridsql:latest
3639
steps:

.github/workflows/openmldb-tool.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
bash openmldb/sbin/stop-all.sh && bash openmldb/sbin/clear-all.sh
5151
- name: upload python test results
5252
if: always()
53-
uses: actions/upload-artifact@v2
53+
uses: actions/upload-artifact@v3
5454
with:
5555
name: openmldb-tool-test-result-${{ github.sha }}
5656
path: |
@@ -59,6 +59,9 @@ jobs:
5959
openmldb-tool-name:
6060
runs-on: [self-hosted,generic]
6161
if: github.repository == '4paradigm/OpenMLDB'
62+
env:
63+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
64+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
6265
container:
6366
image: ghcr.io/4paradigm/hybridsql:latest
6467
steps:
@@ -84,7 +87,7 @@ jobs:
8487
bash openmldb/sbin/stop-all.sh && bash openmldb/sbin/clear-all.sh
8588
- name: upload python test results
8689
if: always()
87-
uses: actions/upload-artifact@v2
90+
uses: actions/upload-artifact@v3
8891
with:
8992
name: openmldb-tool-test-result-${{ github.sha }}
9093
path: |

.github/workflows/other-os-build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,21 +138,21 @@ jobs:
138138
df -h
139139
140140
- name: upload binary
141-
uses: actions/upload-artifact@v2
141+
uses: actions/upload-artifact@v3
142142
with:
143143
path: build/bin/openmldb
144144
name: binary
145145

146146
- name: upload java native
147147
if: ${{ env.SQL_JAVASDK_ENABLE == 'ON' }}
148-
uses: actions/upload-artifact@v2
148+
uses: actions/upload-artifact@v3
149149
with:
150150
name: native-jar
151151
path: java/openmldb-native/target/openmldb-native-*.jar
152152

153153
- name: upload python whl
154154
if: ${{ env.SQL_PYSDK_ENABLE == 'ON' }}
155-
uses: actions/upload-artifact@v2
155+
uses: actions/upload-artifact@v3
156156
with:
157157
name: python-whl
158158
path: |
@@ -206,21 +206,21 @@ jobs:
206206
tar czf ${{ env.OPENMLDB_PREFIX }}.tar.gz ${{ env.OPENMLDB_PREFIX }}/
207207
208208
- name: upload binary
209-
uses: actions/upload-artifact@v2
209+
uses: actions/upload-artifact@v3
210210
with:
211211
path: openmldb-*.tar.gz
212212
name: binary-package
213213

214214
- name: upload java native
215215
if: ${{ env.SQL_JAVASDK_ENABLE == 'ON' }}
216-
uses: actions/upload-artifact@v2
216+
uses: actions/upload-artifact@v3
217217
with:
218218
name: native-jar
219219
path: java/openmldb-native/target/openmldb-native-*.jar
220220

221221
- name: upload python whl
222222
if: ${{ env.SQL_PYSDK_ENABLE == 'ON' }}
223-
uses: actions/upload-artifact@v2
223+
uses: actions/upload-artifact@v3
224224
with:
225225
name: python-whl
226226
path: |
@@ -276,21 +276,21 @@ jobs:
276276
tar czf ${{ env.OPENMLDB_PREFIX }}.tar.gz ${{ env.OPENMLDB_PREFIX }}/
277277
278278
- name: upload binary
279-
uses: actions/upload-artifact@v2
279+
uses: actions/upload-artifact@v3
280280
with:
281281
path: openmldb-*.tar.gz
282282
name: binary-package
283283

284284
- name: upload java native
285285
if: ${{ env.SQL_JAVASDK_ENABLE == 'ON' }}
286-
uses: actions/upload-artifact@v2
286+
uses: actions/upload-artifact@v3
287287
with:
288288
name: native-jar
289289
path: java/openmldb-native/target/openmldb-native-*.jar
290290

291291
- name: upload python whl
292292
if: ${{ env.SQL_PYSDK_ENABLE == 'ON' }}
293-
uses: actions/upload-artifact@v2
293+
uses: actions/upload-artifact@v3
294294
with:
295295
name: python-whl
296296
path: |

.github/workflows/sdk.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
container:
4141
image: ghcr.io/4paradigm/hybridsql:latest
4242
env:
43+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
44+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
4345
SQL_JAVASDK_ENABLE: ON
4446
OPENMLDB_BUILD_TARGET: "cp_native_so openmldb"
4547
MAVEN_OPTS: -Duser.home=/github/home
@@ -84,7 +86,7 @@ jobs:
8486
8587
- name: upload linux library
8688
if: github.event_name == 'push'
87-
uses: actions/upload-artifact@v2
89+
uses: actions/upload-artifact@v3
8890
with:
8991
name: shared-library-${{ github.sha }}
9092
path: |
@@ -104,14 +106,14 @@ jobs:
104106
105107
- name: Upload Event File
106108
if: always()
107-
uses: actions/upload-artifact@v2
109+
uses: actions/upload-artifact@v3
108110
with:
109111
name: event-file
110112
path: ${{ github.event_path }}
111113

112114
- name: upload java ut results
113115
if: always()
114-
uses: actions/upload-artifact@v2
116+
uses: actions/upload-artifact@v3
115117
with:
116118
name: linux-ut-result-java-${{ github.sha }}
117119
path: |
@@ -259,6 +261,9 @@ jobs:
259261
container:
260262
image: ghcr.io/4paradigm/hybridsql:latest
261263
env:
264+
env:
265+
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
266+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
262267
SQL_PYSDK_ENABLE: ON
263268
OPENMLDB_BUILD_TARGET: "cp_python_sdk_so openmldb"
264269
# ref https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
@@ -287,7 +292,7 @@ jobs:
287292
288293
- name: upload python ut results
289294
if: always()
290-
uses: actions/upload-artifact@v2
295+
uses: actions/upload-artifact@v3
291296
with:
292297
name: linux-ut-result-python-${{ github.sha }}
293298
path: |
@@ -352,7 +357,7 @@ jobs:
352357
353358
- name: upload python ut results
354359
if: always()
355-
uses: actions/upload-artifact@v2
360+
uses: actions/upload-artifact@v3
356361
with:
357362
name: mac-ut-result-python-${{ github.sha }}
358363
path: |

0 commit comments

Comments
 (0)