38
38
make SQL_JAVASDK_ENABLE=ON && make SQL_JAVASDK_ENABLE=ON install
39
39
mv openmldb-linux openmldb-main-linux
40
40
tar -zcf openmldb-linux.tar.gz openmldb-main-linux
41
+ mv java/openmldb-batch/target/openmldb*-SNAPSHOT.jar openmldb-batch.jar
42
+ mv java/openmldb-jdbc/target/openmldb*-SNAPSHOT.jar openmldb-jdbc.jar
43
+ mv java/openmldb-native/target/openmldb*-SNAPSHOT.jar openmldb-native.jar
41
44
- name : download
42
45
if : ${{ env.E_VERSION != 'main' }}
43
46
run : |
48
51
uses : actions/upload-artifact@v3
49
52
with :
50
53
name : openmldb-package
51
- path : openmldb-linux.tar.gz
54
+ path : |
55
+ openmldb-batch.jar
56
+ openmldb-jdbc.jar
57
+ openmldb-native.jar
58
+ openmldb-linux.tar.gz
52
59
53
-
60
+ apiserver-cluster :
61
+ needs : build-openmldb
62
+
63
+ runs-on : [self-hosted,common-user]
64
+ steps :
65
+ - uses : actions/checkout@v3
66
+ - name : before test
67
+ if : ${{ env.ETYPE == 'all' || env.ETYPE == 'java' }}
68
+ run : mkdir ${{ github.job }}
69
+ - name : download artifact
70
+ uses : actions/download-artifact@v3
71
+ with :
72
+ name : openmldb-package
73
+ - name : install openmldb
74
+ run : |
75
+ tar -zxf openmldb-linux.tar.gz -C ${{ github.job }}/
76
+ bash test/steps/format_config.sh $(pwd)/${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux ${{ github.job }} 20001 21000 java
77
+ bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/deploy-all.sh
78
+ bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/start-all.sh
79
+ - name : test
80
+ run : bash test/steps/openmldb-integration-test.sh -j 0.0.0 -d deploy -m apiserver
81
+ - name : stop openmldb
82
+ if : always()
83
+ run : bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/stop-all.sh
84
+ - name : remove openmldb
85
+ if : always()
86
+ run : bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/clear-all.sh
87
+ - name : TEST Results
88
+ if : always()
89
+ uses : EnricoMi/publish-unit-test-result-action@v1
90
+ with :
91
+ files : test/integration-test/openmldb-test-java/openmldb-sdk-test/target/surefire-reports/TEST-*.xml
92
+ check_name : " SRC apiserver-cluster Report"
93
+ comment_title : " SRC apiserver-cluster Report"
94
+ - name : tar test report
95
+ if : ${{ failure() }}
96
+ run : tar -zcvf surefire-reports.tar.gz test/integration-test/openmldb-test-java/openmldb-sdk-test/target/surefire-reports
97
+ - name : Send Email
98
+ if : ${{ failure() }}
99
+ uses : dawidd6/action-send-mail@master
100
+ with :
101
+ server_address : mail.4paradigm.com
102
+ server_port : 995
103
+ username : ${{ secrets.MAIL_USERNAME }}
104
+ password : ${{ secrets.MAIL_PASSWORD }}
105
+ secure : true
106
+ subject : OpenMLDB Memory Test
107
+ body : OpenMLDB Memory Test Failed
108
+ html_body : test/integration-test/openmldb-test-java/openmldb-sdk-test/target/surefire-reports/html/overview.html
109
+ to : ${{ secrets.MAIL_TO }}
110
+ from : GitHub Actions
111
+ attachments : surefire-reports.tar.gz
54
112
55
113
java-sdk-cluster-memory-0 :
56
114
needs : build-openmldb
@@ -72,16 +130,12 @@ jobs:
72
130
bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/deploy-all.sh
73
131
bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/start-all.sh
74
132
- name : test
75
- run : |
76
- mkdir mvnrepo
77
- export MAVEN_OPTS="-Dmaven.repo.local=$(pwd)/mvnrepo"
78
- echo $MAVEN_OPTS
79
- bash test/steps/openmldb-sdk-test-java-src.sh -c test_cluster.xml -d deploy -l "0" -s "memory"
133
+ run : bash test/steps/openmldb-integration-test.sh -j 0.0.0 -c test_cluster.xml -d deploy -l "0" -s "memory"
80
134
- name : stop openmldb
81
135
if : always()
82
136
run : bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/stop-all.sh
83
137
- name : remove openmldb
84
- if : success ()
138
+ if : always ()
85
139
run : bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/clear-all.sh
86
140
- name : TEST Results
87
141
if : always()
@@ -97,10 +151,11 @@ jobs:
97
151
if : ${{ failure() }}
98
152
uses : dawidd6/action-send-mail@master
99
153
with :
100
- server_address : smtp.partner.outlook.cn
101
- server_port : 587
154
+ server_address : mail.4paradigm.com
155
+ server_port : 995
102
156
username : ${{ secrets.MAIL_USERNAME }}
103
157
password : ${{ secrets.MAIL_PASSWORD }}
158
+ secure : true
104
159
subject : OpenMLDB Memory Test
105
160
body : OpenMLDB Memory Test Failed
106
161
html_body : test/integration-test/openmldb-test-java/openmldb-sdk-test/target/surefire-reports/html/overview.html
@@ -129,16 +184,12 @@ jobs:
129
184
bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/deploy-all.sh
130
185
bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/start-all.sh
131
186
- name : test
132
- run : |
133
- mkdir mvnrepo
134
- export MAVEN_OPTS="-Dmaven.repo.local=$(pwd)/mvnrepo"
135
- echo $MAVEN_OPTS
136
- bash test/steps/openmldb-sdk-test-java-src.sh -c test_cluster.xml -d deploy -l "1,2,3,4,5" -s "memory"
187
+ run : bash test/steps/openmldb-integration-test.sh -j 0.0.0 -c test_cluster.xml -d deploy -l "1,2,3,4,5" -s "memory"
137
188
- name : stop openmldb
138
189
if : always()
139
190
run : bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/stop-all.sh
140
191
- name : remove openmldb
141
- if : success ()
192
+ if : always ()
142
193
run : bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/clear-all.sh
143
194
- name : TEST Results
144
195
if : always()
@@ -154,10 +205,11 @@ jobs:
154
205
if : ${{ failure() }}
155
206
uses : dawidd6/action-send-mail@master
156
207
with :
157
- server_address : smtp.partner.outlook.cn
158
- server_port : 587
208
+ server_address : mail.4paradigm.com
209
+ server_port : 995
159
210
username : ${{ secrets.MAIL_USERNAME }}
160
211
password : ${{ secrets.MAIL_PASSWORD }}
212
+ secure : true
161
213
subject : OpenMLDB Memory Test
162
214
body : OpenMLDB Memory Test Failed
163
215
html_body : test/integration-test/openmldb-test-java/openmldb-sdk-test/target/surefire-reports/html/overview.html
@@ -187,16 +239,12 @@ jobs:
187
239
bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/deploy-all.sh
188
240
bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/start-all.sh
189
241
- name : test
190
- run : |
191
- mkdir mvnrepo
192
- export MAVEN_OPTS="-Dmaven.repo.local=$(pwd)/mvnrepo"
193
- echo $MAVEN_OPTS
194
- bash test/steps/openmldb-sdk-test-java-src.sh -c test_cluster_disk.xml -d deploy -l "0" -s "hdd"
242
+ run : bash test/steps/openmldb-integration-test.sh -j 0.0.0 -c test_cluster_disk.xml -d deploy -l "0" -s "hdd"
195
243
- name : stop openmldb
196
244
if : always()
197
245
run : bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/stop-all.sh
198
246
- name : remove openmldb
199
- if : success ()
247
+ if : always ()
200
248
run : bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/clear-all.sh
201
249
- name : TEST Results
202
250
if : always()
@@ -212,10 +260,11 @@ jobs:
212
260
if : ${{ failure() }}
213
261
uses : dawidd6/action-send-mail@master
214
262
with :
215
- server_address : smtp.partner.outlook.cn
216
- server_port : 587
263
+ server_address : mail.4paradigm.com
264
+ server_port : 995
217
265
username : ${{ secrets.MAIL_USERNAME }}
218
266
password : ${{ secrets.MAIL_PASSWORD }}
267
+ secure : true
219
268
subject : OpenMLDB HDD Test
220
269
body : OpenMLDB HDD Test Failed
221
270
html_body : test/integration-test/openmldb-test-java/openmldb-sdk-test/target/surefire-reports/html/overview.html
@@ -240,20 +289,16 @@ jobs:
240
289
- name : install openmldb
241
290
run : |
242
291
tar -zxf openmldb-linux.tar.gz -C ${{ github.job }}/
243
- bash test/steps/format_config.sh $(pwd)/${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux java-sdk-cluster-memory-0 23001 24000 java ssd
292
+ bash test/steps/format_config.sh $(pwd)/${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux ${{ github.job }} 23001 24000 java ssd
244
293
bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/deploy-all.sh
245
294
bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/start-all.sh
246
295
- name : test
247
- run : |
248
- mkdir mvnrepo
249
- export MAVEN_OPTS="-Dmaven.repo.local=$(pwd)/mvnrepo"
250
- echo $MAVEN_OPTS
251
- bash test/steps/openmldb-sdk-test-java-src.sh -c test_cluster_disk.xml -d deploy -l "0" -s "ssd"
296
+ run : bash test/steps/openmldb-integration-test.sh -j 0.0.0 -c test_cluster_disk.xml -d deploy -l "0" -s "ssd"
252
297
- name : stop openmldb
253
298
if : always()
254
299
run : bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/stop-all.sh
255
300
- name : remove openmldb
256
- if : success ()
301
+ if : always ()
257
302
run : bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/clear-all.sh
258
303
- name : TEST Results
259
304
if : always()
@@ -269,10 +314,11 @@ jobs:
269
314
if : ${{ failure() }}
270
315
uses : dawidd6/action-send-mail@master
271
316
with :
272
- server_address : smtp.partner.outlook.cn
273
- server_port : 587
317
+ server_address : mail.4paradigm.com
318
+ server_port : 995
274
319
username : ${{ secrets.MAIL_USERNAME }}
275
320
password : ${{ secrets.MAIL_PASSWORD }}
321
+ secure : true
276
322
subject : OpenMLDB SSD Test
277
323
body : OpenMLDB SSD Test Failed
278
324
html_body : test/integration-test/openmldb-test-java/openmldb-sdk-test/target/surefire-reports/html/overview.html
@@ -299,19 +345,15 @@ jobs:
299
345
bash test/steps/format_config.sh $(pwd)/${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux ${{ github.job }} 24001 25000 java hadoop
300
346
bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/deploy-all.sh
301
347
bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/start-all.sh
302
- bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/stop-taskmanager .sh
303
- bash HADOOP_CONF_DIR=/mnt/hdd0/denglong/openmldb_runner_work/hadoop ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/stop-taskmanager .sh
348
+ bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/stop-taskmanagers .sh
349
+ HADOOP_CONF_DIR=/mnt/hdd0/denglong/openmldb_runner_work/hadoop ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/stop-taskmanagers .sh
304
350
- name : test
305
- run : |
306
- mkdir mvnrepo
307
- export MAVEN_OPTS="-Dmaven.repo.local=$(pwd)/mvnrepo"
308
- echo $MAVEN_OPTS
309
- bash test/steps/openmldb-sdk-test-java-src.sh -c test_yarn.xml -d deploy -l "0" -s "memory"
351
+ run : bash test/steps/openmldb-integration-test.sh -j 0.0.0 -c test_yarn.xml -d deploy -l "0" -s "memory"
310
352
- name : stop openmldb
311
353
if : always()
312
354
run : bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/stop-all.sh
313
355
- name : remove openmldb
314
- if : success ()
356
+ if : always ()
315
357
run : bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/clear-all.sh
316
358
- name : TEST Results
317
359
if : always()
@@ -327,10 +369,11 @@ jobs:
327
369
if : ${{ failure() }}
328
370
uses : dawidd6/action-send-mail@master
329
371
with :
330
- server_address : smtp.partner.outlook.cn
331
- server_port : 587
372
+ server_address : mail.4paradigm.com
373
+ server_port : 995
332
374
username : ${{ secrets.MAIL_USERNAME }}
333
375
password : ${{ secrets.MAIL_PASSWORD }}
376
+ secure : true
334
377
subject : OpenMLDB yarn Test
335
378
body : OpenMLDB yarn Test Failed
336
379
html_body : test/integration-test/openmldb-test-java/openmldb-sdk-test/target/surefire-reports/html/overview.html
@@ -359,15 +402,12 @@ jobs:
359
402
bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/deploy-all.sh
360
403
bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/start-all.sh
361
404
- name : test
362
- run : |
363
- mkdir mvnrepo
364
- export MAVEN_OPTS="-Dmaven.repo.local=$(pwd)/mvnrepo"
365
- echo $MAVEN_OPTS
405
+ run : echo "a"
366
406
- name : stop openmldb
367
407
if : always()
368
408
run : bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/stop-all.sh
369
409
- name : remove openmldb
370
- if : success ()
410
+ if : always ()
371
411
run : bash ${{ github.job }}/openmldb-${{ env.E_VERSION }}-linux/sbin/clear-all.sh
372
412
# - name: TEST Results
373
413
# if: always()
@@ -383,8 +423,9 @@ jobs:
383
423
# if: ${{ failure() }}
384
424
# uses: dawidd6/action-send-mail@master
385
425
# with:
386
- # server_address: smtp.partner.outlook.cn
387
- # server_port: 587
426
+ # server_address: mail.4paradigm.com
427
+ # server_port: 995
428
+ # secure: true
388
429
# username: ${{ secrets.MAIL_USERNAME }}
389
430
# password: ${{ secrets.MAIL_PASSWORD }}
390
431
# subject: OpenMLDB yarn Test
0 commit comments