-
Notifications
You must be signed in to change notification settings - Fork 35
573 lines (552 loc) · 26.3 KB
/
test_e2eshark.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
# Copyright 2024 Advanced Micro Devices
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: E2ESHARK Test Suite
on:
workflow_dispatch:
schedule:
# Runs at 2:30 AM PST
- cron: '30 9 * * *'
jobs:
e2eshark:
timeout-minutes: 600
name: "Models :: ${{ matrix.backend }} :: ${{ matrix.test-file }}"
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
include:
- name: mi300_gpu1_test
runs-on: nodai-amdgpu-mi300-x86-64
backend: rocm
device: hip
target-chip: gfx942
test-file: nlp-shard1
cache-dir: /data/e2eshark/shark-test-suite-models-cache
- name: mi300_gpu2_test
runs-on: nodai-amdgpu-mi300-x86-64
backend: rocm
device: hip
target-chip: gfx942
test-file: nlp-shard2
cache-dir: /data/e2eshark/shark-test-suite-models-cache
- name: mi300_gpu3_test
runs-on: nodai-amdgpu-mi300-x86-64
backend: rocm
device: hip
target-chip: gfx942
test-file: nlp-shard3
cache-dir: /data/e2eshark/shark-test-suite-models-cache
- name: mi300_gpu4_test
runs-on: nodai-amdgpu-mi300-x86-64
backend: rocm
device: hip
target-chip: gfx942
test-file: shark-test-suite
cache-dir: /data/e2eshark/shark-test-suite-models-cache
- name: mi300_gpu5_test
runs-on: nodai-amdgpu-mi300-x86-64
backend: rocm
device: hip
target-chip: gfx942
test-file: vai-hf-cnn-fp32-shard1
cache-dir: /data/e2eshark/shark-test-suite-models-cache
- name: mi300_gpu6_test
runs-on: nodai-amdgpu-mi300-x86-64
backend: rocm
device: hip
target-chip: gfx942
test-file: vai-hf-cnn-fp32-shard2
cache-dir: /data/e2eshark/shark-test-suite-models-cache
- name: mi300_gpu7_test
runs-on: nodai-amdgpu-mi300-x86-64
backend: rocm
device: hip
target-chip: gfx942
test-file: vai-hf-cnn-fp32-shard3
cache-dir: /data/e2eshark/shark-test-suite-models-cache
- name: mi300_gpu8_test
runs-on: nodai-amdgpu-mi300-x86-64
backend: rocm
device: hip
target-chip: gfx942
test-file: vai-int8-p0p1-shard1
cache-dir: /data/e2eshark/shark-test-suite-models-cache
- name: mi300_gpu9_test
runs-on: nodai-amdgpu-mi300-x86-64
backend: rocm
device: hip
target-chip: gfx942
test-file: vai-int8-p0p1-shard2
cache-dir: /data/e2eshark/shark-test-suite-models-cache
- name: mi300_gpu10_test
runs-on: nodai-amdgpu-mi300-x86-64
backend: rocm
device: hip
target-chip: gfx942
test-file: vai-int8-p0p1-shard3
cache-dir: /data/e2eshark/shark-test-suite-models-cache
- name: mi300_gpu11_test
runs-on: nodai-amdgpu-mi300-x86-64
backend: rocm
device: hip
target-chip: gfx942
test-file: vai-vision-int8
cache-dir: /data/e2eshark/shark-test-suite-models-cache
- name: mi300_gpu12_test
runs-on: nodai-amdgpu-mi300-x86-64
backend: rocm
device: hip
target-chip: gfx942
test-file: migraphx
cache-dir: /data/e2eshark/shark-test-suite-models-cache
# - name: mi300_gpu13_test
# runs-on: nodai-amdgpu-mi300-x86-64
# backend: hip
# device: hip
# target-chip: gfx942
# test-file: onnxrt-iree-ep
# cache-dir: /data/e2eshark/shark-test-suite-models-cache
- name: cpu_shard1_test
runs-on: nodai-amdgpu-mi250-x86-64
backend: llvm-cpu
device: local-task
target-chip: x86_64-linux-gnu
test-file: nlp-shard1
cache-dir: /groups/aig_sharks/test-suite-ci-cache
- name: cpu_shard2_test
runs-on: nodai-amdgpu-mi250-x86-64
backend: llvm-cpu
device: local-task
target-chip: x86_64-linux-gnu
test-file: nlp-shard2
cache-dir: /groups/aig_sharks/test-suite-ci-cache
- name: cpu_shard3_test
runs-on: nodai-amdgpu-mi250-x86-64
backend: llvm-cpu
device: local-task
target-chip: x86_64-linux-gnu
test-file: nlp-shard3
cache-dir: /groups/aig_sharks/test-suite-ci-cache
- name: cpu_shard4_test
runs-on: nodai-amdgpu-mi250-x86-64
backend: llvm-cpu
device: local-task
target-chip: x86_64-linux-gnu
test-file: shark-test-suite
cache-dir: /groups/aig_sharks/test-suite-ci-cache
- name: cpu_shard5_test
runs-on: nodai-amdgpu-mi250-x86-64
backend: llvm-cpu
device: local-task
target-chip: x86_64-linux-gnu
test-file: vai-hf-cnn-fp32-shard1
cache-dir: /groups/aig_sharks/test-suite-ci-cache
- name: cpu_shard6_test
runs-on: nodai-amdgpu-mi250-x86-64
backend: llvm-cpu
device: local-task
target-chip: x86_64-linux-gnu
test-file: vai-hf-cnn-fp32-shard2
cache-dir: /groups/aig_sharks/test-suite-ci-cache
- name: cpu_shard7_test
runs-on: nodai-amdgpu-mi250-x86-64
backend: llvm-cpu
device: local-task
target-chip: x86_64-linux-gnu
test-file: vai-hf-cnn-fp32-shard3
cache-dir: /groups/aig_sharks/test-suite-ci-cache
- name: cpu_shard8_test
runs-on: nodai-amdgpu-mi250-x86-64
backend: llvm-cpu
device: local-task
target-chip: x86_64-linux-gnu
test-file: vai-int8-p0p1-shard1
cache-dir: /groups/aig_sharks/test-suite-ci-cache
- name: cpu_shard9_test
runs-on: nodai-amdgpu-mi250-x86-64
backend: llvm-cpu
device: local-task
target-chip: x86_64-linux-gnu
test-file: vai-int8-p0p1-shard2
cache-dir: /groups/aig_sharks/test-suite-ci-cache
- name: cpu_shard10_test
runs-on: nodai-amdgpu-mi250-x86-64
backend: llvm-cpu
device: local-task
target-chip: x86_64-linux-gnu
test-file: vai-int8-p0p1-shard3
cache-dir: /groups/aig_sharks/test-suite-ci-cache
- name: cpu_shard11_test
runs-on: nodai-amdgpu-mi250-x86-64
backend: llvm-cpu
device: local-task
target-chip: x86_64-linux-gnu
test-file: vai-vision-int8
cache-dir: /groups/aig_sharks/test-suite-ci-cache
- name: cpu_shard12_test
runs-on: nodai-amdgpu-mi250-x86-64
backend: llvm-cpu
device: local-task
target-chip: x86_64-linux-gnu
test-file: migraphx
cache-dir: /groups/aig_sharks/test-suite-ci-cache
# - name: cpu_shard13_test
# runs-on: nodai-amdgpu-mi250-x86-64
# backend: llvm-cpu
# device: local-task
# target-chip: x86_64-linux-gnu
# test-file: onnxrt-iree-ep
# cache-dir: /groups/aig_sharks/test-suite-ci-cache
env:
E2E_VENV_DIR: ${{ github.workspace }}/test-suite_venv
EP_VENV_DIR: ${{ github.workspace }}/ep_venv
ALT_E2E_VENV_DIR: ${{ github.workspace }}/alt-test-suite_venv
HF_TOKEN: ${{ secrets.HF_TOKEN }}
AZ_PRIVATE_CONNECTION: ${{ secrets.ONNXPRIVATESTORAGE_AZ_PRIVATE_CONNECTION }}
CACHE_DIR: ${{ matrix.cache-dir }}
steps:
- name: Checkout Test Suite
uses: actions/checkout@v2
with:
repository: nod-ai/SHARK-TestSuite
path: test-suite
- name: "Setup alt e2eshark python venv"
run: |
rm -rf ${ALT_E2E_VENV_DIR}
python3.11 -m venv ${ALT_E2E_VENV_DIR}
source ${ALT_E2E_VENV_DIR}/bin/activate
pip install --upgrade pip
pip install -r ./alt_e2eshark/base_requirements.txt
pip install -r ./alt_e2eshark/iree_requirements.txt
pip install --no-deps -r ./alt_e2eshark/torch_mlir_requirements.txt
pip install --pre --upgrade iree-base-compiler iree-base-runtime -f https://iree.dev/pip-release-links.html
working-directory: ./test-suite
- name: "Setup IREE EP python venv"
run: |
python3.11 -m venv ${EP_VENV_DIR}
source ${EP_VENV_DIR}/bin/activate
pip install --upgrade pip
pip install -r ./alt_e2eshark/base_requirements.txt
pip install -r ./alt_e2eshark/iree_requirements.txt
pip install --no-deps -r ./alt_e2eshark/torch_mlir_requirements.txt
pip uninstall -y onnxruntime
wget https://sharkpublic.blob.core.windows.net/sharkpublic/onnxruntime/pip_whl/onnxruntime-1.20.0-cp311-cp311-linux_x86_64.whl
pip install ./onnxruntime-1.20.0-cp311-cp311-linux_x86_64.whl
working-directory: ./test-suite
- name: Run Onnx Bench Mode
if: contains(matrix.test-file, 'migraphx')
run: |
source ${ALT_E2E_VENV_DIR}/bin/activate
pip freeze
cd alt_e2eshark
free -mh
python3.11 ./run.py \
-r ./test-onnx \
--report \
--testsfile onnx_tests/models/external_lists/${{ matrix.test-file }}.txt \
-b ${{ matrix.backend }} \
-d ${{ matrix.device }} \
-c ${{ matrix.target-chip }} \
--report-file reports/${{ matrix.test-file }}.md \
--mode=cl-onnx-iree \
--cleanup=3 \
--benchmark \
--get-metadata \
-v
python utils/find_duplicate_models.py -s -r ./test-onnx -o reports/duplicates.json
working-directory: ./test-suite
- name: Run Onnx Default Mode
if: ${{ ! contains(matrix.test-file, 'migraphx') && ! contains(matrix.test-file, 'onnxrt-iree-ep') }}
run: |
source ${ALT_E2E_VENV_DIR}/bin/activate
pip freeze
cd alt_e2eshark
free -mh
python3.11 ./run.py \
-r ./test-onnx \
--report \
--testsfile onnx_tests/models/external_lists/${{ matrix.test-file }}.txt \
-b ${{ matrix.backend }} \
-d ${{ matrix.device }} \
-c ${{ matrix.target-chip }} \
--report-file reports/${{ matrix.test-file }}.md \
--mode=cl-onnx-iree \
--cleanup=3 \
--get-metadata \
-v
python utils/find_duplicate_models.py -s -r ./test-onnx -o reports/duplicates.json
working-directory: ./test-suite
- name: Run OnnxRT IREE EP
if: contains(matrix.test-file, 'onnxrt-iree-ep')
run: |
source ${EP_VENV_DIR}/bin/activate
export COMPILER_PATH=$(python -c "import iree.compiler as _; print(_.__path__[0])")
export LD_LIBRARY_PATH="$COMPILER_PATH/_mlir_libs/"
echo "COMPILER_PATH=$COMPILER_PATH" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV
pip freeze
cd alt_e2eshark
free -mh
python ./run.py -m ort-ep \
-r ./test-onnx \
--report \
--testsfile onnx_tests/models/external_lists/${{ matrix.test-file }}.txt \
-b ${{ matrix.backend }} \
-d ${{ matrix.device }} \
-c ${{ matrix.target-chip }} \
--report-file reports/${{ matrix.test-file }}.md \
--cleanup=3 \
--get-metadata \
-v
python utils/find_duplicate_models.py -s -r ./test-onnx -o reports/duplicates.json
working-directory: ./test-suite
- uses: actions/upload-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_${{ matrix.test-file }}_onnx_md
path: ./test-suite/alt_e2eshark/reports/${{ matrix.test-file }}.md
- uses: actions/upload-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_${{ matrix.test-file }}_onnx_json
path: ./test-suite/alt_e2eshark/reports/${{ matrix.test-file }}.json
- uses: actions/upload-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_${{ matrix.test-file }}_duplicates_json
path: ./test-suite/alt_e2eshark/duplicates.json
push_artifacts:
needs: [e2eshark]
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
max-parallel: 1
matrix:
include:
- name: merge_rocm_reports
runs-on: nodai-amdgpu-mi300-x86-64
backend: rocm
regression-blob: rocm
- name: merge_cpu_reports
runs-on: nodai-amdgpu-mi300-x86-64
backend: llvm-cpu
regression-blob: cpu
env:
AZ_PUBLIC_KEY: ${{ secrets.SHARKPUBLIC_AZ_PUBLIC_KEY }}
steps:
- name: Checkout Test Suite
uses: actions/checkout@v2
with:
repository: nod-ai/SHARK-TestSuite
path: test-suite
- name: Checkout repo
uses: actions/checkout@v2
with:
repository: nod-ai/e2eshark-reports
ref: main
token: ${{ secrets.E2ESHARK_GITHUB_TOKEN }}
path: e2eshark-reports
- name: "Setup alt test suite venv"
run: |
python3.11 -m venv report_venv_alt
source report_venv_alt/bin/activate
pip install --upgrade pip
pip install -r ./test-suite/alt_e2eshark/base_requirements.txt
pip install -r ./test-suite/alt_e2eshark/iree_requirements.txt
pip install --no-deps -r ./test-suite/alt_e2eshark/torch_mlir_requirements.txt
pip install --pre --upgrade iree-base-compiler iree-base-runtime -f https://iree.dev/pip-release-links.html
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_shark-test-suite_onnx_md
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_shark-test-suite_onnx_md
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_shark-test-suite_onnx_json
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_shark-test-suite_onnx_json
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_vai-hf-cnn-fp32-shard1_onnx_md
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-hf-cnn-fp32-shard1_onnx_md
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_vai-hf-cnn-fp32-shard1_onnx_json
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-hf-cnn-fp32-shard1_onnx_json
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_vai-hf-cnn-fp32-shard2_onnx_md
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-hf-cnn-fp32-shard2_onnx_md
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_vai-hf-cnn-fp32-shard2_onnx_json
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-hf-cnn-fp32-shard2_onnx_json
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_vai-hf-cnn-fp32-shard3_onnx_md
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-hf-cnn-fp32-shard3_onnx_md
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_vai-hf-cnn-fp32-shard3_onnx_json
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-hf-cnn-fp32-shard3_onnx_json
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_vai-int8-p0p1-shard1_onnx_md
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-int8-p0p1-shard1_onnx_md
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_vai-int8-p0p1-shard1_onnx_json
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-int8-p0p1-shard1_onnx_json
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_vai-int8-p0p1-shard2_onnx_md
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-int8-p0p1-shard2_onnx_md
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_vai-int8-p0p1-shard2_onnx_json
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-int8-p0p1-shard2_onnx_json
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_vai-int8-p0p1-shard3_onnx_md
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-int8-p0p1-shard3_onnx_md
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_vai-int8-p0p1-shard3_onnx_json
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-int8-p0p1-shard3_onnx_json
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_vai-vision-int8_onnx_md
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-vision-int8_onnx_md
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_vai-vision-int8_onnx_json
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-vision-int8_onnx_json
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_migraphx_onnx_md
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_migraphx_onnx_md
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_migraphx_onnx_json
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_migraphx_onnx_json
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_nlp-shard1_onnx_md
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_nlp-shard1_onnx_md
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_nlp-shard1_onnx_json
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_nlp-shard1_onnx_json
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_nlp-shard2_onnx_md
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_nlp-shard2_onnx_md
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_nlp-shard2_onnx_json
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_nlp-shard2_onnx_json
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_nlp-shard3_onnx_md
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_nlp-shard3_onnx_md
- uses: actions/download-artifact@master
with:
name: ci_reports_${{ matrix.backend }}_nlp-shard3_onnx_json
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_nlp-shard3_onnx_json
# - uses: actions/download-artifact@master
# with:
# name: ci_reports_${{ matrix.backend }}_onnxrt-iree-ep_onnx_md
# path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnxrt-iree-ep_onnx_md
# - uses: actions/download-artifact@master
# with:
# name: ci_reports_${{ matrix.backend }}_onnxrt-iree-ep_onnx_json
# path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnxrt-iree-ep_onnx_json
- name: Merge Reports
run: |
source report_venv_alt/bin/activate
python ./test-suite/alt_e2eshark/utils/merge_dicts.py \
--sources ./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-hf-cnn-fp32-shard1_onnx_json/vai-hf-cnn-fp32-shard1.json \
./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-hf-cnn-fp32-shard2_onnx_json/vai-hf-cnn-fp32-shard2.json \
./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-hf-cnn-fp32-shard3_onnx_json/vai-hf-cnn-fp32-shard3.json \
--output ./e2eshark-reports/vai-hf-cnn-fp32.json \
--report --report-file ./e2eshark-reports/vai-hf-cnn-fp32.md
python ./test-suite/alt_e2eshark/utils/merge_dicts.py \
--sources ./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-int8-p0p1-shard1_onnx_json/vai-int8-p0p1-shard1.json \
./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-int8-p0p1-shard2_onnx_json/vai-int8-p0p1-shard2.json \
./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-int8-p0p1-shard3_onnx_json/vai-int8-p0p1-shard3.json \
--output ./e2eshark-reports/vai-int8-p0p1.json \
--report --report-file ./e2eshark-reports/vai-int8-p0p1.md
python ./test-suite/alt_e2eshark/utils/merge_dicts.py \
--sources ./e2eshark-reports/ci_reports_${{ matrix.backend }}_nlp-shard1_onnx_json/nlp-shard1.json \
./e2eshark-reports/ci_reports_${{ matrix.backend }}_nlp-shard2_onnx_json/nlp-shard2.json \
./e2eshark-reports/ci_reports_${{ matrix.backend }}_nlp-shard3_onnx_json/nlp-shard3.json \
--output ./e2eshark-reports/nlp.json \
--report --report-file ./e2eshark-reports/nlp.md
python ./test-suite/alt_e2eshark/utils/merge_dicts.py \
--sources ./e2eshark-reports/vai-int8-p0p1.json \
./e2eshark-reports/vai-hf-cnn-fp32.json \
./e2eshark-reports/nlp.json \
./e2eshark-reports/ci_reports_${{ matrix.backend }}_shark-test-suite_onnx_json/shark-test-suite.json \
./e2eshark-reports/ci_reports_${{ matrix.backend }}_vai-vision-int8_onnx_json/vai-vision-int8.json \
./e2eshark-reports/ci_reports_${{ matrix.backend }}_migraphx_onnx_json/migraphx.json \
--output ./e2eshark-reports/combined_reports.json \
--report --report-file ./e2eshark-reports/combined_reports.md
- name: Push status artifacts
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git pull
date=$(date '+%Y-%m-%d')
mkdir -p ${date}/ci_reports_onnx/${{ matrix.backend }}/vai-hf-cnn-fp32
mkdir -p ${date}/ci_reports_onnx/${{ matrix.backend }}/vai-int8-p0p1
mkdir -p ${date}/ci_reports_onnx/${{ matrix.backend }}/shark-test-suite
mkdir -p ${date}/ci_reports_onnx/${{ matrix.backend }}/vai-vision-int8
mkdir -p ${date}/ci_reports_onnx/${{ matrix.backend }}/migraphx
mkdir -p ${date}/ci_reports_onnx/${{ matrix.backend }}/nlp
mkdir -p ${date}/ci_reports_onnx/${{ matrix.backend }}/combined-reports
cp vai-hf-cnn-fp32.md ${date}/ci_reports_onnx/${{ matrix.backend }}/vai-hf-cnn-fp32/summary.md
cp vai-int8-p0p1.md ${date}/ci_reports_onnx/${{ matrix.backend }}/vai-int8-p0p1/summary.md
cp nlp.md ${date}/ci_reports_onnx/${{ matrix.backend }}/nlp/summary.md
cp ci_reports_${{ matrix.backend }}_shark-test-suite_onnx_md/shark-test-suite.md ${date}/ci_reports_onnx/${{ matrix.backend }}/shark-test-suite/summary.md
cp ci_reports_${{ matrix.backend }}_vai-vision-int8_onnx_md/vai-vision-int8.md ${date}/ci_reports_onnx/${{ matrix.backend }}/vai-vision-int8/summary.md
cp ci_reports_${{ matrix.backend }}_migraphx_onnx_md/migraphx.md ${date}/ci_reports_onnx/${{ matrix.backend }}/migraphx/summary.md
cp combined_reports.md ${date}/ci_reports_onnx/${{ matrix.backend }}/combined-reports/summary.md
git add $date
git commit -m "add CI status reports for e2eshark for ${{ matrix.backend }}"
git push origin main
working-directory: ./e2eshark-reports
- name: Regression Reports
run: |
source report_venv_alt/bin/activate
cd test-suite
mkdir latest
mkdir baseline
wget https://sharkpublic.blob.core.windows.net/sharkpublic/latest-test-suite/combined_reports_${{ matrix.backend }}.json -O latest/combined_reports_${{ matrix.backend }}.json
wget https://sharkpublic.blob.core.windows.net/sharkpublic/baseline-test-suite/combined_reports_${{ matrix.regression-blob }}.json -O baseline/combined_reports_${{ matrix.backend }}.json
cd ..
python ./test-suite/alt_e2eshark/utils/check_regressions.py \
--new ./e2eshark-reports/combined_reports.json \
--old ./test-suite/latest/combined_reports_${{ matrix.backend }}.json \
--report-file ./e2eshark-reports/yesterday_comparison.md \
--perf_tol_regression=0.05 \
--perf_tol_progression=0.05
python ./test-suite/alt_e2eshark/utils/check_regressions.py \
--new ./e2eshark-reports/combined_reports.json \
--old ./test-suite/baseline/combined_reports_${{ matrix.backend }}.json \
--report-file ./e2eshark-reports/baseline_comparison.md \
--perf_tol_regression=0.1 \
--perf_tol_progression=0.1
az storage blob upload --account-name sharkpublic --container-name sharkpublic \
--name latest-test-suite/combined_reports_${{ matrix.backend }}.json \
--file ./e2eshark-reports/combined_reports.json \
--account-key ${AZ_PUBLIC_KEY} --overwrite
- name: Push regression artifacts
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git pull
date=$(date '+%Y-%m-%d')
cp yesterday_comparison.md ${date}/ci_reports_onnx/${{ matrix.backend }}/combined-reports/yesterday_comparison.md
cp baseline_comparison.md ${date}/ci_reports_onnx/${{ matrix.backend }}/combined-reports/baseline_comparison.md
git add $date
git commit -m "add CI regression reports for e2eshark for ${{ matrix.backend }}"
git push origin main
working-directory: ./e2eshark-reports