CI for onnx zoo model #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: ONNX Zoom model Test Suite | |
on: | |
pull_request: | |
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: onnx_model_zoo_computer_vision_1 | |
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: onnx_model_zoo_computer_vision_2 | |
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: onnx_model_zoo_computer_vision_3 | |
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: onnx_model_zoo_computer_vision_4 | |
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: onnx_model_zoo_computer_vision_5 | |
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: onnx_model_zoo_gen_ai | |
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: onnx_model_zoo_graph_ml | |
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: onnx_model_zoo_nlp | |
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: onnx_model_zoo_validated_text | |
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: onnx_model_zoo_validated_vision | |
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: onnx_model_zoo_computer_vision_1 | |
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: onnx_model_zoo_computer_vision_2 | |
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: onnx_model_zoo_computer_vision_3 | |
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: onnx_model_zoo_computer_vision_4 | |
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: onnx_model_zoo_computer_vision_5 | |
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: onnx_model_zoo_gen_ai | |
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: onnx_model_zoo_graph_ml | |
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: onnx_model_zoo_nlp | |
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: onnx_model_zoo_validated_text | |
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: onnx_model_zoo_validated_vision | |
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: Run validated zoo model | |
if: ${{ contains(matrix.test-file, 'onnx_model_zoo_validated_text') || contains(matrix.test-file, 'onnx_model_zoo_validated_vision') }} | |
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 non-validated zoo model | |
if: ${{ ! contains(matrix.test-file, 'onnx_model_zoo_validated_text') && ! contains(matrix.test-file, 'onnx_model_zoo_validated_vision') }} | |
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 | |
- 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 }}_onnx_model_zoo_computer_vision_1_onnx_md | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_1_onnx_md | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_1_onnx_json | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_1_onnx_json | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_2_onnx_md | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_2_onnx_md | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_2_onnx_json | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_2_onnx_json | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_3_onnx_md | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_3_onnx_md | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_3_onnx_json | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_3_onnx_json | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_4_onnx_md | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_4_onnx_md | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_4_onnx_json | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_4_onnx_json | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_5_onnx_md | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_5_onnx_md | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_5_onnx_json | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_5_onnx_json | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_gen_ai_onnx_md | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_gen_ai_onnx_md | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_gen_ai_onnx_json | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_gen_ai_onnx_json | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_graph_ml_onnx_md | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_graph_ml_onnx_md | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_graph_ml_onnx_json | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_graph_ml_onnx_json | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_nlp_onnx_md | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_nlp_onnx_md | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_nlp_onnx_json | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_nlp_onnx_json | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_validated_text_onnx_md | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_validated_text_onnx_md | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_validated_text_onnx_json | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_validated_text_onnx_json | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_validated_vision_onnx_md | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_validated_vision_onnx_md | |
- uses: actions/download-artifact@master | |
with: | |
name: ci_reports_${{ matrix.backend }}_onnx_model_zoo_validated_vision_onnx_json | |
path: ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_validated_vision_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 }}_onnx_model_zoo_computer_vision_1_onnx_json/onnx_model_zoo_computer_vision_1.json \ | |
./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_2_onnx_json/onnx_model_zoo_computer_vision_2.json \ | |
./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_3_onnx_json/onnx_model_zoo_computer_vision_3.json \ | |
./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_4_onnx_json/onnx_model_zoo_computer_vision_4.json \ | |
./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_computer_vision_5_onnx_json/onnx_model_zoo_computer_vision_5.json \ | |
--output ./e2eshark-reports/onnx_model_zoo_computer_vision.json \ | |
--report --report-file ./e2eshark-reports/onnx_model_zoo_computer_vision.md | |
python ./test-suite/alt_e2eshark/utils/merge_dicts.py \ | |
--sources ./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_validated_text_onnx_json/onnx_model_zoo_validated_text.json \ | |
./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_validated_vision_onnx_json/onnx_model_zoo_validated_vision.json \ | |
--output ./e2eshark-reports/onnx_model_zoo_validated.json \ | |
--report --report-file ./e2eshark-reports/onnx_model_zoo_validated.md | |
python ./test-suite/alt_e2eshark/utils/merge_dicts.py \ | |
--sources ./e2eshark-reports/onnx_model_zoo_computer_vision.json \ | |
./e2eshark-reports/onnx_model_zoo_validated.json \ | |
./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_nlp_onnx_json/onnx_model_zoo_nlp.json \ | |
./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_graph_ml_onnx_json/onnx_model_zoo_graph_ml.json \ | |
./e2eshark-reports/ci_reports_${{ matrix.backend }}_onnx_model_zoo_gen_ai_onnx_json/onnx_model_zoo_gen_ai.json \ | |
--output ./e2eshark-reports/onnx_zoo_combined_reports.json \ | |
--report --report-file ./e2eshark-reports/onnx_zoo_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 }}/onnx_model_zoo_computer_vision | |
mkdir -p ${date}/ci_reports_onnx/${{ matrix.backend }}/onnx_model_zoo_validated | |
mkdir -p ${date}/ci_reports_onnx/${{ matrix.backend }}/onnx_model_zoo_gen_ai | |
mkdir -p ${date}/ci_reports_onnx/${{ matrix.backend }}/onnx_model_zoo_graph_ml | |
mkdir -p ${date}/ci_reports_onnx/${{ matrix.backend }}/onnx_model_zoo_nlp | |
mkdir -p ${date}/ci_reports_onnx/${{ matrix.backend }}/onnx_zoo_combined-reports | |
cp onnx_model_zoo_computer_vision.md ${date}/ci_reports_onnx/${{ matrix.backend }}/onnx_model_zoo_computer_vision/summary.md | |
cp onnx_model_zoo_validated.md ${date}/ci_reports_onnx/${{ matrix.backend }}/onnx_model_zoo_validated/summary.md | |
cp ci_reports_${{ matrix.backend }}_onnx_model_zoo_gen_ai_onnx_md/onnx_model_zoo_gen_ai.md ${date}/ci_reports_onnx/${{ matrix.backend }}/onnx_model_zoo_gen_ai/summary.md | |
cp ci_reports_${{ matrix.backend }}_onnx_model_zoo_graph_ml_onnx_md/onnx_model_zoo_graph_ml.md ${date}/ci_reports_onnx/${{ matrix.backend }}/onnx_model_zoo_graph_ml/summary.md | |
cp ci_reports_${{ matrix.backend }}_onnx_model_zoo_nlp_onnx_md/onnx_model_zoo_nlp.md ${date}/ci_reports_onnx/${{ matrix.backend }}/onnx_model_zoo_nlp/summary.md | |
cp onnx_zoo_combined_reports.md ${date}/ci_reports_onnx/${{ matrix.backend }}/onnx_zoo_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/onnx_zoo_combined_reports_${{ matrix.backend }}.json -O latest/onnx_zoo_combined_reports_${{ matrix.backend }}.json | |
wget https://sharkpublic.blob.core.windows.net/sharkpublic/baseline-test-suite/onnx_zoo_combined_reports_${{ matrix.regression-blob }}.json -O baseline/onnx_zoo_combined_reports_${{ matrix.backend }}.json | |
cd .. | |
python ./test-suite/alt_e2eshark/utils/check_regressions.py \ | |
--new ./e2eshark-reports/onnx_zoo_combined_reports.json \ | |
--old ./test-suite/latest/onnx_zoo_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/onnx_zoo_combined_reports.json \ | |
--old ./test-suite/baseline/onnx_zoo_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/onnx_zoo_combined_reports_${{ matrix.backend }}.json \ | |
--file ./e2eshark-reports/onnx_zoo_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 }}/onnx_zoo_combined-reports/yesterday_comparison.md | |
cp baseline_comparison.md ${date}/ci_reports_onnx/${{ matrix.backend }}/onnx_zoo_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 |