Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Added artifact naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor-Krivov committed Dec 27, 2023
1 parent 7fb98e8 commit 2bd720b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/execute-test-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
runs-on: ${{ fromJSON(needs.get_runner_labels.outputs.runner_labels) }}
steps:
- name: Guess conda env from device and compiler parameters
id: guess_conda_env
id: set_up_vars
shell: bash -el {0}
run: |
case "${{ inputs.compiler }}" in
Expand All @@ -94,18 +94,20 @@ jobs:
fi;;
esac
echo db_name="${{ inputs.device }}-${{ inputs.compiler }}-${{ inputs.test_scipt }}-results.db" >> $GITHUB_OUTPUT
- uses: actions/checkout@v4
- uses: ./.github/actions/initial_setup
with:
conda_env: ${{ steps.guess_conda_env.outputs.conda_env }}
conda_env: ${{ steps.set_up_vars.outputs.conda_env }}
compiler: ${{ inputs.compiler }}
torch_mlir_repo: ${{ inputs.torch_mlir_repo }}
torch_mlir_branch: ${{ inputs.torch_mlir_branch }}

- name: Run MLP test on specific compiler
shell: bash -el {0}
run: |
source ${CONDA}/bin/activate ${{ steps.guess_conda_env.outputs.conda_env }}
source ${CONDA}/bin/activate ${{ steps.set_up_vars.outputs.conda_env }}
export ONEDNN_VERBOSE=0
LABELS='${{ needs.get_runner_labels.outputs.runner_labels }}'
Expand Down Expand Up @@ -135,7 +137,7 @@ jobs:
if: contains(fromJSON(needs.get_runner_labels.outputs.runner_labels), 'aws')
uses: actions/upload-artifact@v3
with:
name: results.db
name: ${{ steps.set_up_vars.outputs.db_name }}
path: results.db

- name: Shutdown AWS cloud runner
Expand All @@ -154,7 +156,7 @@ jobs:
- name: Download results.db from artifacts
uses: actions/download-artifact@v3
with:
name: results.db
name: ${{ steps.set_up_vars.outputs.db_name }}
path: .

- name: Upload results into DB
Expand All @@ -163,7 +165,7 @@ jobs:
ls -l
sudo apt update && sudo apt install sqlite3
./db_tools/export_sqlite2csv.sh
./db_tools/export_sqlite2csv.sh ${{ steps.set_up_vars.outputs.conda_env }}.db
source ${CONDA}/bin/activate
pip install sqlalchemy pandas mysql-connector-python
Expand Down
2 changes: 2 additions & 0 deletions db_tools/export_sqlite2csv.sh
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
DB_PATH="${1:-results.db}"
sqlite3 -header -csv results.db "select * from torchmlir_benchmark;" > results.csv
name: ${{ steps.set_up_vars.outputs.conda_env }}.db

0 comments on commit 2bd720b

Please sign in to comment.