Skip to content

Commit

Permalink
Copy over the env from build machine to reduce runtime of test runners.
Browse files Browse the repository at this point in the history
  • Loading branch information
uazizTT committed Dec 12, 2024
1 parent 6ff28b5 commit 03b0392
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate-model-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
rm artifact.tar
for a in `ls -1 *.tar`; do tar -xvf $a; rm $a; done
- name: Display structure of downloaded file
- name: Display structure of downloaded dir
working-directory: ${{ steps.strings.outputs.test-output-dir }}
run: |
ls -R ${{ steps.strings.outputs.test-output-dir }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This workflow automates running model tests.

name: Nighty Tests
name: Nightly Tests

on:
schedule:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly-uplift.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow automates creation of uplift pull requests.
# Uplift PR is created daily to uplift the submodule to the latest version.

name: Nighty Uplift
name: Nightly Uplift

on:
schedule:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/run-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ jobs:
cp -r ${{ steps.strings.outputs.work-dir }}/third_party/tt-mlir/src/tt-mlir/third_party/tt-metal/src/tt-metal/ttnn tt-metal/
cp -r ${{ steps.strings.outputs.work-dir }}/third_party/tt-mlir/src/tt-mlir/third_party/tt-metal/src/tt-metal/runtime tt-metal/
- name: Copy venv directory
shell: bash
working-directory: ${{ steps.strings.outputs.install-output-dir }}
run: |
mkdir env
cp -r ${{ steps.strings.outputs.work-dir }}/env env
- name: 'Tar install directory'
shell: bash
working-directory: ${{ steps.strings.outputs.install-output-dir }}
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/run-model-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,19 @@ jobs:
working-directory: ${{ steps.strings.outputs.install-output-dir }}
run: tar xvf artifact.tar

- name: make tt-metal directory
- name: make directories
shell: bash
working-directory: ${{ steps.strings.outputs.install-output-dir }}
run: mkdir -p ${{ steps.strings.outputs.work-dir }}/third_party/tt-mlir/src/tt-mlir/third_party/tt-metal/src/tt-metal
run: |
mkdir -p ${{ steps.strings.outputs.work-dir }}/third_party/tt-mlir/src/tt-mlir/third_party/tt-metal/src/tt-metal
mkdir -p ${{ steps.strings.outputs.work-dir }}/env
- name: copy tt-metal dirs
- name: copy tt-metal and env dirs
shell: bash
working-directory: ${{ steps.strings.outputs.install-output-dir }}
run: |
cp -r ${{ steps.strings.outputs.install-output-dir }}/tt-metal/* ${{ steps.strings.outputs.work-dir }}/third_party/tt-mlir/src/tt-mlir/third_party/tt-metal/src/tt-metal
cp -r ${{ steps.strings.outputs.install-output-dir }}/env/env/* ${{ steps.strings.outputs.work-dir }}/env
- name: Run Model Tests
shell: bash
Expand Down

0 comments on commit 03b0392

Please sign in to comment.